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
#x27;ll reiterate; in general it's generally accepted practice (nowadays, anyway) to put JSP pages under WEB-INF (although I guess this doesn't work under JSF, as was pointed out to me sometime back?) and access pages _only_ through Struts Actions. > I'll look into JSTL. Are you s

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

2006-04-18 Thread Matthew J. Vincent
k into JSTL. Are you saying it has "if-then-else" type of processing? Could you point me in the right direction for that and for the "check if object exists in session" issue? Also, I haven't used filters before. We just upgraded from Struts 1.0.2 so I'm pretty ignorant o

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

2006-04-18 Thread pantichd
rm and THEN get redirected to login. I'll look into JSTL. Are you saying it has "if-then-else" type of processing? Could you point me in the right direction for that and for the "check if object exists in session" issue? Also, I haven't used filters before. We just upgrade

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;

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

RE: IF THEN ELSE

2004-08-10 Thread Qinjian Jian
Subject: IF THEN ELSE Hi All, I am planning to use the IF THEN ELSE tag contributed by Niall to Struts. I am testing it out for a scenario like the one below - If("Niall".equals(user.getUserName())) { System.out.println("User name - Niall"); // Co

IF THEN ELSE

2004-08-10 Thread Janarthan Sathiamurthy
Hi All, I am planning to use the IF THEN ELSE tag contributed by Niall to Struts. I am testing it out for a scenario like the one below - If("Niall".equals(user.getUserName())) { System.out.println("User name - Niall"); // Condition 1 } elsei