[EMAIL PROTECTED] wrote: > Is it possible to do "if then else" type of processing using Struts Logic > tags? I don't see anything in the Struts Logic tags documentation at this > link http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html >
Use JSTL; you'll be better off in the long run anyway, and there's essentially zero learning curve. > 1) I want to put in some logic in all my jsps to check if a user has > authenticated. > Don't do this in the JSP; do this in either a filter, base Action class, etc. Try to use JSP pages for presentation only to keep concerns separated. > One of the problems is that I also need to check if the user session object > is null because a user could have tried to go directly to an "internal" > (after login page) page using a bookmark. How can I check for the presence > of an object in the session? > Again, if you're doing this outside of a JSP (highly recommended) it's trivial. Otherwise you could always use a JSTL tag to check for a value in the appropriate session scope attribute key. Als0-Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]