Title: RE: Please give me ideas on this

JavaScript validation of forms will definitely not be sufficient in all applications.

JavaScript can almost always be maniupulated or bypassed. If the data is business critical you have to validate it on the server side also.

 

An example from real life: A while ago a big computer equipment webshop in Sweden accidentally allowed people to supply the price in the URL, so you could buy a computer for free.

 

  Mattias Jiderhamn

  Expert Systems

  [EMAIL PROTECTED]

 

-----Original Message-----
From: Jean-Francois Pinero [mailto:Jean-Francois[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:40 PM
Subject: Re: Please give me ideas on this

 

What kind of validations do you need to do? Do you need to validate a form? If so just simple javascript will do depending on what do you want to validate...

-----Original Message-----
From: Lorena Carlo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: Please give me ideas on this

 

Hello All,

I have a problem, please give me some ideas to solve it.  I have a web
application that I have to modify, but I don't have the source code (.java),
I just have the classes.  I need to do some validations before calling the
servlets on the web application.  I can not change the hiperlinks in the
primary server that call my servlets.   I have to do a servlet with the same
name of the servlet that is called in the http request, but I can not have 2
servlets with the same name in the same web application and I can not rename
the other compiled servlet, because I don't have the source code to change
the name of the class and recompile it.   I tried to put the servlets that I
don't have the source code in another web application an try to use this
instruction:  RequestDispatcher rd =
getServletContext().getRequestDispatcher("/servlet/Servletx");
rd.forward(request, response); for doing some validations and then redirect
the response, but I can not redirect it to a servlet that is in another web
application.  So I don't know what to do, please servlets gurus, help me
finding a way to solve this problem.

Thanks in advance,

Lorena Carlo.

===========================================================================
To unsubscribe: mailto listserv@java.
sun.com with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED]com with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 
http://java.sun.com/products/jsp/faq.html
 
http://www.esperanto.org.nz/jsp/jspfaq.jsp
 
http://www.jguru.com/faq/index.jsp
 http://www.
jspinsider.com

 

Reply via email to