Hi, hopefully this is the correct forum.
My
java web project uses
jsp and
struts, but this question i think is more html form related.
I have an web app that submits a form for searching products. there are tons of advanced search options besides just your normal criteria
string. categories, price range, product name, model, etc etc.
As a result, our URL looks huge (much bigger than just this in the real app):
http://site.com/search?model=&productName=my+product&range=&category= Most of the time, just one of these are filled out. Is there a way to have the form not submit empty string for all of these unused form fields when submitting the form so my URLs look a bit cleaner?
Thanks!
Aaron