File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2nd ques. search/submit

 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have another question.

I'am trying to search the database based on multiple fields.
for example in a library i can search a book by author, title and publishing company.
I want a single submit button.
Now if the user enters author and title, leaves publisher empty then hits submit.

How would i implement this functionality , i dont know if this is a struts specific question. but i would like to do it using struts(if possible)

thanks
pranav
 
Andy Hahn
Ranch Hand
Posts: 225
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well when you submit the form, you will be populating the form elements for those html text fields. Thus you can view those form parameters in your action class and use logic based on that data.
 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess little knowledge is a bad thing after all....
solution this simple, I did not even think about it.

Thanks Andy
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic