473,569 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programatically fillling JSP form

Does anyone know of a way to fill in a JSP form programatically ?

Any pointers are greatly appreciated.

Dave
Jul 17 '05 #1
3 3135
<input type="text" id="field1" name="field1" value="<%=
bean1.getField1 Value() %>"/>

where bean1.getField1 Value() gives the value you want to populate the form
with.

"David Busch" <db****@teletra cker.com> wrote in message
news:YKqKa.1115 89$MJ5.32520@fe d1read03...
Does anyone know of a way to fill in a JSP form programatically ?

Any pointers are greatly appreciated.

Dave

Jul 17 '05 #2
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}
Oct 12 '07 #3
Are Nybakk <ne**@arenybakk .comwrote in
news:Eu******** *************@t elenor.com:
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.
Nov 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3652
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the screen by moving a picturebox (sprite) with the cursor keys. When the user hits the bottom of the screen I want the screen to automatically scroll...
1
3498
by: Susan | last post by:
I have a bound form and subform and am trying to enter the data in both forms programatically. The Linkmaster and Linkchild properties are set. My intent is to be able to look at the data before it is saved and then choose to save it or undo it. I have a Save button that just closes the form and a Cancel button that does an undo and then...
10
16110
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
0
1816
by: spamfurnace | last post by:
Hi there on this rainy old day, I have some users logging into an asp.net website. The server the site sits on allows users to webmail through a common service/component called Horde. In order to log onto Horde webmail the users have to fill in 5 fields. I wanted to simplify things for them so they only had to click a button once logged...
0
1463
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the screen by moving a picturebox (sprite) with the cursor keys. When the user hits the bottom of the screen I want the screen to automatically scroll...
1
2853
by: Grey Alien | last post by:
Apologies for the cross post. I am quite desperate and do not know which ng would be the most appropriate. I am trying to programatically POST an ASP form, to allow me to log on to a site programatically. <form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm"> <input name="_ct99:Content:UsrName" type="text"...
2
2088
by: Grey Alien | last post by:
I am trying to programatically POST an ASP form, to allow me to log on to a site programatically. <form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm"> <input name="_ct99:Content:UsrName" type="text" id="_ct99_Content_UsrName" /> <input name="_ct99:Content:Pwd" type="password" id="_ct99_Content_Pwd" /> <input...
7
6743
by: The Mad Ape | last post by:
Hi I have code to programatically create a label. It works but when I try to call a sub to create a tooltip it does not work. I do not get an error so have no idea what it wrong. Please review my code and tell me how to fix it. Thanks The Mad Ape
3
4218
by: =?Utf-8?B?UGF1bA==?= | last post by:
I need to programatically upload a text file to a web server using the HTTPWebRequest object within .Net 2.0. So far, I have determined that: - I need a HTTP content-type of "multipart/form-data". - I need to use the ContentType.Boundary property. That is about as far as I have gotten.
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.