
Signature
Kind regards,
Christophe Vanfleteren
Hi Christophe and group,
I propbably didnt put my questions all that well.
They are....
1.How can I collect an integer on a JSP page from user input?
I am looking to vallidate the user input. I thought about vallidating using
HTML then passing/casting the input to a Java variable for further
manipulation on the page.
I cannot use response.encodeUrl for this.
2.I understand that my Java helper classes are compiled into .class files
and then used by the JSP page as required. Also the Java code within the <%
%> Java tags is recognised and runs .
So if the java between the <% %> tags can be compiled and used why can
other Java components eg Swing or AWT not be used in the same way?
Effectively what I would like to do is replicate what a JTextField with an
action listener would do to retrieve user input in a desktop Java
application.
Any ideas and help would be welcome.
regards
Jim Ascroft
> > Hi All,
> >
[quoted text clipped - 17 lines]
> You need the <input> tag:
> http://www.w3schools.com/tags/tag_input.asp
Tony Morris - 08 May 2004 11:20 GMT
> Hi Christophe and group,
>
[quoted text clipped - 16 lines]
> action listener would do to retrieve user input in a desktop Java
> application.
I apologise for having a laugh at your expense, but these kind of queries
have a tendency to amuse me somewhat.
Good luck!

Signature
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
VisionSet - 08 May 2004 11:58 GMT
> 2.I understand that my Java helper classes are compiled into .class files
> and then used by the JSP page as required. Also the Java code within the <%
> %> Java tags is recognised and runs .
> So if the java between the <% %> tags can be compiled and used why can
> other Java components eg Swing or AWT not be used in the same way?
Because the code is compiled and run on the server!!
The only thing the client sees is HTML or JavaScript and the like, if you
choose to render that. Applets are different most browsers recognise those
as an object and the classes downloaded for that purpose, but this must be
explicit in the HTML as an instruction to the browser so it knows what to
do. If you want Swing in a browser you must use an applet and ensure your
client has the neccessary JRE to run it.
--
Mike W