Re: Progamatically setting values of FORM elements

2004-07-30 Thread Schalk Neethling
Have you looked at either Struts, JSTL or the Java Server Faces. I am 
sure somewhere in there will be a solution.

Luc Foisy wrote:
Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the complete form 
element containing that value.
Something like adding something to the response that will give that item a value.
For my particular need, I want to set a number of checkbox elements on or off. I do 
have the ability to predict the element names...
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Progamatically setting values of FORM elements

2004-07-30 Thread Tonte Pouncil
The STRUTS framework would be good for what you are trying to do.

http://www.apache.org

-tp 
-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 12:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements


Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the complete form 
element containing that value.
 
Something like adding something to the response that will give that item a value.
 
For my particular need, I want to set a number of checkbox elements on or off. I do 
have the ability to predict the element names...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Progamatically setting values of FORM elements

2004-07-30 Thread Luc Foisy
From the responses, I am guessing there is not a way to do this with only the Servlet 
API?

I am not currently using struts and learning to use them, implementing them at this 
time, I think would be too much of a headache.
I'll have to find an alternate solution that fits into our own framework.

Thanks...

-Original Message-
From: Luc Foisy 
Sent: Friday, July 30, 2004 1:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements


Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the complete form 
element containing that value.
 
Something like adding something to the response that will give that item a value.
 
For my particular need, I want to set a number of checkbox elements on or off. I do 
have the ability to predict the element names...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Progamatically setting values of FORM elements

2004-07-30 Thread Shapira, Yoav

Hi,
No, the Servlet API has no concept of HTML.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:41 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements

From the responses, I am guessing there is not a way to do this with
only
the Servlet API?

I am not currently using struts and learning to use them, implementing
them
at this time, I think would be too much of a headache.
I'll have to find an alternate solution that fits into our own
framework.

Thanks...

-Original Message-
From: Luc Foisy
Sent: Friday, July 30, 2004 1:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements


Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the
complete
form element containing that value.

Something like adding something to the response that will give that
item a
value.

For my particular need, I want to set a number of checkbox elements on
or
off. I do have the ability to predict the element names...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Progamatically setting values of FORM elements

2004-07-30 Thread Luc Foisy
No concept of HTML. But it does have concept of parameters. When you submit a form, 
the form contents are placed in a parameter. (in ServletRequest)
There is no way that I know of to do the reverse, set those parameters on the response 
and it will apply to the form elements.
The browser stores the element values somewhere, just thought it might have been 
floating around somewhere I could get it.

I thought someone would know something I did not.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:43 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements



Hi,
No, the Servlet API has no concept of HTML.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:41 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements

From the responses, I am guessing there is not a way to do this with
only
the Servlet API?

I am not currently using struts and learning to use them, implementing
them
at this time, I think would be too much of a headache.
I'll have to find an alternate solution that fits into our own
framework.

Thanks...

-Original Message-
From: Luc Foisy
Sent: Friday, July 30, 2004 1:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements


Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the
complete
form element containing that value.

Something like adding something to the response that will give that
item a
value.

For my particular need, I want to set a number of checkbox elements on
or
off. I do have the ability to predict the element names...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Progamatically setting values of FORM elements

2004-07-30 Thread Dennis Dai
Well it's not part of the servlet spec and certainly should not be IMHO.
What you can do is to create a bean which sets those parameters from the 
request, and pass it to the resulting JSP page. Then in the JSP page you 
use getter methods (or EL variables) to populate those parameters. This 
is usually used when there're errors in the submitted form and I'd 
assume you're going to use it with the same purpose.

Various web application frameworks like struts or webwork/xwork will do 
this automatically for you. (I'm using webwork/xwork right now and IMHO 
it's much less complicated and more elegant than struts.) If you're 
using your home grown framework, you can at least borrow ideas from 
those other frameworks ...

On 7/30/2004 1:13 PM, Luc Foisy wrote:
No concept of HTML. But it does have concept of parameters. When you submit a form, 
the form contents are placed in a parameter. (in ServletRequest)
There is no way that I know of to do the reverse, set those parameters on the response 
and it will apply to the form elements.
The browser stores the element values somewhere, just thought it might have been 
floating around somewhere I could get it.
I thought someone would know something I did not.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:43 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements

Hi,
No, the Servlet API has no concept of HTML.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:41 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements
From the responses, I am guessing there is not a way to do this with
only
the Servlet API?
I am not currently using struts and learning to use them, implementing
them
at this time, I think would be too much of a headache.
I'll have to find an alternate solution that fits into our own
framework.
Thanks...
-Original Message-
From: Luc Foisy
Sent: Friday, July 30, 2004 1:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements
Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the
complete
form element containing that value.
Something like adding something to the response that will give that
item a
value.
For my particular need, I want to set a number of checkbox elements on
or
off. I do have the ability to predict the element names...
--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Progamatically setting values of FORM elements

2004-07-30 Thread Schalk Neethling
What is the reason for not wanting to use web.xml?
Luc Foisy wrote:
No concept of HTML. But it does have concept of parameters. When you submit a form, 
the form contents are placed in a parameter. (in ServletRequest)
There is no way that I know of to do the reverse, set those parameters on the response 
and it will apply to the form elements.
The browser stores the element values somewhere, just thought it might have been 
floating around somewhere I could get it.
I thought someone would know something I did not.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:43 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements

Hi,
No, the Servlet API has no concept of HTML.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:41 PM
To: Tomcat Users List
Subject: RE: Progamatically setting values of FORM elements
   

From the responses, I am guessing there is not a way to do this with
only
 

the Servlet API?
I am not currently using struts and learning to use them, implementing
   

them
 

at this time, I think would be too much of a headache.
I'll have to find an alternate solution that fits into our own
   

framework.
 

Thanks...
-Original Message-
From: Luc Foisy
Sent: Friday, July 30, 2004 1:10 PM
To: Tomcat User List (E-mail)
Subject: Progamatically setting values of FORM elements
Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the
   

complete
 

form element containing that value.
Something like adding something to the response that will give that
   

item a
 

value.
For my particular need, I want to set a number of checkbox elements on
   

or
 

off. I do have the ability to predict the element names...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Progamatically setting values of FORM elements

2004-07-30 Thread Vy Ho
Try Sun's Studio Creator (Rave).  It's all graphical.  You don't have to 
learn anything, and it does all for you.  All you have to do is drag and 
drop those check box into a page and you're done.  It bases on Java 
Server Faces, and the creator of this technology I believe is the same 
one how previously created Struts.  So it's like Struts, but better.  I 
tried both Struts and this, and I love the JSF right away.

Luc Foisy wrote:
Is there any way I can have my java set the values of FORM elements.
Rather than storing the values in the java code and generating the complete form 
element containing that value.
Something like adding something to the response that will give that item a value.
For my particular need, I want to set a number of checkbox elements on or off. I do 
have the ability to predict the element names...
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]