Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading and using delimited text

Status
Not open for further replies.

Gangrel

Programmer
Oct 18, 2001
49
CA
What's the easiest way to accompish this? We currently have the following code that takes what the user enters into a text box and retrieves the item.

Code:
<html:link href="" titleKey="itracker.web.header.quickview.alt" onclick="document.lookupForm.submit();" styleClass="headerLinks">
                <bean:message key="itracker.web.header.quickview"/> </html:link>
                <input type="text" name="id" size="5" class="lookupBox" onchange="document.lookupForm.submit();">

What we would like to do is allow the user to enter in multiple numbers, separated by a comma, and then display all of the items.

Is there any shortcut to this, or do i have to read each character in the box one at a time until i hit a comma and then use the numbers I just read?

Thanks in advance for any tips or tricks! (being Halloween and all...)
 
The app is a JSP app running under jboss, so on the server side..... (unless my coffee hasn't kicked in yet)
 
So what do you have so far?

I guess String.split method or StringTokenizer class is what you're looking for.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top