• 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

getting error 404

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently I switched an app to a new web server. However I'm now having problems with struts though, something which worked before.

In index.jsp I have the following

<logic:forward name="index" />

and in my struts-config.xml I have the following

<global-forwards>
<forward name="index" path="/logon.do"/>
</global-forwards>

<action forward="/logon.jsp" name="HtmlFileForm" path="/logon" scope="session" type="org.apache.struts.actions.ForwardAction"/>

This works fine when I enter index.jsp the page is redirected to logon.jsp

logon.jsp contains

<html:form action="/logonSubmit" focus="username">

and in my struts-config.xml I have the following

<action input="logon.do" name="HtmlFileForm" path="/logonSubmit" scope="session" type="LogonAction" validate="true">
<forward name="success" path="/select.do"/>
<forward name="failure" path="/logon.do"/>
</action>

This is where I get the error The requested URL /logonSubmit.do was not found on this server. It worked before. What might be going wrong now?

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just realized posted in the wrong area this should have been in Web Application Frameworks
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic