wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Mark Spritzler: I never need to call getBean
Having a problem with struts-tiles
Struts redirect in webphere 4.05
Spring & Struts - loading spring exception class from struts-config.xml
Struts ExceptionHandler - configure using Spring