You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Vivek Parekh <vi...@hotmail.com> on 2000/11/04 13:39:47 UTC

Re: Re: May I ask a question of Tomcat?

Either keep the form tag as :

<form enctype="multipart/form-data" action="servlet/UploadDepartmentImage" 
method=POST> ( without the starting '/' )

OR

<form enctype="multipart/form-data" 
action="/<webappname>/servlet/UploadDepartmentImage" method=POST> ( 
Substitute <webappname> with your web app name i.e. jeestore)

" <load-on-startup>1</load-on-startup> is a 1/0 (true;
false) tag. If i remember correctly. "

No, the nos. specify the load order.

-Vivek
vivekparekh@hotmail.com


----------------------------------------------------------------------
Date: Mon, 30 Oct 2000 05:40:17 -0800 (PST)
To: taglibs-user@jakarta.apache.org
From: Charles Sabourdin <zo...@yahoo.com>
Subject: Re: May I ask a question of Tomcat?
Message-ID: <20...@web5408.mail.yahoo.com>

<load-on-startup>1</load-on-startup> is a 1/0 (true;
false) tag. If i remember correctly.
--- Baron <ba...@i-hometown.com> wrote:
>Hi,
>
>I was installing Tomcat and Apache for testing. Most
>of functions were working fine.
>But there was a problem when I want to upload  a
>file. A form tag was setting in a jsp file as
>following
><form enctype="multipart/form-data"
>action="/servlet/UploadDepartmentImage" method=POST>
>when I submit to upload, the URL was transfered to
>http://servername/servlet/UploadDepartmentImage ,
>this is a worng URL
>Actually, the correct URL should be
>
http://servername/jeestore/servlet/jeestore/UploadDepartmentImage
>
>And, web.xml was setting as following
>
><web-app>
>     <servlet>
>         <servlet-name>jeestore</servlet-name>
>
>
<servlet-class>com.jeestore.JeestoreServlet</servlet-class>
>            <init-param>
>
><param-name>servlet.properties.location</param-name>
>
>
<param-value>/home/jeestore/etc/jeestore.properties</param-value>
>            </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>UploadLogo</servlet-name>
>
>
<servlet-class>com.oreilly.servlet.UploadLogo</servlet-class>
>                 <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>
><servlet-name>UploadProductImage</servlet-name>
>
>
<servlet-class>com.oreilly.servlet.UploadProductImage</servlet-class>
>                 <load-on-startup>3</load-on-startup>
>     </servlet>
>     <servlet>
>
><servlet-name>UploadDepartmentImage</servlet-name>
>
>
<servlet-class>com.oreilly.servlet.UploadDepartmentImage</servlet-class>
>                 <load-on-startup>4</load-on-startup>
>     </servlet>
></web-app>
>
>Would you please tell me what's wrong?
>Thanks.
>
>Baron
>
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.