how to call servlet from jsp
i m trying to call it from jsp using
<a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
but its giving error..
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
# 1
hi
u can display the output of ur servlet program by using
< Img src > tag
for example
<img src ="http://localhost:8080/urproject name/ur servlet program name" />
just attach this tag to ur jsp , their u can see out put of ur servlet
, i guess it will help u
gagnma at 2007-7-12 19:18:23 >

# 4
> i m trying to call it from jsp using
>
> <a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
>
> but its giving error..
>
> type Status report
>
> message HTTP method GET is not supported by this URL
>
> description The specified HTTP method is not allowed
> for the requested resource (HTTP method GET is not
> supported by this URL).
Are you implementing the doGet or doPost method in your servlet? If you are calling from a hyperlink then it needs to be implementing the GET method. To access the POST method use a html form.