aspose file tools*
The moose likes JSP and the fly likes How to to validation in java script involve  two jsp page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to to validation in java script involve  two jsp page?" Watch "How to to validation in java script involve  two jsp page?" New topic
Author

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

Jay jie
Greenhorn

Joined: Mar 30, 2011
Posts: 13
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

Joined: Jan 10, 2002
Posts: 61657
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jay jie
Greenhorn

Joined: Mar 30, 2011
Posts: 13
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

Joined: Jan 10, 2002
Posts: 61657
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to to validation in java script involve two jsp page?