aspose file tools*
The moose likes Struts and the fly likes Mr. Ford, My Logic Tag Does Not Seem to Work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Mr. Ford, My Logic Tag Does Not Seem to Work" Watch "Mr. Ford, My Logic Tag Does Not Seem to Work" New topic
Author

Mr. Ford, My Logic Tag Does Not Seem to Work

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Please point out my mistakes. Does the 'name' attribute of the logic tag accept an object only? For example, I created a session this way:

In the LogoffAction, I invalidate the session and want
to forward the visitor to the welcome page. This is
what I did:

I used the logic tag in my welcome.jsp. It does not seem to work because the LOGOUT button is still displayed.
Neal Ford
Author
Ranch Hand

Joined: Oct 23, 2003
Posts: 82
Not sure off hand -- I don't see anything wrong in the code you posted. You should check the session in a debugger to make sure that the value is actually removed when it gets back to the JSP. Note that, if you use a useBean tag at the top, it automatically creates the bean for you, which may be the problem.


Neal Ford<br />Author, <i>Art of Java Web Development: Struts, Tapestry, Commons, Velocity, JUnit, Axis, Cocoon, InternetBeans, WebWork</i><br /><a href="http://www.nealford.com" target="_blank" rel="nofollow">www.nealford.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mr. Ford, My Logic Tag Does Not Seem to Work
 
Similar Threads
Problem with a select tag
Session problem in Struts and Tomcat
When to use logic:present tag
My logic Tag Does Not Seem To Work
Setting HttpSession Attribute Not Working (Struts)