Thanks,
i'd discovered that defining and populating a variable and then using it,
rather than referencing the request directly would work, but as you say, not
nice!
On Wednesday 21 Nov 2001 3:52 pm, you wrote:
> Hi,
>
> In Your mail sent 21 listopada 2001 You wrote:
>
> MS> i'm having trouble populating tag attributes from request parameters.
> The MS> code below generates an error "Attribute name is not specified".
> MS> However, when i remove the pcard tag the other request parameter
> outputs MS> function correctly, so i know that the request parameter is
> being populated.
>
> [cut]
>
> MS> <pcard:pcard name="<%= request.getParameter("name") %>">
> MS> <%= request.getParameter("name") %></pcard:pcard>
>
> [cut]
>
> I'd same problem with
>
> <logic:equals ... value="<%=session.getParameter("name"%)>"/>
>
> It generated the same error as Yours. Someone wrote, that maybe
> single quotes after value should be used, like:
>
> <logic:equals ... value='<%=session.getParameter("name"%)>'/>
>
> but it didn't word either, although the error was different.
> Finally I settled with:
>
> <%
> String v = (String)session.getParameter("name"%);
> %>
> <logic:equals ... value="<%=v%>"/>
>
> and it works. I know it's not the nicest way, but I couldn't figure
> antything better.
> Hope It helps.
--
Martin Samm
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>