Questions tagged [struts2-namespace]

Struts2 Namespace is a concept to subdivide packages on multiple modules by given a namespace to each module. In addition, it can be used to avoid conflicts between same action names located at different modules. Each module can have its own actions with the same name, each with its own implementation.

Struts2 Namespace is a concept to subdivide packages on multiple modules by given a namespace to each module. In addition, it can be used to avoid conflicts between same action names located at different modules. Each module can have its own actions with the same name, each with its own implementation. While the prefix appears in the browser URI, the tags are used namespace attribute to define a namespace prefix to be used in forms and links, and URIs are built using it.

Detailed explanation to the namespace configuration you can find at Struts 2 documentation page: Namespace Configuration.

36 questions
1
vote
2 answers

Struts2 action accessed by exactly one machine/browser combination

I have a web application for taking audits. Everything works fine except for one action. The JSP form for entering the users and location for each audit assigned is not submitted It works without a flaw when executed from the Firefox browser in my…
1
vote
2 answers

The requested resource (/ProjectName/) is not available in Struts 2

I have created a web dynamic project Struts2Starter and for Target runtime, web container is Apache Tomcat 7. When I run this project, it gives an error: The requested resource(/Struts2Starter/) is not available Here's the path: Webb folder…
user3595802
1
vote
1 answer

No configuration found for the specified action in Struts 2

I have done validation for my login for. It's working fine but after entering correct username and password, no action is performed, and nor opening JSP page after successful login. Here is my Login form:
1
vote
1 answer

Getting a 404 There is no Action mapped for namespace error

I'm working a Struts2 Web Application. Everything was running fine. All actions are getting mapped properly and the application correctly redirects to pages. However, when I do the SAME for this particular module (related to File Upload), it just…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
1
vote
1 answer

Struts 2 get all namespaces and actions from xml

I'm new to Struts 2 overall and would like to know, if there is a way to get a list of all the namespaces and actions for each namespace that is defined in the xml? I have a package and I am including configurations for each namespace:
SoluableNonagon
  • 11,541
  • 11
  • 53
  • 98
1
vote
1 answer

Struts Exception Report - while inserting values in the mysql DB

I'm doing online examination project by using Struts Spring and Hibernate Integration. While submitting the values from one form, i'm trying to store them into two different tables in same database. But i could able to insert values into only one…
Prasanna
  • 468
  • 3
  • 11
  • 26
1
vote
1 answer

How to apply a global dynamic result path prefix in Struts 2?

I have a website using Struts2 as the MVC framework. I need to re-skin the JSPs. I need to have the old JSPs accessible alongside the new JSPs. So I have added a root folder of /newdesign/ and copied all of the existing JSP folders into it. So if…
1
vote
0 answers

struts2 url rewrite action error

i got problem when using rewrite url mod my problem is when using it, i move to login form for admincp after enter username and password it appear HTTP 500 Status, but no stacktrace got in tomcat log??? my code Struts.xml
Shen
  • 102
  • 1
  • 19
0
votes
2 answers

Struts2 namespace complex configuration

I want to do something like this: Link Link Link Then every subfolder will use the same login, then I can create dynamic subfolder How I have to…
Troncador
  • 3,356
  • 3
  • 23
  • 40
0
votes
2 answers

Struts 2 - RedirectAction to update Url to the redirected action

I am trying to redirect the action after a POST to the Dologin action to one of two actions. I would the url to reflect the action that i am redirecting to. However, the URL still remains with the action I posted to and not the redirected action. …
Jeffrey
  • 1,068
  • 2
  • 15
  • 25
0
votes
1 answer

There is no Action mapped for namespace [/] and action name error

This is the error messages: WARNING: No configuration found for the specified action: 'welcome' in namespace: ''. Form action defaulting to 'action' attribute's literal value. I have tried to put the struts under WEB-INF/classes already but it…
Andy
  • 103
  • 1
  • 5
0
votes
1 answer

Excluding filters from a particular action

Here's the situation. All the actions in my struts.xml file share the same namespace. I have a bunch of filters applied to the whole namespace in web.xml. Now I've added another action and I want only one of those filters applied to this new action.…
bez
  • 177
  • 1
  • 14
0
votes
1 answer

Struts 2 URL error

This is my struts config file: The root of my project is StrutsProject.
Sid
  • 4,893
  • 14
  • 55
  • 110
0
votes
3 answers

struts2 action not calling properly

On default I want my struts2 app to forward to an action:
Dlongnecker
  • 3,008
  • 3
  • 25
  • 40
0
votes
2 answers

Struts 2 - How to use package in URL

I would like to build a dynamic web project like that: Method: GET | POST | DELETE API URL: http://example.com/api/ Example: I need to get User by executing URL: http://example.com/api/users/user_id/ To get List of user's albums by executing URL:…
Luc
  • 2,800
  • 2
  • 25
  • 46