This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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!