Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to to validation in java script involve two jsp page?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is first page..





After user click Update button it will go to second page at the following..





[list]I have success validate the new limit cannot exceed 2000 for 3rd Party Transfer.


Coding for first page !!
--------------------------



Coding for second page!!
----------------------------



But the problem is how can validate add up of both 3rd Party Transfer and Bill Payment can not exceed 10,000???

Thank You!!


[/list]
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jay jie wrote:This is first page..


Hmmm, not very helpful.

In any case, the scope of JavaScript is limited to a single page. You'll need to carry data from the first page to the second if you want cumulative validation.

P.S. Scriptlets in JSP? In 2011? Time to update.
 
Jay jie
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply!

I think i can not manage carry data from first page.

I am new in jsp.
 
Bear Bibeault
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are new to JSP, it's important to use good practices right off the bat. That means never putting Java code or scriptlets in a JSP. That's very outdated and a poor practice.

Rather, learn JSTL and EL.

You should also read this article and this article.
 
    Bookmark Topic Watch Topic
  • New Topic