File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Parse HTML inputs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Parse HTML inputs" Watch "Parse HTML inputs" New topic

Parse HTML inputs

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Hi guys! I was wondering if there's a good way of parsing HTML inputs in input fields. I was thinking of replacing every "<" and ">" with something but then I had to do everything one by one which is very time consuming... Perhaps you could suggest a nice technique or if there's already something that solves this, please tell me. Thank you...

SCJP 1.5
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Not sure what you mean by 'parsing'.

Are you just trying to read the values of hidden form field in a form post?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Sorry for the trouble but... I actually found an answer here...

just moments after I posted that. Thank you for your reply. If you could provide a better solution then I would be trully greatful... Anyway... Nope, I am not reading values from hidden fields but from a form post. I was just thinking since if I had about 20 forms then I had to parse each one of that using a customized method to parse HTML as the one talked about in the link...
I agree. Here's the link:
subject: Parse HTML inputs
It's not a secret anymore!