Hello,
Yesterday I have been trying to use an init method to read the web.xml file
for some parameters. I am just trying to learn JSP/Servlets. Anyway, I know
I have the parameters in the web.xml file correct, but it still would not
read them. Then I got the following email from Larry that showed why this
did not work.

<Subject: RE: web.inf still need help ... Please


<Note that http://localhost:8080/servlet/cwp.ShowMessage
<will not see the init parameter since the "invoker" servlet
<(i.e. "/servlet") is not part of the Servlet spec.  You
<should include a <servlet-mapping> in the web.xml and
<invoke the servlet using the <url-pattern> specified.  Then
<the servlet should see the init parameters.

<Cheers,
<Larry


So I have searched for information about servlet-mapping and url-pattern. I
found some information, but have no clue what they are talking about. All I
can come up with is that fact that the generic /servlet does not see the
invoker servlet (/servlet). I can also see it configure under the server.cfg
file. But anyway, I would like to configure a /servletdir that I could then
use my web.xml file with. I am sure someone out there knows how do to this,
and I could really use the help.

Thanks,
Scott


Scott Purcell


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to