I am working on my final project for my web class.
Project is basically:
Imagine a simplistic 'google' page....it has a text input and a button ("search")
The input is a keyword to a keyword-mapped SQL table (but that is another story...)
Anyways, I was thinking of doing something like
- 1: Have a homepage jsp
- 2: The search button is nested under a form which calls a servlet
- 3: Servlet parses keyword string, does sql queries, stores the info I need into some java bean classes. I then redirect back to the homepage jsp
- 4: On the homepage jsp, I have a scriptlet which checks if the beans are NULL....if not, it displays them
This way, I only need2jsp and 1 servlet
Does this seem okay? Anyone got tips?