Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing values from child to parent form

 
prriya pratheep
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
prriya pratheep
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic