Hello all,

I've started to write my first beans/JSPs and have come across a problem
that I am stuck on.

I've wrote the bean and can get values out and display the HTML fine, but
what I want to update a var in the bean by passing a value in the query
string called id - eg the link will be update.jsp?id=2 for example.

Here is my code so far:

<%response.setContentType("text/html");%>
<jsp:useBean id="myBean" class="voting.Sample"/>
<jsp:setProperty name="myBean" property="setXML"
value="<%=request.getParameter("id")%>" />

Now, I know that id is getting passed across because when I do
<%=request.getParameter("id")%> is prints 2 on the screen!!

Any help would be much appreciated!

Thanks
Jon
----------------------DISCLAIMER-----------------------
The information contained in this e-mail and any files
transmitted with it are confidential and intended for
the addressee only. No other person is authorised to
copy, forward, disclose, distribute or retain this
email in any form. If you have received this e-mail in
error please notify the originator or send an e-mail to
[EMAIL PROTECTED] This e-mail and any
associated attachments have been scanned for viruses
prior to dispatch, however Emap Performance and its
subsidiary companies accept no liability for any losses
resulting from infected e-mail transmissions.

Please note any views expressed may be those of the
originator and do not necessarily reflect those of this
organisation.
--------------------------------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to