Hi Gethsemani again,
you would like to fill a select with values and read selected
value in next jsp by a getParameter()?
I think if you use a dbforms select field, dbforms will choose a
field name. You could find it in source of generated
page, but i would not rely on it, maybe dbforms will use another
algorithm once for names.
Why not using a dbforms tag like
<db:dbForm tableName="COMMUNICATIONS_PARTNER" ...>
<db:header>
<select name="myselectname">
</db:header>
<db:body>
<option><db:dataLabel fieldName="SHORT_NAME"/>
</db:body>
<db:footer>
</select>
</db:footer>
</db:dbForm>
In called Page you then can read the chosen value by doing
<% String selectedValue = request.getParameter("myselectname");
....do something with value...
%>
Regards
Dirk
"Palacios, Gethsemani" wrote:
>
> I am trying to post a value that is selected from within dbforms select box.
>
> <db:select fieldName="SHORT_NAME">
> <!-- <db:queryData name="aQuery" query="Select * from
> COMMUNICATIONS_PARTNER" /> -->
> <db:tableData name="aQuery" foreignTable="COMMUNICATIONS_PARTNER"
> visibleFields="COMMUNICATIONS_PARTHER.SHORT_NAME" storeField="SHORT_NAME"
> format="s/s/s" orderBy="SHORT_NAME" />
> </db:select>
>
> Depending on what the person chooses, that value need to be sent to the next
> jsp from which I would create a report.
> How do I post values? I can post a value with form but I want to use
> dbforms to populate the select option.
>
> Thanks.
>
> Regards,
> Gethsemani Palacios
> Computer Specialist
> Austin Automation Center
> 512-326-6708
> 512-762-7295
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> DbForms Mailing List
>
> http://www.wap-force.net/dbforms
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms