Worked perfectly - tomcat users get soup :)
On Fri, 17 Sep 2004 11:52:48 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote: > > Hi, > > >login.jsp in <CATALINA_HOME>/webapps/ChargeCard (let's call it > ><APP_HOME>). I have moved my servlets from > ><CATALINA_HOME>/webapps/ROOT/WEB-INF/classes to > ><APP_HOME>/WEB-INF/classes. So my question is twofold: > > > >1) from my jsp, how do I invoke the servlet in it's new location? > >Prior I was using: > ><form method="POST" name=mainform > >action="servlet/com.gcc.creditcard/CCLogin"> but that no longer works, > >and it doesn't work without the servlet prefix either. > > To <APP_HOME>/WEB-INF/web.xml add > > <servlet> > <servlet-name>CCLoginServlet</servlet-name> > <servlet-class>com.gcc.creditcard.CCLogin</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>CCLoginServlet</servlet-name> > <url-pattern>/CCLogin</url-pattern> > </servlet-mapping> > > Modify the <form> tag to > <form method="post" name="mainform" action="./CCLogin"> > > > > Yoav > > This e-mail, including any attachments, is a confidential business communication, > and may contain information that is confidential, proprietary and/or privileged. > This e-mail is intended only for the individual(s) to whom it is addressed, and may > not be saved, copied, printed, disclosed or used by anyone else. If you are not > the(an) intended recipient, please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > -- Xeth Waxman [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]