Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread pantichd
OK, great. I just wanted to make sure I understood correctly. Thanks a lot! David Dave Newton <[EMAIL PROTECTED]

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread Dave Newton
[EMAIL PROTECTED] wrote: > I create a "login.do" action that ends up bringing up the login.jsp. The > action called from the login.jsp page will then forward to ... let's say > main.jsp. Do I need to "wrap" that jsp in a "main.do" action? > That what I was saying when I mentioned that in genera

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread pantichd
Matt, Thanks for your reply. I've seen the suggestion about putting jsp files under the WEB-INF directory before but have never had a need to do it. One thing I"m not clear on... if I place the jsps under WEB-INF directory, what happens if someone tries to access one of them directly using a boo

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread Dave Newton
[EMAIL PROTECTED] wrote: > I totally agree with you about doing this kind of checking in an action > class and I AM doing it there. However, the problem is that I still need a > way to prevent a user from going to the jsp w/o first logging in. > Matthew already offered this but I'll reiterate;

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread Matthew J. Vincent
Not sure if this is a solution for you or not, but you could also put your JSPs under WEB-INF directory so that they cannot be directly accessed by a user. They would instead have to go through an Action first. Filters may be your best bet (and yes, that is the URL to look at). As far as JST

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread pantichd
Dave, I totally agree with you about doing this kind of checking in an action class and I AM doing it there. However, the problem is that I still need a way to prevent a user from going to the jsp w/o first logging in. Let's say the user logged in during a previous session and bookmarked the jsp.

Re: Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread Dave Newton
[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

Can't figure out how to do "if then else" with Struts logic tags

2006-04-18 Thread pantichd
Hello, 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 Here's my situation: 1) I want to put in some logic in all my jsps