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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56191
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56191
    
  13

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to to validation in java script involve two jsp page?
 
Similar Threads
spaces while populating using s:iterator
Question on jQuery ajax functionality & troubleshooting called bean in JSF page
how to get utf-8 data from query string in JSP
problem in running a servlet
How to display only single radio button checked by using onload method?