fumitada wrote:
> Hi there,
>
> First, Do u know how to code Java ? (No offence)
> I give u some tips...
;-) been coding java for ages ...
Although you're right my examples are full
of mistakes but I wrote it quick & the main
goal was to give the idea of the process.
--mike
nb: '==' is quicker to write than equals ;-)
>
> >HttpSession session = req.getSession(false);
> > Toto toto = session.getAttribute("toto");
> U didn't cast up there.
> // should be Toto toto = (Toto) session.getAttribute("toto");
> > if (toto.getName() == "mike")
> == is for C language if you wanna know whether both letters are
> same.
>
> // should be toto.getName().equals("mike");
> > toto.setInfotoDisplay("Hi mike, waza?");
> > else if (toto.getName() == "alain")
> Here too.
> > toto.setInfotoDisplay("Tcho alain, ca boom?");
> > ...
> > session.setAttribute("toto", toto);
>
> Maybe your problem is not session, but your coding.
> Probably you gotta learn syntax first...(No offence)
>
> Fumitada
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]