File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 644
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: 644
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: 644
thanks
 
 
subject: Struts action runs correctly on calling from URL but gives action not available on calling from HTML