You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by john lee <sh...@yahoo.com> on 2007/05/08 00:06:02 UTC

how to assign
Anyone help for the following?
   
  inside jsp, i try to do the following, but cause error, what is the solution? tks in advance
   
  <% String pid="%><bean:write name="partlist" property="pid"/> <%"%>
   
  but give the error 
   
  String literal is not properly closed by double-quote.
   
  john

 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

Re: how to assign Posted by john lee <sh...@yahoo.com>.
it works, tks very much
   
  john

Michael Jouravlev <jm...@gmail.com> wrote:
  On 5/7/07, john lee wrote:
> Anyone help for the following?
>
> inside jsp, i try to do the following, but cause error, what is the solution? tks in advance
>
> 
>
> but give the error
>
> String literal is not properly closed by double-quote.
>
> john



where Part is what you store in the partlist.

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



 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Re: how to assign Posted by Michael Jouravlev <jm...@gmail.com>.
On 5/7/07, john lee <sh...@yahoo.com> wrote:
> Anyone help for the following?
>
>   inside jsp, i try to do the following, but cause error, what is the solution? tks in advance
>
>   <% String pid="%><bean:write name="partlist" property="pid"/> <%"%>
>
>   but give the error
>
>   String literal is not properly closed by double-quote.
>
>   john

<% String pid = ((Part) pageContext.findAttribute("partlist")).getPid();  %>

where Part is what you store in the partlist.

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


Re: how to assign Posted by Nuwan Chandrasoma <my...@gmail.com>.
hi,

try this.

<bean:define id="pid">
<bean:write name="partlist" property="pid"/>
</bean:define>

Thanks,

Nuwan


----- Original Message ----- 
From: "john lee" <sh...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Monday, May 07, 2007 10:06 PM
Subject: how to assign <bean:write...to jsp variable ?


> Anyone help for the following?
>
>  inside jsp, i try to do the following, but cause error, what is the 
> solution? tks in advance
>
>  <% String pid="%><bean:write name="partlist" property="pid"/> <%"%>
>
>  but give the error
>
>  String literal is not properly closed by double-quote.
>
>  john
>
>
> ---------------------------------
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games. 


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