struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl <multi...@altern.org>
Subject Re: <%= problem
Date Mon, 23 Feb 2004 07:58:25 GMT
Have you try  :
<%
	String var = "Anyvar";
%>
AND

<html:select name="form" property="subProduct"  value="<%=var %>"
or
<html:select name="form" property="subProduct"  value='<%=var %>' >

without the space before 'var' ?

Carl


Dixit, Shashank (Cognizant) wrote:

> Hi all
> 
> I am using Tomcat 4.0 plugged in Eclipse 2.1
> 
> In any jsp I cannot use <%= ..  %> i.e. JSP Expression.
> 
> E.g if I define
> <%! String var = "Anyvar" %>
> 
> And 
> <html:select name="form" property="subProduct"  value='<%= var %>' >
> OR
> <html:select name="form" property="subProduct"  value="<%= var %>"
> 
> It give compilation errors.
> 
> If I remove value from the html:select, jsp gets compiled successfully.
> 
> What can be the problem?
> 
> 
> Shashank S. Dixit 
> Cognizant Technology Solutions Pvt. Ltd. 
> Hinjewadi,
> Pune
> Mobile : 98904 25400 
> 
> An Obstacle is something you see when you take your eyes off the goal.
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information. 
> If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination,
forwarding, printing or copying of this email or any action taken in reliance on this e-mail
is strictly prohibited and may be unlawful.
> Visit us at http://www.cognizant.com
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message