Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Programatically fillling JSP form

Thread view: 
David Busch - 26 Jun 2003 01:03 GMT
Does anyone know of a way to fill in a JSP form programatically?

Any pointers are greatly appreciated.

Dave
Jeroen Wenting - 26 Jun 2003 10:34 GMT
<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
Are Nybakk - 12 Oct 2007 23:11 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.