> Hello,
> I am having a problem passing variables between dbforms jsp pages. I can
successfully pass
the data when launching the form from a non-db-forms. But when i add the
variables to the
destination element of db:buttons, it does not pass the data to the next page:
This is the
code generated by a compiled dbformd page
>
> <input type="hidden" name="dataac_new_17_fu"
> value ="/users_single.jsp?name=<=%formname%>&id=<=%formid%>">
>
> formname and formid do not seem to be compiling once in the db forms tags.
Can someone
please help or offer an explanation? Thanks
Hi Joe,
this is a "feature" of JSPs.
You can use a variable as attribute value, but you cannot mix an
initial "static" string with other variables using the "+" operator.
Try this:
<%
String myURL = ("/users_single.jsp?name=" + formname + "&id=" + formid);
%>
..
<db:gotoButton caption="menu" destination="<%=myURL %>" />
Regards,
Luca
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms