It seems http session is not valid in portal context, neither i cant access the portlet session because image drawing jsp is executed in servlet container context. So is there any way to solve this puzzle? is there any way i can send parameters to <img strc="image.jsp"> image.jsp through img tag? Regards, Pradeep.
> From: [EMAIL PROTECTED]> To: [email protected]> Subject: RE: > Login portlet action mapping.> Date: Wed, 15 Oct 2008 01:40:36 +0530> > I am > still fighting with the same issue.> If i put some value into the http > session(i am adding the random value generated for the image in login > portletto the session), it is not going to be present in the next request.> I > tried to put the value into the portlet session in the following way,> > > ((RequestContext) > request.getAttribute(RequestContext.REQUEST_PORTALENV)).setAttribute("key",capstr);the > result is nullpointerExcption. the instance of the request is Requestfacade. > So how can i access portlet session from jsp??> > Regards,> Pradeep.> > > > > > From: [EMAIL PROTECTED]> To: [email protected]> Subject: RE: > Login portlet action mapping.> Date: Tue, 14 Oct 2008 16:48:27 +0530> > > Thanks vivek,> > I do this way.> > Regards,> Pradeep.> > > > Date: Tue, 14 > Oct 2008 13:05:57 +0200From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Login > portlet action mapping.> PradeepI would suggest you handle your image > verification in your own servlet and then redirect it loginproxy servlet for > jetspeed-2 authentication.RegardsVivekpradeep reddy wrote: > > > Thanks > Vivek, The real thing is, i am using the login.jsp which comes with the > j2-application.apart from user name and password fields i added one more > field like, one dynamic image, and a text box to enter the text on the > image.Apart from the authentication provided by the portal i want to verify > whether user entered correct text for the image.So i am just evaluating the > options to write my verification code. instead of writing my own > authentication provider, is there any simple solution for this issue? > Regards,Pradeep.> > > Date: Tue, 14 Oct 2008 12:33:20 +0200> From: [EMAIL > PROTECTED]> To: [email protected]> Subject: Re: Login portlet > action mapping.> > Jetspeed 2 be default authenticate users via JAAS > authentication.if you > wanna use your own implementation of JASS > authentication.> Define your JAAS configuration location bean > > "org.apache.jetspeed.security.AuthenticationProvider"> > Regards> Vivek> > > pradeep reddy wrote:> > This login portlet comes with the sample application > j2-admin so it might be using JAAS for authentication.> > If that is the > case, what are my options?> > > > Thanks & regards,> > Pradeep.> >> >> >> > > > >> Date: Tue, 14 Oct 2008 12:15:01 +0200> From: [EMAIL PROTECTED]> To: > [email protected]> Subject: Re: Login portlet action mapping.> > > Are you trying to JAAS authentication ?> > pradeep reddy wrote:> > > > I > come back with one more frivolous problem.> > Login portlet in the j2-admin > is a pure jsp page. its form action is mapped to /login/proxy this in turn > mapped to LoginProxyServlet in the web.xml.> > I changed this mapping to my > servlet, but mine is pretty much same except an extra code for validating the > image i added in the login.jsp.I placed my class in the shared directory.> > > But my code is not getting executed?> > What is the best place modify ?> > > > > Thanks & Regards,> > Pradeep.> > > > > > > > > _________________________________________________________________> > > Searching for the best deals on travel? Visit MSN Travel.> > > http://in.msn.com/coxandkings> > > > > > ---------------------------------------------------------------------> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> > >> > > > _________________________________________________________________> > Movies, > sports & news! Get your daily entertainment fix, only on live.com> > > http://www.live.com/?scope=video&form=MICOAL> > > > > Watch useful tips on > recipes, fitness, yoga and fashion only on MSN videos. Try it!> > > > > ---------------------------------------------------------------------> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> > _________________________________________________________________> Movies, > sports & news! Get your daily entertainment fix, only on live.com> > http://www.live.com/?scope=video&form=MICOAL> > _________________________________________________________________> Movies, > sports & news! Get your daily entertainment fix, only on live.com> > http://www.live.com/?scope=video&form=MICOAL _________________________________________________________________ Want to explore the world? Visit MSN Travel for the best deals. http://in.msn.com/coxandkings
