views:

32

answers:

0

Firstly, it was hard to include the question inside the title, so don't bash me.

I have a web framework created by someone and I need to learn to use it.

Let's say I have this HTML form:

<form action="servletX" method="get">
    <input name="action" value="search" type="submit">
</form>

When the search button is submitted, inside of the servlet, is extracted, based on the word "action" (this is forced by the structure of the framework), what kind of action needs to be made. One more thing: the action, in this case, "search" is in fact the key for a proprieties file which is read in one of the classes.

My question is: How can I implement a search feature, using this framework.

I want to have a field where I enter the data based on which the search is made and 2 submitted buttons (2 options)

Something like this:

<form action="servletX" method="get">
    <p>Search
        <input name="action" type="text">
        <input name="action" value="Option1" type="submit">
        <input name="action" value="Option2" type="submit">
    </p>
</form>

Later EDIT: Probably I can make this search feature using some radio buttons. In this moment, this sound perfect. :) So let's say the question is answered. :)