Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using Variables with jsp:useBean

843836May 16 2005 — edited May 16 2005
I'm just starting to learn JSP/JSTL. I've been developing JSP for almost 2 days now. and there is alot that I still don't understand Here is the code that I have:
<c:set var="location" value="C:\Upload_Location" />

<jsp:useBean id="Bean_Name" scope="page" class="Bean_Class" >
	<jsp:setProperty name="upload" property="folderstore" value="${location}" />
</jsp:useBean>
Basically what I'm trying to accomplish here is to take the variable 'location' and set it as a value in the bean. Once I get this part working correctly, I will be using a choose tag that will take the value of a dropdown box and change the location depending on which item is selected.

Any help would be greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2005
Added on May 16 2005
3 comments
449 views