This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Renaming the path in struts/spring app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Renaming the path in struts/spring app" Watch "Renaming the path in struts/spring app" New topic
Author

Renaming the path in struts/spring app

Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Hi,

I have a struts/spring app that I copied. I have renamed the app. When I rename the action app as in:
path=/myappaction
in all the struts and spring config files and in my jsps I set the action to the new name:
<html:form action="myappAction" ...>
I get a 500 error when I go to my link:
http://localhost:8080/myapp/myappaction
Any ideas?

Thanks for your help as I have spent quite a bit of time trying to figure this out.
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
It is interesting the minute you post something and then say let me try one more thing, then it works. What I had to do was to rename the jsp files to the name of the action name. It does not make sense to me.

I have one more puzzle. When I enter the address:
http://localhost:8080/myapp
it should redirect me to the link:
http://localhost:8080/myapp/myappaction
but it does not. I know there is a setup somewhere. Web.xml?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Renaming the path in struts/spring app