You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adolfo Miguelez <pe...@hotmail.com> on 2003/09/24 17:31:55 UTC

Re: Anyone know how to init() a servlet (Struts) in iplanet 4.1

AFAIK, as any servlet, the init() method will be called by the container in 
applpication startup (if load-on-startup) is on or in first invocation.

Just place something as:

	<servlet>
		<servlet-name>action</servlet-name>
		<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
	 		<init-param>
				<param-name>application</param-name>
				<param-value>ApplicationResources</param-value>
			</init-param>
			<init-param>
				<param-name>config</param-name>
				<param-value>/WEB-INF/config/struts-config.xml</param-value>
			</init-param>
			<init-param>
				<param-name>debug</param-name>
				<param-value>2</param-value>
			</init-param>
			<init-param>
	 			<param-name>detail</param-name>
				<param-value>2</param-value>
			</init-param>
			<init-param>
				<param-name>validate</param-name>
      			<param-value>true</param-value>
			</init-param>
			<init-param>
				<param-name>null</param-name>
      			<param-value>false</param-value>
			</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>


where load-on-startup is the order which is called in.


Adolfo

>From: Juan Pedro <Ju...@atosodsorigin.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: Struts Newsgroup <st...@jakarta.apache.org>
>Subject: Anyone know how  to  init() a servlet (Struts) in iplanet 4.1
>Date: Wed, 24 Sep 2003 17:15:36 +0200
>
>I´m trying to use Struts with iplanet4.1. I don´t know how
>to call the Struts ActionServlet function init() from the start of
>the server. Any solution?
>
>Thanks
>
>Juan Pedro.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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