I'm attempting to use the checkbox tag to display values on a form.  It seems as
if there is a problem when I pass the value to lookup as part of the url as in
http://localhost:8080/checkbox2.jsp?spec_proj_id=6104 - 
when I attempt this no
values are selected as checked in the form.

However if I pass the value to my bean from inside the form, as shown below, it
works just fine.

I did an experiment and passed a value to a page that had a hardcoded key value
and no checks where displayed, when I removed the param it they appeared.

Any thoughts or direction would be appreciated I've been pulling my hair out
over this one.

Thanks,
Matthew Pazaryna


<%@ taglib uri="http://jakarta.apache.org/taglibs/input-0.90";
prefix="input" %>

<jsp:useBean id="foo" scope="request"
class="org.nap.xDAO.AcquisitionRightsOwnDAO" />
<jsp:setProperty name="foo" property="spec_proj_id"
value="6104"/>

<html>
<head>
<title>test-checkbox2.jsp</title>
</head>

<body>

<% String[] aValues = foo.selectRightsOwnArrayV2(); %>
<% String key = foo.getSpec_proj_id(); %>

<form method="post" action="validate.jsp?jocottle=rights">

<table border="1">

<tr>
<td>Spec proj id:</td>
<td><input type="text" name="spec_proj_id"
value="<%= key %>">
</tr>

<tr>
<td>Anthologies:</td>
<td><input:checkbox name="rights"
value="anthologies" defaults="<%= aValues %>"/>
</tr>

<tr>
<td>Audio:</td>
<td><input:checkbox name="rights" value="audio"
defaults="<%= aValues %>"/> </tr>

</table>
</form>



-------------------------------------------------
This mail sent through IMP: gordon.nap.edu

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to