Re: Programatically fillling JSP form



Are Nybakk <news@xxxxxxxxxxxxx> wrote in
news:EuKdnT1LwdufbJLa4p2dnAA@xxxxxxxxxxx:

David Busch wrote:
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}


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.
.



Relevant Pages

  • JSP - Sessiondaten und NAT-Gateway
    ... Auf meinen JSP Seiten und dahinterliegenden JavaBeans benutze ich das HttpSession Object um Daten ueber mehrere Seiten hinweg zu speichern. ... Das klappt auch ganz gut, nur tritt das Problem auf, dass wenn jmd ueber ein NAT Gateway auf meine Anwendung geht, ein zweiter der das gleiche NAT Gateway benutzt, die Daten des ersten sieht. ... Und das obwohl ich das entsprechende SessionObject mit session.removeAttributebei der Initialisierung der Anwendung loesche, ... dass das SessionObject ansich noch existiert und beide die gleiche SessionId bekommen?? ...
    (de.comp.lang.java)
  • Re: Programatically fillling JSP form
    ... David Busch wrote: ... Any pointers are greatly appreciated. ... I'm not sure if I understand your question, but you can obtain data from the request- or sessionobject with expression language quite easily: ...
    (comp.lang.java)