[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: [Re: JSP 1: doGet-doPost vs service method ? ]


Thanks for reply. However it will mean that we are checking for 'method type'
inside service method and taking the action accordingly.. 
is there any way to specify the seperate doGet/doPost method..??

i mean according to what u suggested it should work like

service-method (request, response)
{  if request.method = doPost
            do doPost part
   else
           show error..
}

however what i was asking is whether it is possible to have following
construct....

doPost-method (request, response)
{   
         do doPost part
}


In Gnujsp .91 there was tag
<%@ method="doPost" %>
 which would direct the jspengine to create the java servlet code for doGet
method and not for service... is there anything equivelent in JSP 1..?


Carsten Heyl <heyl@nads.de> wrote:
> 
> >Hi,
> >
> >How do we specify the type of method for receiving the request in JSP 1
> >pages..??? earlier it used to be 
> ><%@ method="doGet" %>
> 
> Check for the method in request object.
> 
> >
> >
> >
> >Regd,
> >MAg
> >
> >____________________________________________________________________
> >Get free email and a permanent address at http://www.netaddress.com/?N=1
> >
> >
> 
> Ciao,
> 	Carsten Heyl
> 
>   Carsten Heyl                          Heyl@NADS.De
>   NADS - Solutions on Nets              http://www.nads.de/
>   NADS GmbH                             http://www.pixelboxx.de/
>   Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
> D-40215 Duesseldorf                     Fax.: +49 211 933 02-93



Regd,
MAg

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1