Hi, sorry that I didn't mention it :) The error is that my form (which normally should have a scope session) is null !
so, when I run the app, it throws a java.lang.NullException, because I try to use sdf which is null (that's why I made a test to see if sdf == null, in that case my mapping returns an error page) To summarize, the problem isn't that I have wrong values, but that my form seems to not have a scope session (although it does have the mention session in the struts-config.xml) Thanx for your answer and sorry that I wasn't clear enough. Friendly Regards, Slimane At 01:42 13/03/2002 -0800, you wrote: > > it doesn't work anymore >what's the exact problem, >exception or form there but values not set as expected or what? >If you create a constructor for your form & print your form variable (ie' >'this' in it (& in the reset method too) you'll be able to make sure you only >have 1 version of the form & that you are 'talking' to the one you think you >are. > >--- Slimane Zouggari <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have defined in my struts-config.xml an ActionForm with a scope session. > > Here's the struts-config code: > > > > > <action path="/searchbydate" > > > type="be.stluc.info.struts.SearchByDateAction" > > > name="searchbydateform" > > > scope="session"> > > > > > > <forward name="successProject" path="/projectdetails.do" /> > > > <forward name="successParticipant" path="/participantdetails.do" /> > > > <forward name="successAllProject" path="/allprojectdetails.do" /> > > > <forward name="successAllParticipant" > path="/allparticipantdetails.do" > > /> > > > <forward name="baddates" path="/baddates.html" /> > > > <forward name="error" path="/error.html" /> > > > > > > </action> > > > > The first time I use it in my java code, it works allright, but when I > want > > to use it in a second Action class, it doesn't work anymore :( > > > > Here's my java code: > > > HttpSession session = request.getSession(); > > > SearchByDateForm sdf = > > > (SearchByDateForm) session.getAttribute("searchbydateform"); > > > > > > if (sdf == null) { > > > return mapping.findForward("noForm"); > > > } > > > > I'm sure it's just a simple error, but I can't find it :( > > > > Any pointer would be greatly appreciated. > > > > Friendly Regards, > > Slimane > > > > > > -- > > To unsubscribe, > e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > >===== >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Search the archive:- >http://www.mail-archive.com/struts-user%40jakarta.apache.org/ >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Keith Bacon - Looking for struts work - South-East UK. >phone UK 07960 011275 > >__________________________________________________ >Do You Yahoo!? >Try FREE Yahoo! Mail - the world's greatest free email! >http://mail.yahoo.com/ > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>