File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Parse String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Parse String" Watch "Parse String" New topic
Author

Parse String

m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Hi,
I have a child window that lets the user choose a company which on clicking submit closes the child window and populates the parent with the company name. I want to add a second field to pass to the parent window. So I concatenated the 2 fields but I need to break them up before I send them to the parent. Example: companyname;orgid I need to put the companyname in 1 field and the orgid in the 2nd field on the parent form. Is there a way that I can separate these fields by maybe a substring?
Thanks.
m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Got It!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
use the split() method?
 
Consider Paul's rocket mass heater.
 
subject: Parse String
 
Similar Threads
Passing Value From Parent to Popup Window by Pressing the Enter Key
getting stored values from form
How to call parent window id in child window
Cant Retain value of check box from one page to another page on pagination
Passing variable