Maybe some sort of validation would be helpful.

Dave

On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati <anji...@hotmail.com> wrote:

> Hi All,
>
> I have question regarding handling form submission by direct URL in Struts
> 1.3.8
>
> I have a page to change password which user can access after they login.
> URL for that page is 
> http://localhost:8080/MyApp/**changepassword.do<http://localhost:8080/MyApp/changepassword.do>
>
> I have action mapping as follow:
> <action path="/changepassword" input="changePasswordPage" scope="request"
>  name="ChangePasswordForm" type="com.anjib.actions.**
> ChangePasswordAction">
> <forward name="success" path="changePasswordPage" />
> <forward name="failure" path="changePasswordPage"/>
> </action>
>
> I have tile definition for changePasswordPage which have page like header
> which display welcome information after user login
> <div id="welcome" class="right">
> <bean:message key="label.welcome" />
> <logic:notEmpty name="userInfo" property="firstName">
>         ${userInfo.firstName}&nbsp;${**userInfo.lastName}
> </logic:notEmpty>
> <logic:empty name="userInfo" property="firstName">
>            ${userInfo.userName}
> </logic:empty>
> </div>
>
> Now everything works fine if we follow normal process: Login and do
> actions. But if someone type URL http://localhost:8080/MyApp/**
> changepassword.do <http://localhost:8080/MyApp/changepassword.do>directly 
> then I don't get page and I have error in Tomcat log
> Caused by: javax.servlet.jsp.**JspException: Cannot find bean: "userInfo"
> in any scope
>
> Any help will be appreciated.
>
> Thanks,
> Anjib
>
>
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> user-unsubscribe@struts.**apache.org<user-unsubscr...@struts.apache.org>
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to