Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

form - defining in JSP and submitting in JS  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have so many JSPs which have say 4-5 forms. Each form has 10-12 hiddens field in it. Now we have one JS file corresponding to each form.

In this JS file, we are filling the hidden values and submitting the different forms in functions based on conditions.

FE,



My doubts are:

first, how good this design is??? I find it very confusing some time...

Second, we could do that with only one JSP file, by providing JS functions in that file only...

Please comments...

Thanks.
[ August 25, 2006: Message edited by: rathi ji ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rathi ji, you've been around the Ranch more than long enough to know what goes where.

Moved to the JSP forum.
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rathi ji:
In this JS file, we are filling the hidden values and submitting the different forms in functions based on conditions.


What "conditions" are you talking about?
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rusty Smythe:


What "conditions" are you talking about?


Any condition?
Does that make any difference in your answer?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rathi ji:
Does that make any difference in your answer?


Yes
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:


Yes


How?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!