struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schuster Joel M Contr ESC/NDC <Joel.Schus...@cisf.af.mil>
Subject RE: Help With Action
Date Fri, 11 Mar 2005 16:16:04 GMT
<forward name="Failure" path="/jsp/login.jsp" redirect="true" />

?? maybe ??


-----Original Message-----
From: Scott Purcell [mailto:spurcell@vertisinc.com] 
Sent: Friday, March 11, 2005 9:13 AM
To: user@struts.apache.org
Subject: Help With Action

Hello,
 
I have the following action setup in my struts-config.xml file:
 
 <action
    path="/login"
    input="/dealer/jsp/login.jsp"
    type="com.ddi.dealer.action.LoginAction"
    name="loginBean"
    scope="request"
    validate="true">
    <forward name="Success" path="/jsp/welcome.jsp" />
    <forward name="Failure" path="/jsp/login.jsp" />
  </action>
 
I am failing the ActionForm so my request should go to the "input" tag. And
according to the Logger it does.
2005-03-11 10:12:12,349 INFO com.ddi.dealer.bean.LoginForm - XXX setting
username=
2005-03-11 10:12:12,349 DEBUG org.apache.struts.action.RequestProcessor -
Validating input form properties
2005-03-11 10:12:12,349 INFO com.ddi.dealer.bean.LoginForm - Validate called
on LoginForm
2005-03-11 10:12:12,350 DEBUG org.apache.struts.action.RequestProcessor -
Validation failed, returning to '/dealer/jsp/login.jsp'
 
But for whatever reason, the page only displays white with no error? I feel
that it needs to do a redirect or something, but not sure how that should
work. Does anyone have any ideas what I am doing wrong?
 
Thanks,


Scott K Purcell | Developer | VERTIS | 
555 Washington Ave. 4th Floor | St. Louis, MO 63101 | 
314.588.0720 Ext:1320 | spurcell@vertisinc.com | http://www.vertisinc.com
<http://www.vertisinc.com/>  

Vertis is the premier provider of targeted advertising, media, and 
marketing services that drive consumers to marketers more effectively. 
                                                 

 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message