Well, you can pass them as URL parameters:
http://www.yourdomain.com/servet/yourservet?path=d:/webliogic/s1.xml
Or, you can pass it as a servlet parameter from the servlet engine. If your
servlet engine supports the Servlet 2.2 API, you will specify this in the
web.xml file.
The web.xml file will have an entry similar to this:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.mystuff.MyServlet</servlet-class>
<init-param>
<param-name>path</param-name>
<param-value>d:/webliogic/s1.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<url-pattern>/MyServlet</url-pattern>
<servlet-name>MyServlet</servlet-name>
</servlet-mapping>
Hope this helps...
Brian
-----Original Message-----
From: sravan kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 4:01 PM
To: [EMAIL PROTECTED]
Subject: How to Pass xml and xsl to servlet
Hi All,
I am facing a problem can any one help me out here,
I have written a servlet which takes xml and xsl as
parameters(here i have hardcoded it i.e path
=d:/webliogic/s1.xml) to generate the pdf file,
Can any one tell me how should i pass the xml and xsl
files as parameters dynamically instead of hardcoding
it
Its Urgent please can some one help me out
Regards
shravan
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]