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
0
votes
1 answer

How to compare a single character from url request parameter in Struts 2

I am reading the url parameter which has a single character. It will either be Y or N. I have to write a condition to check if it Y or N and do something accordingly. This is what I wrote but does not seem to work (always goes to else). The url…
0
votes
1 answer

Reuse method defined under another XML in Struts 2

Here are the sample two xmls. email.xml: mailSelect.jsp I want to use the same method call defined in email.xml in another xml. another.xml:
kitokid
  • 3,009
  • 17
  • 65
  • 101
0
votes
3 answers

Struts 2 - There is no Action mapped for namespace [/] and action name [validateLogin] associated with context path [/LoginApplication]

I tried out all the possible solution available on the internet. error : HTTP Status 404 - There is no Action mapped for namespace [/] and action name [validateLogin] associated with context path [/LoginApplication]. struts.xml file
piresashwin
  • 155
  • 4
  • 13
0
votes
1 answer

struts2 action mapping configuration

I'm trying a simple app in struts2 on gae but facing problems in submitting forms. struts.xml conf
Shwetanka
  • 4,976
  • 11
  • 44
  • 68
0
votes
5 answers

No result defined for action com.ccarc.Contact and result success

I must be missing something here. I have the following struts.xml file
mpop
  • 499
  • 11
  • 21
0
votes
0 answers

There is no Action mapped for namespace / and action name userfiles/images/ in Struts2

I am having some troubles displaying some images in Struts2. When a page that has images from the database is loaded, ex: or "…
Denees
  • 9,100
  • 13
  • 47
  • 76
1 2
3