hi,
thanks your help. now the problem has been solved.
yes, it's the problem occurred that the name used in
struts:form and struts:action are difference. 
however i have a small suggestion.
i think it's minor for expert here, but it's a li'l
hard to be perceived via newbie persona like me. i
suggest if there were some simple examles (, inclduing
ejb and struts), not like sample in the released
version (too many thing combined together), may be an
good idea. 
regards,


 --- Erik Hatcher <[EMAIL PROTECTED]>
的訊息:> > /**
> >  * @struts:form     name="LoginForm"
> >  *
> >  * Form bean for the Login main page.  There are
> two
> > fields on this
> >  * form used for authentication
> >  * <ul>
> >  * <li>username - the username to login
> >  * <li>password - the password to authenticate
> >  * </ul>
> >  */
> > public final class LoginForm extends ActionForm  {
> 
> Note you said name="LoginForm" here.
> 
> 
> > /**
> >  * @struts:action   path="/login"
> >  *                  name="LoginAction"
> >  *                  scope="request"
> >  *                  input="/index.jsp"
> >  *                  validate="false"
> >  *                  redirect="false"
> >  * @struts:action-forward   name="success"
> > path="/Welcome.jsp" 
> >  *                          redirect="false"
> >  * @struts:action-forward   name="failure"
> > path="/Login.jsp"
> >  *                          redirect="false"
> >  *
> >  * <strong>LoginAction</strong> demonstrates how
> an
> > action class is called within the struts framework
> >  * For the purposes of this sample, we simple
> > demonstrate how the perform is called,
> >  * a sample action, and a return
> >  *
> >  [EMAIL PROTECTED] Sue Spielman Switchback Software LLC
> > www.switchbacksoftware.com
> >  */
> > public class LoginAction extends
> AbstStrutsActionBase
> 
> And you have name="LoginAction" here.  You need to
> tie it to the form 
> declared above.... name="LoginForm".
> 
>       Erik
> 
> p.s. No offense to my good friend Sue, but that is
> some ugly Struts!  
> (validation in form bean, unnecessary reset, not
> using J2EE security)  
> Use critical thinking when adopting Struts code
> examples - I see more 
> bad examples than good out there.
> 
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux
> Tutorials.
> Become an expert in LINUX or just sharpen your
> skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the
> bash shell to sys admin.
> Click now!
>
http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user 

-----------------------------------------------------------------
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to