Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Error sending request to the Action class from a href link in struts2
Gaurav Manral
Greenhorn
Posts: 17
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When i use this code to send request to the Action class from a link in struts2, it works fine.
<a href="<s:url action="link"/>">Add New Case</a>
struts.xml
<action name="link" class="casediary.JudicialCaseRegister" method="execute"> <result name="clientlist">user.jsp?pageinclude=ancar</result> <result name="error">user.jsp?pageinclude=errancar</result> </action>
But when i am using this link, i am getting HTTP Status 404 - /Judicial/link error.
<a href="link">Add New Case</a>
struts.xml remains the same both time.
How to do this, please help.
Forgive your enemies, but never forget their names.
Gaurav Manral
Greenhorn
Posts: 17
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I got the answer friends. I had to do this-
<a href="link.action">Add New Case</a>
Thanks BTW.
Forgive your enemies, but never forget their names.
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Struts2 Session
Struts2: Test action classes
Working with Struts2
ActionError problems with Singleton Action Bean in Struts2
JSON Gridview is not working with struts2
More...