1.11M Members

Any help would be appreciated

 
0
 
<%-- 
    Document   : index
    Created on : Dec 5, 2011, 10:44:50 PM
    Author     : Orange
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>The Collection</title>
    </head>
    <body> 
    <center>
        <%------------------Search-------------------------%>
        <form method="post" action="search.jsp">Please select the search parameter you want: <select name="SearchDB"> 
                <option>Please select one</option>
                <option>Collectable</option>
                <option>Item Owned</option>
                <option>Qualities of Owned Items</option>
                <option>Item Value</option>
                <option>Desired Items</option>
                <option>Qualities of Desired Items</option>
            </select>
            <input type="submit" value="Submit" name="AddButton" />
        </form>
    </center>
        
    <%-------INPUT STUFF-------%>
    <form method="post" action="Collect" enctype="multipart/form-data">
        <center>
            <h1>Greetings and Salutations! Welcome to The Collection</h1>
            <table border="0">
                <thead>
                    <tr>
                        <th><b>Please fill all of the fields</b></th>
                    </tr>
                </thead>
                <tbody>
                    <%-------Owner-------%>
                    <tr><td>Please enter your name: <input type="text" name="OwnerName" Value=""/></td>
                    </tr>
                    <%-------Item Type-------%>
                    <tr>
                        <td>Please enter your item name: <input type="text" name="ItemName" value="" /></td>
                    </tr>
                    <%-------Item Subtitle-------%>
                    <tr>
                        <td>Please enter the subtitle of the item if it exists: <input type="text" name="ItemSubtitle" value="" /></td>
                    </tr>
                    <%-------Item Brand-------%>
                    <tr>
                        <td> Please enter the item brand: <input type="text" name="ItemBrand" value="" /></td>
                    </tr> 
                    <%-------Item Model Number-------%>                   
                    <tr>
                        <td> Please enter the model #/isbn #: <input type="text" name="ModelNumber" value=""/></td>
                    </tr>
                    <%-------Item Value-------%>
                    <tr>
                        <td>Please enter the value of your item (roughly): <input type="text" name="ItemValue" value="" /></td>
                    </tr>
                    <%-------Item Year-------%>
                    <tr>
                        <td>Please enter the year when the item was made: <input type="text" name="ItemYear" value="" /></td>
                    </tr>
                    <%-------Item Series-------%>
                    <tr>
                        <td>Is this item part of a series?<br>Yes<input type="radio" name="ItemSeries" value="Yes" />&nbsp;&nbsp;&nbsp; No<input type="radio" name="ItemSeries" value="No" /></td>
                    </tr>
                    <%-------Rarity-------%>
                    <tr>
                        <td>Please select the rarity of the item: <select name="Rarity"> 
                                <option>Please select one</option>
                                <option>Very Rare</option>
                                <option>Rare</option>
                                <option>Uncommon</option>
                                <option>Common</option>                     
                            </select><br>
                        </td>
                    </tr>
                    <%-------Item Description-------%>
                    <tr>
                        <td>
                            Please enter the description of the item:<textarea name="ItemDesc" rows="4" cols="20">
                            </textarea>
                        </td>
                    </tr>
                    <%-------Have Quality-------%>
                    <tr>
                        <td>Please select the quality of the item you <b>have</b>: <select name="HaveQuality"> 
                                <option>Please select one</option>
                                <option>Perfect</option>
                                <option>Great</option>
                                <option>Good</option>
                                <option>Mediocre</option>
                                <option>Poor</option>
                                <option>Bad</option>
                                <option>Awful</option>
                            </select><br>
                        </td>
                    </tr>
                    <%-------Desired Quality-------%>
                    <tr>
                        <td>Please select the quality of the item you <b>want</b>: <select name="DesiredQuality"> 
                                <option>Please select one</option>
                                <option>Perfect</option>
                                <option>Great</option>
                                <option>Good</option>
                                <option>Mediocre</option>
                                <option>Poor</option>
                                <option>Bad</option>
                                <option>Awful</option>
                            </select><br>
                        </td>
                    </tr>
                    <%-------Item Desired-------%>
                    <tr>
                        <td>Is this item owned or desired?<br>Owned<input type="radio" name="WantButton" value="a10" />&nbsp;&nbsp;&nbsp; Desired<input type="radio" name="WantButton" value="a20" /><br>
                            <input type="submit" value="Submit" name="AddButton" />
                    </tr>

                </tbody>
            </table>
                    <br>
                    <br>
                    Right now it is <%= new java.util.Date() %>
                    
        </center>
    </form>
    <br>
    <br>


</body>
</html>

There is my jsp code. Now when I try to run this I get an error which states "HTTP method POST is not supported by this URL" and after banging my head against the wall for some time I am in despair. Again, any help would be appreciated.

You
Post:
Start New Discussion
View similar articles that have also been tagged: