This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 541
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: 541
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: 541
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
Scripting Invalid
Could not find action or result
On posting from struts jsp form to the same page I get Cannot find bean (Form) in any scope.
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