<input type="text" id="field1" name="field1" value="<%=
bean1.getField1Value() %>"/>
where bean1.getField1Value() gives the value you want to populate the form
with.
> Does anyone know of a way to fill in a JSP form programatically?
>
> Any pointers are greatly appreciated.
>
> Dave
> Does anyone know of a way to fill in a JSP form programatically?
>
> Any pointers are greatly appreciated.
>
> Dave
I'm not sure if I understand your question, but you can obtain data from
the request- or sessionobject with expression language quite easily:
${sessionScope.object}
${requestScope.object}
Karl - 13 Nov 2007 08:34 GMT
>> Does anyone know of a way to fill in a JSP form programatically?
>>
[quoted text clipped - 6 lines]
> ${sessionScope.object}
> ${requestScope.object}
Hi,
If I understand your question correctly you want the form to be
filled up when the browser comes up, programatically.. Something like
a macro. If so look at Ruby's Gem Watir. It is easy to use
(http://wtr.rubyforge.org/).
If you mean you want to set the values before the JSP is
compiled/displayed then you can do so in the JSP itself, using the
session or request --> setAttribute. Hope this is helpful.
Karl.