aspose file tools*
The moose likes Servlets and the fly likes How to Read varios web forms?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to Read varios web forms??" Watch "How to Read varios web forms??" New topic
Author

How to Read varios web forms??

campos teixeira
Ranch Hand

Joined: May 23, 2004
Posts: 51
Hi all!

Well thats what I would like to do. I have various web forms and I want to send an error message in the footer of each page for every field that is null or empty.

I can do with no problem for one form? but I would like to reuse this servlet for different web forms which will identify each field that is null and send an error message back? but my problem is that each web form are not the same?? One might have more fields than others. I was thinking in put the error messages for each web form in the txt file!

Then I thought in creating an array to read the parameter names in the forms and check to see which one is null then read the error messages for the correspondent web form and field to send back the error messages in the txt file to the footer.

So how do I do it?? I know I have to create an InputStream to read the line but How do I check the error messages in the txt file for the right web form??

I hope you guys can understand what I want??

Any help please or does anyone knows where I can see somewhere almost the same??

Thanks
campos teixeira
Ranch Hand

Joined: May 23, 2004
Posts: 51
Did anyone understood what i want or not?? Any help please??

Also Why my Jsp page wont see my servlet class??

I create a package validate and inside I put the servlet class and tried to call from the jsp page like? <%@ page import="validate.ServletClass" %> but it wont call the servlet?

and then I did?

to call the attributes in the servlet class to print an error message in the footer of the main html??

Does anyone knows why?? I already put the servlet class inside a package so what I am doing wrong??}
campos teixeira
Ranch Hand

Joined: May 23, 2004
Posts: 51
It says the the package validate is never used in the jsp page and it can the


It says it cannot be resolved?

So I did everything by the book! I am using eclipse as a IDE!
 
 
subject: How to Read varios web forms??