brynFlew 15 Junior Poster in Training

How do i share variables between java beans, do i need to use jspGet property on the second jsp and re-set it, or can i skip that and do it another way. i need to get a value from my login.jsp and UserDataBean to my process.jsp and my MyFormBean so i can send the username to a database along with other info submitted from the process.jsp page,

i got it using

<jsp:getProperty property="strResult" name="user"/> ${ strUserName

but how can i save it in the other bean this set property isnt working.

<input type="HIDDEN" name="user" property="strResult" value=" "><jsp:setProperty property="strResult" name="form"/>}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.