473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3127
<input type="text" id="field1" name="field1" value="<%=
bean1.getField1Value() %>"/>

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

"David Busch" <db****@teletracker.com> wrote in message
news:YKqKa.111589$MJ5.32520@fed1read03...
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*********************@telenor.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
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...
1
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...
10
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
0
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...
0
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...
1
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...
2
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...
7
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.