Rob Morning

Greenhorn
+ Follow
since Jan 02, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rob Morning

Save it in the session usingsomething like

session.setAttribute("USER",user);
session.setAtttribute("SEX",sex);

in your JSP ..

Is that what you mean ?
17 years ago
<jsp:useBean id="auctionviewbean" class="com.cst.auction.beans.ViewHelperBean"/>

<logic:iterate id="gender" name="auctionviewbean" property="genders" type="com.cst.auction.dataobjects.Gender" >

<html ption value="<%= SQLUtil.checkNull(gender.getGender()) %>"><%= SQLUtil.checkNull(gender.getGender()) %></html ption >

<html ption value="<%= gender.getGender() %>"><%= gender.getGender() %></html ption >

</logic:iterate>

Hi again,

I looked thru you JSP .. Is it complete ? The <html ption/> tag is ONLY valid when nested in an <html:select/> tag. Are you just posting an extract of your JSP ? If you are can you post the enclosing <html:select/> so i can see better what may be happening.
17 years ago
I think your data source element is wrong ..

<data-source type="org.apache.tomcat.dbcp.BasicDataSource">

should be

<data-source type="org.apache.commons.dbcp.BasicDataSource">
17 years ago
If you are using Commons dbcp then the correct <set-property> sub elements
are :

<set-property property="driverClassName" value="org.postgresql.Driver"/> NOT
"driverClass"
<set-property property="username" value="infinity"/> NOT "user"

Try that and I think you should be okay .. If your using other DataSources then you need to check the appropriate documentation to determine the available property data ..
17 years ago