Hai Claus, The code
<img src="images/category${cagegory.cagegoryId.gif}" width="120" height="40" /> Is not parsed and directly appairs in the html source code. In my lib directry i have standard struts jars some site they added jstl.jar and struts-el.jar. I redownloaded struts1.1 but in the distribution binary zip file i didn’t found struts-el.jar Is it really needed to parse ${....} keys ? If yes where can i get it. Regards, Rajmahendra R. Hegde GK Bharani Software Pvt. Ltd. There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare -----Original Message----- From: dmu2201 [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:58 PM To: Struts Users Mailing List Subject: Re: use EL in Struts 1.1 Hi Rajesh >In layout page in a tile page am passing a querystring(parameter) as >?CategoryId=3 > >If i need to display can i just add it as > ><img src="images/category${request.parameter.CagegoryId}.gif" width="120" >height="40"> > > > I'm afraid not since the method signature is request.getParameter(String) and what you are trying to do is request.getParameter().getCagegoryId().getGif(), which you cant do since the getParameter method takes a String. One way, not so pretty would be to use <%%> with casts and such: <% ((CagegoryObject) request.getParameter("CagegoryId")).getCagegoryId().getGif()%>. Another way would be to use a bean:define tag (be sure to include the bean tag lib before trying this): <bean:define id="cagegory" type="CagegoryObject" value="<%request.getParameter("cagegoryId")%>" /> then you can write <img src="images/category${cagegory.cagegoryId.gif}" width="120" height="40" /> Replace the CagegoryObject with whatever Object cagegoryId is a type of... I haven't tested this, but it should work... Claus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]