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 Passing values from child to parent form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Passing values from child to parent form" Watch "Passing values from child to parent form" New topic
Author

Passing values from child to parent form

prriya pratheep
Greenhorn

Joined: Jun 10, 2008
Posts: 22
Hi,

I want to return values from child to parent form.I want to return the value in a text box, name of text box is a dynamic one.

The below is the text box where value is goint to display.



In child form



Here instead of zdist10 and zdist20 I want it should be dynamic like zdist plus lines.
for example lines is 10 then zdist10,if it 50 then zdist should zdist50..

Please help to do this.



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61616
    
  67

Child form? Parent form? There is no such concept. What do you mean by this? Are you nesting forms?

Also, do not show servlet code in an HTML forum. Show only the generated HTML code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
prriya pratheep
Greenhorn

Joined: Jun 10, 2008
Posts: 22
Parent form and child form...what i mean is

JSP program A calls another JSP program B

In A I am calling B like this



I am calling ZSOR_zau_R.jsp and in ZSOR_zau_R.jsp I am returning values to A like this



Instead of hardcoding zdist10,zdist20 i want zdist+lines where lines is the parameter.

Thanks for quick reply
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What is up with the weird spacing? lol

You should always use window, it is very bad practice to leavr it off.

window.open, window.opener

Use the form array and use a string:


Eric

 
 
subject: Passing values from child to parent form