I guess i can do: <logic:present parameter="ext"> <logic:equal parameter="ext" value="0"> <bean:write ....../> </logic:equal> </logic:present>
for if((request.getParameter("ext")!=null)||(request.getParameter("ext").equals( "0"))) but still I can't figure out the "else" clause. I dont want to insert another set of <logic:present ...> and <logic:equal> tags with inverse conditions cause that will introduce another "if" instead of the "else" clause. ----- Original Message ----- From: "Affan Qureshi" <[EMAIL PROTECTED]> To: "struts-user" <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 5:20 PM Subject: Basic <logic:equals> question > A rather basic question. > I want to accomplish in my JSP: > > if((request.getParameter("ext")!=null)||(request.getParameter("ext").equals( > "0"))) > { > /* do Something */ > } > else > { > /* do Something else */ > } > > Using the <logic:equals> tag I write > > <logic:equals parameter="ext" value="0"> > > > </logic:equals> > <logic:equals parameter="ext" value="1"> > > > </logic:equals> > > But first this is not an "else" equivalent and secondly it does not account > for "null" if the parameter is not found in request. > What is the solution? > > Thanks for your time on this silly question. > > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>