Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Renaming the path in struts/spring app

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic