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.
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.
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
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