> ><jsp:useBean id="beanId" scope="session" class="BeanClass" />
> >
> >
> >Shouldn't I be able to do something like:
> >
> ><%
> >     BeanClass newBean = new BeanClass();
> >     newBean.setName("New Name");
> >     beanId = newBean;
> >%>
>
> Why would you do this exactly?

I wanted to set a session bean to an object based on a selection in a
<FORM>. I was confused by the difference between the "id" scope and the
"scope" scope (if that makes any sense) and I thought I could do it with
object assignment. I switched to setAttribute() & everything is working
fine.

Thanks everyone for all your help and explanations!


Jeff

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to