Results 1 to 4 of 4
- 05-11-2010, 11:54 AM #1
can i get the reuested values from a html page into a java string variable
hi all
can i get the reuested values from a html page into a java string variable.
<html>
<body>
<form action="">
First name:
<input type="text" name="firstname" />
<br />
Last name:
<input type="text" name="lastname" /><br>
<input type="submit" />
</form>
</html>
on the submitting the page i need a Sting which handle the vale how this is possible with out webserver
means when a reuest is send to the server String name=(String)request.getparameter("firstname"); will get the firstname value
witha simple html page subition i want a java class get the value in the firstname ,if that is not possible then how the same is done by the webserver
please help me
- 05-11-2010, 12:22 PM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
Do you mean the html page submission hits a desktop/standalone java application?? If so, probably impossible.
Swastik
- 05-12-2010, 05:22 AM #3
thnak for your reply,
But take the example of the jboss server in that the value will be taken from the html page then in the servlet code we write extends HttpServlet so that the HttpServlet will handle the values from the html page i think so what is in that HttpServlet to take the value from the html page
please clarify my doubt
thank you
- 05-12-2010, 12:10 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,451
- Rep Power
- 16
Similar Threads
-
Help in reading values from html form in java
By ichkoguy in forum Advanced JavaReplies: 7Last Post: 03-16-2009, 07:45 AM -
Need to display the jsp variable(String) into html?
By Arivudai Nambi in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-25-2009, 05:44 PM -
Error while parsing html page in java on linux
By rdhaware in forum Advanced JavaReplies: 1Last Post: 02-20-2009, 02:20 AM -
to retrieve multiple values from html page through jsp
By raghu9198 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 02-17-2009, 02:43 PM -
Include Java file in HTML Page
By kathyc in forum New To JavaReplies: 2Last Post: 03-07-2008, 03:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks