• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Renaming the path in struts/spring app

 
Manon Baratt
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic