File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jay jie
Greenhorn
Posts: 13
  • 0
  • 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]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic