JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.
I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.
JSP Forum Bartender
I think you need to parse the string into integer (or) parsing of the string also . Get the value into the string "beforeParse" and write one java program to parse the string to your desired type and return the value into the data type you required.
< jsp:useBean id="parse" class="parse" >
String beforeParse = request.getParameter("myvalue");
int i = parse(beforeParse);
public int parse(String s)
// write the neccessary code here
I think this will be help full to you.
Look at the HttpServletRequest API:
Specifically, look at getQueryString and getInputStream (which is in the superclass, ServletRequest).
You'll have some string parsing to do. If this is for a class assignment, remember, there can be more than one HTTP form field with the same name.
Be sure to post back and let us know why you're doing this.
Originally posted by John Dhoom:
Hey what is the Problem with getParameter method,Whatever u want to do,Simply call this method,It will return u some String.Then Parse that String And Use that variable in whatever way u do like.Or is it necessary that u don't want to use getParameter then the case may be different.
Did you read the third post in this thread?