• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

logic:present tag behaving badly

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have what should be a very simple problem... the following works correctly on a JSP:



However neither this:



nor this:


Work. I don't get it. Doesn't the latter case check for the existence of a request attribute and the former check for the existence of a request parameter? The former should work, but doesn't and if I display:



on the JSP in question it displays properly when I expect it to. I've had problems with the <logic resent> tag in the past - am I misusing it somehow?

thanks!

--BW
[ April 14, 2005: Message edited by: Brian R. Wainwright ]
 
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not positive, but I think when I've run into this type of problem, I've usually forgotten to add the taglib tag for logic.

Do a view source and see if the unrendered tag is in the html of the resulting page.
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
logic tags suck! use JSTL core library for this. actually, get rid of all of the struts tag-libs except for struts-html. anything the rest of the other tags provide, JSTL core and fmt libraries can provide.
 
Brian R. Wainwright
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're both right...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic