GeeCON Prague 2014*
The moose likes Struts and the fly likes Use of Logic equal tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Use of Logic equal tag" Watch "Use of Logic equal tag" New topic
Author

Use of Logic equal tag

Parijat Mukherjee
Greenhorn

Joined: Sep 21, 2003
Posts: 26
I'm getting this error :
E SRVE0026E: [Servlet Error]-[No selector attribute ;cookie/header/name/parameter; was specified]: javax.servlet.jsp.JspException: No selector attribute (cookie/header/name/parameter) was specified
at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:249)

when i'm trying to reload (in sorted form )my jsp page
CAN SOMEONE HELP PLEASE AS IT IS URGENT
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
I am not getting what you trying to do ? If you are trying to use
logic:equal tag
then its use is like as follows
<logic:equal name="mode" value="add">
==code part
</logic:equal>
Here this mode i set from my action class from which i am loading this page
as request.setAttribute("mode", "add");
In my jsp if there are certain things has to be displayed or some other thign i have to do only if the option i am selecting is "add" only
That part i will give in between by above logic:equal tag
For detailed explanation please go through jakarta struts user guide.There they have given the detailed explanation of tag libraries
All the best
Poornima
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
Hi Parijat,
If you are getting this error only while reloading the page and not while original display, here is one reason why:
You are using the logic:equal tag to compare a request attribute with another value.
When the page is reloaded the request attribute is not present and hence the error..
Hope this helps,
Srikanth Shenoy
[ February 27, 2004: Message edited by: Srikanth Shenoy ]

Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
 
GeeCON Prague 2014
 
subject: Use of Logic equal tag