how to send spaces using get method.

how to send spaces using get method.

hi

i want to know how to send spaces using get method? for example like

http://localhost:8080/Sandeep?name=rose india

sorry for my english

View Answers

January 6, 2011 at 5:10 PM

Hello Friend,

Try the following code:

1)form1.jsp:

<html>
<form method="get" action="form2.jsp">
<table>
<tr><td>Enter Name:</td><td><input type="text" name="name"></td></tr>
<tr><td>Enter Address:</td><td><input type="text" name="address"></td></tr>
<tr><td></td><td><input type="submit" value="submit"></td></tr>
</table>
</form>

2)form2.jsp:

<%
String name= request.getParameter("name");
String address= request.getParameter("address");
%><b> Name is&nbsp&nbsp&nbsp&nbsp:</b><%=name%><br>
<b> Address is:</b><%=address%>

Thanks









Related Tutorials/Questions & Answers:
how to send spaces using get method.
how to send spaces using get method.  hi i want to know how to send spaces using get method? for example like http://localhost:8080/Sandeep?name... code: 1)form1.jsp: <html> <form method="get" action="form2.jsp"> <
How to send the request and get the request?
How to send the request and get the request?  how to send a request to a JSP file in another domain in the same server and get the request done i.e how to include JSP file of one domain to another doamin JSP within in the same
Advertisements
please let me get code how to insert a data to mysql using setter and getter method by using java
please let me get code how to insert a data to mysql using setter and getter method by using java  please let me get code how to insert a data to mysql using setter and getter method by using java pelease let me have the code
please let me get code how to insert a data to mysql using setter and getter method by using java
please let me get code how to insert a data to mysql using setter and getter method by using java  please let me get code how to insert a data to mysql using setter and getter method by using java pelease let me have the code
Using get method in preferences
Using get method in preferences       In this section you will learn how to use the get() method... a simple way for using the get method in preferences. Get is the most useful
get method
get method   how to use get method: secure method is post method and most of use post method why use a get method
How to send and recieve email by using java mailserver
How to send and recieve email by using java mailserver  How to send and receive email by using java mail server?   Hi Friend, Please visit the following link: Java Mail Thanks
How to send sms alerts to mobile using java?
How to send sms alerts to mobile using java?  Hi i have used the Code to send message on mobile using java code, it is not working - COM2...(CommPortIdentifier.java:105) confusion is there what is COM2 port and how
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
How i can send mail by using jsp.............. - JavaMail
How i can send mail by using JSP  Hi, will you please tell me how i can send mail by using jsp. Tell me in detail. Thanks!  Example and JSP... to create a send mail program using JSP.JSP Send Mail Program Resources:-http
how to get HTTP GET request value using javascript
how to get HTTP GET request value using javascript  how to get HTTP GET request value using javascript   how is how you can get HTTP GET request value using javascript: var parameter = window.location.search.replace
how to send emails to many using jsp by connecting to ms access dabase.
how to send emails to many using jsp by connecting to ms access dabase.  Hi. I am trying to send multiple emails and the email ids are stored in a table in a msaccess database.I am using jsp for this.And finally there should
how to send sms on mobile and email using java code
how to send sms on mobile and email using java code  hi.... I am developing a project where I need to send a confirmation/updation msg on clients mobile and also an email on their particular email id....plz help me to find
How to send Email automatically On Daily Basis Using Systems Date.
How to send Email automatically On Daily Basis Using Systems Date.  Hello Sir, I am working on a project in which i have to send emails automatically based on system dates with attchements .Kindly give me the code
How i can send testing mail on my id using java?
How i can send testing mail on my id using java?  Which packages i should use to implementing java mail service??? Thanks
How to send request to the visa/master card to get verifed the credit card - Security
How to send request to the visa/master card to get verifed the credit card  Sending request to verify the card number
how to send mail to many recipients using jsp,apache
how to send mail to many recipients using jsp,apache  hello i am reading and displaying the excel sheet with the help of jsp,apache(poi).now i want to send this jsp page content (web page content which consists of this excel
advantages of get method?
advantages of get method?  php in what is advatages of get methods and how you can use get methods
how to get harddisk info using S.M.A.R.T using java
how to get harddisk info using S.M.A.R.T using java   how to get harddisk info using S.M.A.R.T using java
How to send request to the visa/master card to get verifed the credit card - Security
How to send request to the visa/master card to get verifed the credit card  we are accepting the credit card number, So how to forward request get verified the card number. Thanks You
why get method is used?
why get method is used?  why get method is used in 60% commercial application while using post is more secure
How to Using timezone_location_get() PHP
How to Using timezone_location_get() PHP  Hi, I am trying to create an application using the timezonelocationget() in PHP to retrieve the data of country code & latitude/longitude. I need the help of PHP developer who can
How To get DgroupId while using maven.
How To get DgroupId while using maven.  Hello everyone, I read... converter ,i can't find the right "DgroupId", also i can't get how to make... project from an archetype." I can't get how to remove error by making right
How do i validate form using javascript and send data to database?
How do i validate form using javascript and send data to database?  I need a "JOIN US" form that can validate using javascript and be able to connect...(); return false; } return true; } </script> <form name="form" method
question for "get method"
question for "get method"  when I want make method "get" for name or any char or string ..how I can write the syntax ? and what does it return
How to get the output of JSP program using Bean
How to get the output of JSP program using Bean  Hi Kindly go... program for the above one by using Bean and i opened the Tomcat webserver... visit the following link: http://www.roseindia.net/jsp/using-bean-counter.shtml
How to get the output of jsp program using Bean
How to get the output of jsp program using Bean  Hello my Roseindia netizen has suggested one program but when i implement the same i am not getting...; Next i created JSP program for the above one by using Bean and i opened
send mail using JavaScript
send mail using JavaScript  How can we send mail using JavaScript?   Hi friends, You can not send email directly using JavaScript. But you can use JavaScript to execute a client side email program send the email using
What is the difference between GET and POST method?
as GET Method always appends the value with URL. You can send unlimited data using POST method. Whereas GET method has some limitations...What is the difference between GET and POST method?  In PHP, both GET
How to clean a buffer using clear method in java.
How to clean a buffer using clear method in java.      ..., we will discuss the use of clear() method. The Buffer class is a  container for handling primitive data type. The clear() method is available
send mail using smtp in java
send mail using smtp in java  How to send mail using smtp in java?   Sending mail in JSP - SMTP
How to get month name from date(like-25/06/2012) using java?
How to get month name from date(like-25/06/2012) using java?  How to get month name from date(like-25/06/2012) using java
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
how to send sms on mobile
how to send sms on mobile  send sms on mobile by using struts + spring
sir, how to convert excel file to csv file using java? please send me sample code.
sir, how to convert excel file to csv file using java? please send me sample code.  please send me sample code for converting excel file into csv file uisng java
GET and POST Method of HTTP
. In get method the data we send get appended to the URL so whatever you will send... then we can send it by using the post method.  There are few more rarely...;    GET The Get is one the simplest Http method. Its main job
How can we get second of the current time using date function?
How can we get second of the current time using date function?  How can we get second of the current time using date function
how to get mail exchange records using java dns protocol
how to get mail exchange records using java dns protocol  Hi, how to get DNS mail exchage records(MX) using struts2 framework(server:glassfishv3) Thanks, B.Sucharitha.
java mail send using setText()
); Here am using set Text() method to send mail content in html format. if i use...java mail send using setText()  Hai , Am newly mail send portion... format is right. I want to use set Text() method to send mail in html format . any
get and set method
get and set method  Create a class called Invoice that a hardware... a constructor that initialises the four instance variables. Provide a set and get method for each instance variable. In addition provide a method named
How to get day from date in Java using Calendar?
How to get day from date in Java using Calendar?  Hi, I have a calendar object in my Java program. How I can get the day of date from this? How to get day from date in Java using Calendar? Thanks   Hi, If you don't
How to get the browsed file path into controller bean using JSF icefaces
How to get the browsed file path into controller bean using JSF icefaces ... that is C:\Documents and Settings\personInfo.xml how can I get the path...(); /** * This method is for gettingsetting browse. * @param event ActionEvent
How to get unique list in Hibernate using Criteria Query?
How to get unique list in Hibernate using Criteria Query?  Hi, Share me the example code for getting Unique List in Hibernate through Criteria Query? Thanks
FTPClient : Get System Type
This section explain how to get system type by using method of FTPClient class in java
how to send message
how to send message  how to send message for mobile in server
how to get data from list to map with out using a loop?
how to get data from list to map with out using a loop?  List list...("15"); how to get this data into map with out using a loop. i want this data like this--map.put(name,id); Is it possible to do without using loop
how to get popup fro servelt to jsp by using ajax........
how to get popup fro servelt to jsp by using ajax........  how to get popup fro servelt to jsp by using ajax........ I went popup in jsp page when my form submit successfully.....through servlet can any buddy give r explian how

Ads