• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic