tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emerson Cargnin <emer...@tre-sc.gov.br>
Subject Re: A Servlet question
Date Fri, 11 Jun 2004 22:49:17 GMT
  <servlet>
     <servlet-name>partServlet</servlet-name>
     <servlet-class>gov.tresc.sgip.PartServlet</servlet-class>
   </servlet>


   <servlet-mapping>
     <servlet-name>partServlet</servlet-name>
     <url-pattern>/servlet/partServlet/*</url-pattern>
   </servlet-mapping>

In this example, to access the servlet you could use

http://localhost:8080/sgip/servlet/partServlet


Daxin Zuo wrote:
> You are right, after I send my last email to this list, I tested it with
> full URL of the servlet. It worked well. So I need to tell Tomcat that it is
> a servlet.
> The previous problem is that Tomcat add the relative path before the servlet
> name.
> Could you please give the example for the servlet name mapping?
> Thanks.
> 
> -----Original Message-----
> From: Emerson Cargnin [mailto:emerson@tre-sc.gov.br]
> Sent: Friday, June 11, 2004 3:19 PM
> To: Tomcat Users List
> Subject: Re: A Servlet question
> 
> 
> AFAIK, submiting from a frame is the same as a single page. What was the
> error msg you've got?
> Probably, it has some problem in the servlet mapping... did you try to
> load the jsp alone in the browser and submit it? if it doens't work, it
> doens't has to do with the frames at all.
> Emerson
> 
> Daxin Zuo wrote:
> 
>>I use Apache 2.4.9, Tomcat 4.1.9.
>>In a JSP, there there are three frames in a frameset. the script of each
>>frame is JSP.
>>Can a JSP in one frame submit to a Servlet? I did a test and failed.
> 
> Please
> 
>>confirm or teach me how to do.
>>Thanks
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> --
> Emerson Cargnin
> Analista de Sistemas
> Setor de Desenvolvimento de Sistemas - TRE-SC
> tel : (048) - 251-3700 - Ramal 3181
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message