This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I am trying to test for the presence of a request attribute called "PCAT". This works: if (request.getAttribute ("PCAT") != null) This doesn't work: <logic:present parameter="PCAT"> </logic:present> What Struts logic tag would work? Thanks, Jessie [ December 27, 2003: Message edited by: Jessica Doe ]
The above checks to see if the request attribute PCAT is present. If you leave off the scope, and just use the name it will search from page scope to aplication scope (inner most to outer most scope). What you wrote:
Would check to see if a request parameter called PCAT was present.