*
The moose likes Struts and the fly likes Struts action runs correctly on calling from URL but gives action not available on calling from HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts action runs correctly on calling from URL but gives action not available on calling from HTML" Watch "Struts action runs correctly on calling from URL but gives action not available on calling from HTML" New topic
Author

Struts action runs correctly on calling from URL but gives action not available on calling from HTML

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 586
I created Struts action and am able to call the action using url http://localhost:8080/Temp/example/index1.action .This works fine .

But if i call the same page using

It does not work and says " The requested resource (/index1.action) is not available.".

However directly calling "http://localhost:8080/Temp/example/index1.action" works fine.What can be the reason.Thanks
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 586
Thanks I resolved it.it is working fine now. I tried the same one more time and it woked.There was no change in code but just i restarted and it worked.thanks
Balaji Vankadaru
Ranch Hand

Joined: May 31, 2013
Posts: 47
I guess forward would be a better choice than redirect as you are not trying to send request to other resource located outside of your server.
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 586
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts action runs correctly on calling from URL but gives action not available on calling from HTML
 
Similar Threads
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope
form bean should have properties for values entered from Form but it is working without having that
Scripting Invalid
On posting from struts jsp form to the same page I get Cannot find bean (Form) in any scope.
Could not find action or result