To find user name

2005-04-20 Thread Ramu, Vinod
Hi All,

Could any one of you please let me know how to get the username?

For example, let's assume that I use BASIC authentication to authorize
the users of my site and I have a user who has logged in successfully.
During the coarse of this user's session, if I need to know the username
with which he logged in then what should I do?

Is it stored in the session object?
Or should we build a customized code such as a ServletFilter to trap the
username/password?

Any suggestions will be of great help to me.

Thanks,
VinodRamu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: To find user name

2005-04-20 Thread Ramu, Vinod
Thanks guys..life is so easy :-)

-Original Message-
From: Darren Govoni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 20, 2005 10:23 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: To find user name


request.getRemoteUser();

- --- Original Message --- -
From: Ramu, Vinod [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wed, 20 Apr 2005 10:16:36

Hi All,

Could any one of you please let me know how to get
the username?

For example, let's assume that I use BASIC
authentication to authorize
the users of my site and I have a user who has
logged in successfully.
During the coarse of this user's session, if I need
to know the username
with which he logged in then what should I do?

Is it stored in the session object?
Or should we build a customized code such as a
ServletFilter to trap the
username/password?

Any suggestions will be of great help to me.

Thanks,
VinodRamu

---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: include / c:import problems

2005-03-29 Thread Ramu, Vinod
Could we get the jsp code and web.xml configuration?

Vinod

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 3:14 PM
To: Tomcat Users List
Subject: include / c:import problems


Hi,

We're using Tomcat 5.5.7 on Windows Server 2003 with Sun's J2SE 5.0. 
From time to time, we have problems with jsp:includes and c:imports. 
For some reason, the whole page gets included more than once.  For
example;

on index.jsp, we have news.jsp and events.jsp includes.

From time to time here is what happens:
index.jsp loads.  news.jsp gets included.  Instead of events.jsp
index.jsp gets included.  On that second index.jsp, news.jsp and
events.jsp gets included successfully.  We end up getting very weird
looking pages.

We have no idea why this happens as the code is correct.  In fact, the
page loads correctly after a refresh.  This seems to happen once every
100 loads...

Any ideas?

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-handling

2005-03-26 Thread Ramu, Vinod
Hi,

This what I did

1. I added below configuration

  error-page

exception-typejava.sql.SQLException/exception-type
location/index.html/location
/error-page

2. Then added below lines to my doPost()
throw new ServletException(SQLException, new SQLException());

It works for me.

Could you try to direct your error location to a static page instead of
a servlet?

Vinod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 26, 2005 11:21 AM
To: tomcat-user@jakarta.apache.org
Subject: Problem with error-handling


I am using Tomcat5.5, j2sdk1.5

I deliberately created a SQLException to try error
page handling but it does not work and i don't know
why.

I have been trying to solve this problem for hours
with no result. I would appreciate it if someone
offers to look at my war file for me. I'm desperate
please help me.

web.xml
?xml version=1.0 encoding=ISO-8859-1? 
!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN
   http://localhost/dtd/web-app_2_3.dtd;
web-app   
context-param
param-namedriverClassName/param-name
param-valuecom.mysql.jdbc.Driver/param-value
/context-param
context-param
param-namedbUsername/param-name
param-valueuser/param-value
/context-param
context-param
param-namedbPassword/param-name
param-valuepassword/param-value
/context-param

listener
listener-class
MyListener
/listener-class
/listener


servlet
servlet-nameErrorServlet/servlet-name 

servlet-classchapter04.ErrorServlet/servlet-class   

/servlet
servlet
servlet-nameLoginServlet/servlet-name 

servlet-classchapter04.LoginServlet/servlet-class
init-param
param-namedburl/param-name

param-valuejdbc:mysql://localhost/test/param-value
/init-param
/servlet

servlet-mapping
servlet-nameLoginServlet/servlet-name
url-pattern/login/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameErrorServlet/servlet-name
url-pattern/error/url-pattern
/servlet-mapping

error-page
error-code403/error-code
location/html/login.html/location
/error-page

error-page

exception-typejava.sql.SQLException/exception-type
location/error/location
/error-page

/web-app


LoginServlet.java (doPost method)
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws IOException, ServletException {
String userid = req.getParameter(userid);
String password = req.getParameter(password);


if (userid != null  password != null 
userid.length()  0
 password.length()  0) {

ServletConfig config =
getServletConfig();
ServletContext context =
config.getServletContext();
//context param
String driverClassName =
context.getInitParameter(driverClassName);
String dbUsername =
context.getInitParameter(dbUsername);
String dbPassword =
context.getInitParameter(dbPassword);
//config param
String dburl =
config.getInitParameter(dburl);

MySqlDAO dao = new MySqlDAO();
try {
dao.init(driverClassName, dburl,
dbUsername,
dbPassword);
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch
block
e1.printStackTrace();
throw new
ServletException(ClassNotFoundException, e1);
} catch (SQLException e1) {
// TODO Auto-generated catch
block
e1.printStackTrace();
throw new
ServletException(SQLException, e1);
}
try {
if(dao.verifyUser(userid,
password)) {

context.setAttribute(userid, userid);
ServletContext ct =
getServletContext

RE: Problem with error-handling

2005-03-26 Thread Ramu, Vinod
Yeah, I agree with you ...I should and it works

To check our understanding this what I did this time. I updated my
configuration to 
servlet-mapping
servlet-nameSessionExample/servlet-name
url-pattern/servlet/SessionExample/url-pattern
 /servlet-mapping
error-page
exception-typejava.sql.SQLException/exception-type
location/servlet/SessionExample/location
/error-page

As you can see now it's redirected to a servlet.

Could you try some thing like this

1. try a new servlet, which is very simple.
2. test this servlet by entering it's URL in your browser.
3. if this servlet is working fine then map it's url-pattern to your
location XML element under error-page as shown in the above sample.

I hope this should work. It worked for me (I tried this on
jakarta-tomcat-5.5.4)

Vinod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 26, 2005 8:17 PM
To: Tomcat Users List
Subject: RE: Problem with error-handling


yeah it works. But i still cannot understand why my
code does not work. Theoretically my code should work
right? 
--- Ramu, Vinod [EMAIL PROTECTED] wrote:

 Hi,
 
 This what I did
 
 1. I added below configuration
 
   error-page
   

exception-typejava.sql.SQLException/exception-type
   location/index.html/location
   /error-page
 
 2. Then added below lines to my doPost()
 throw new ServletException(SQLException, new SQLException());
 
 It works for me.
 
 Could you try to direct your error location to a
 static page instead of
 a servlet?
 
 Vinod
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 26, 2005 11:21 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Problem with error-handling
 
 
 I am using Tomcat5.5, j2sdk1.5
 
 I deliberately created a SQLException to try error
 page handling but it does not work and i don't know
 why.
 
 I have been trying to solve this problem for hours
 with no result. I would appreciate it if someone
 offers to look at my war file for me. I'm desperate
 please help me.
 
 web.xml
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
http://localhost/dtd/web-app_2_3.dtd;
 web-app 
   context-param
   param-namedriverClassName/param-name
   param-valuecom.mysql.jdbc.Driver/param-value
   /context-param
   context-param
   param-namedbUsername/param-name
   param-valueuser/param-value
   /context-param
   context-param
   param-namedbPassword/param-name
   param-valuepassword/param-value
   /context-param
   
   listener
   listener-class
   MyListener
   /listener-class
   /listener
   
   
   servlet
   servlet-nameErrorServlet/servlet-name
   

servlet-classchapter04.ErrorServlet/servlet-class
 
 
   /servlet
   servlet
   servlet-nameLoginServlet/servlet-name
   

servlet-classchapter04.LoginServlet/servlet-class
   init-param
   param-namedburl/param-name
   

param-valuejdbc:mysql://localhost/test/param-value
   /init-param
   /servlet
   
   servlet-mapping
   servlet-nameLoginServlet/servlet-name
   url-pattern/login/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nameErrorServlet/servlet-name
   url-pattern/error/url-pattern
   /servlet-mapping
   
   error-page
   error-code403/error-code
   location/html/login.html/location
   /error-page
   
   error-page
   

exception-typejava.sql.SQLException/exception-type
   location/error/location
   /error-page
   
 /web-app
 
 
 LoginServlet.java (doPost method)
 public void doPost(HttpServletRequest req, HttpServletResponse res)
   throws IOException, ServletException {
   String userid = req.getParameter(userid);
   String password = req.getParameter(password);
   
 
   if (userid != null  password != null 
 userid.length()  0
password.length()  0) {
   
   ServletConfig config =
 getServletConfig();
   ServletContext context =
 config.getServletContext();
   //context param
   String driverClassName = 
 context.getInitParameter(driverClassName);
   String dbUsername =
context.getInitParameter(dbUsername);
   String dbPassword =
 context.getInitParameter(dbPassword);
   //config param

RE: Tomcat Struts = Problems with my first page

2005-03-18 Thread Ramu, Vinod
This has to do with the applicationresources.properties files that you
have configured in your struts-config.xml. It's not able to find the
properties file that you have specified under the message-resources
XML element, in the struts xml config file. 

This properties file can be placed under any WEB-INF directory,
provided message-resources element points to it. Just check out one of
the sample struts application.

Vinod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 9:57 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat Struts = Problems with my first page



Hi There,
I've created MyFirstStrutsPage.jsp:
%@ page language=java %
%@ taglib uri=/struts-bean.tld prefix=bean %
%@ taglib uri=/struts-html.tld prefix=html %
%@ taglib uri=/struts-logic.tld prefix=logic %
html:html locale=true
head
titleTest Struts Page/title
html:base/
/head
bodybean:message key=index.text1 //body
/html:html
 
and my web.xml is as followed:
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=_http://java.sun.com/xml/ns/j2ee_ 
(http://java.sun.com/xml/ns/j2ee) 
xmlns:xsi=_http://www.w3.org/2001/XMLSchema-instance_ 
(http://www.w3.org/2001/XMLSchema-instance) 
xsi:schemaLocation=_http://java.sun.com/xml/ns/j2ee_ 
(http://java.sun.com/xml/ns/j2ee)
_http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd_ 
(http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd) 
version=2.4
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description
!-- JSPC servlet mappings start --
servlet
servlet-nameorg.apache.jsp.index_jsp/servlet-name
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet
   servlet-mapping
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
   /servlet-mapping
!-- Define Struts  --
servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
 /init-param
  init-param
  param-namedebug/param-name
  param-value2/param-value
 /init-param
  init-param
   param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
 /init-param
/servlet
servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
/servlet-mapping
taglib
 taglib-uri/struts-tiles.tld/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib
taglib
 taglib-uri/struts-html.tld/taglib-uri
 taglib-location/WEB-INF/struts-html.tld/taglib-location
/taglib
taglib
 taglib-uri/struts-bean.tld/taglib-uri
 taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib
taglib
 taglib-uri/struts-logic.tld/taglib-uri
 taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib
/web-app

and i've created ApplicationResources.properties with the following
entries: index.title = My first Struts application! index.text1 = This
is my first Dynamic Struts application.
 
However, when i request MyFirstStrutsPage.jsp is get the following error
( 
what have i done wrong, any ideas on how to fix it?):
 
org.apache.jasper.JasperException


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:373)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)


org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)


javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root  cause 
java.lang.NullPointerException


org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java
:1219)


org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082)


org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226)


org.apache.jsp.registeruser_jsp._jspx_meth_bean_message_0(org.apache.jsp
.registeruser_jsp:157)


org.apache.jsp.registeruser_jsp._jspx_meth_html_html_0(org.apache.jsp.re
gisteruser_jsp:118)


org.apache.jsp.registeruser_jsp._jspService(org.apache.jsp.registeruser_
jsp:73)


org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)


javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:325)

 
org.apache.jasper.servlet.JspServlet.service
JspFile(JspServlet.java:295)


org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)


javax.servlet.http.HttpServlet.service(HttpServlet.java:802

RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
This error is because you have a code that's trying to write response
after it's committed. If you can share the code that's causing this
error then may be we can be of some help.

Vinod

-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 8:45 AM
To: tomcat-user@jakarta.apache.org
Subject: does anyone know this error??


I saw an error in my log ive never seen before:

java.lang.IllegalStateException: Current state = FLUSHED, new state =
CODING_END
at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncode
r.ja
va:933)
at
java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
at
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:
356)
at
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.PrintWriter.close(PrintWriter.java:137)
at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.j
ava:
483)
at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRespon
seBa
se.java:253)
at
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpR
espo
nseImpl.java:288)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:
1067)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1151
)
at java.lang.Thread.run(Thread.java:536)

What could be the problem?

Maarten Janssen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: web.xml

2005-03-17 Thread Ramu, Vinod
I would achieve this be configuring my web.xml. Try this piece of code

servlet
servlet-nameMyServlet/servlet-name
jsp-file/webReg.jsp/jsp-file
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/webReg/url-pattern
/servlet-mapping

So when to submit a URL http://localhost:8081/webReg; to your container
it maps to the jsp file under the servlet element.

Vinod


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 7:05 AM
To: tomcat-user@jakarta.apache.org
Subject: web.xml


Hi there,
i think this is a fairly easy thing to do, but i'm a newbie to  tomcat 
jsp.
 
I am requesting the following url
_http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp)
which 
exists and dsiplays fine.  However, i want to be able to request 
_http://localhost:8081/webReg_ (http://localhost:8081/webReg)  and for
tomcat to display 
_http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) .
 

What do i need to add in web.xml?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
I not sure whether you write a servlet code using STRUTS, at least I
have not see one because STRUTS frame work provides one. Once the
request is processed by STRUTS, it uses struts-config.xml file to
forward the response to next JSP page. forward XML element in
struts-config.xml file is used to forward to the next view.

I would suggest you to built an action class. Transfer the code from the
below get method to the new Action class. Configure you action class in
struts-config.xml file to forward the requests to the Action class. 

Hope this helps you,
Vinod
-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 9:06 AM
To: 'Tomcat Users List'
Subject: RE: does anyone know this error??


The only thing where I can find a direct writing/accesing the response
is

public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
try {
if(request.getParameter(photoid)!=null){
String photoid = request.getParameter(photoid);
Photo myPhoto = (Photo) Photo.retrieve(photoid);
if(myPhoto!=null  myPhoto.getPhoto()!=null){

if(myPhoto.getPhototype()!=null){

response.setContentType(myPhoto.getPhototype());
OutputStream out
=
response.getOutputStream();

out.write(myPhoto.getPhoto());
}
}
}
}
catch (Exception e) {
 
Logger.getLogger(nl.onvelvet.customer.PhotoServlet).error(LogUtil.getS
tack
Trace(e));
}
}

The rest is handled by Struts.

-Oorspronkelijk bericht-
Van: Ramu, Vinod [mailto:[EMAIL PROTECTED]
Verzonden: Thursday, March 17, 2005 2:54 PM
Aan: Tomcat Users List; [EMAIL PROTECTED]
Onderwerp: RE: does anyone know this error??


This error is because you have a code that's trying to write response
after it's committed. If you can share the code that's causing this
error then may be we can be of some help.

Vinod

-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 8:45 AM
To: tomcat-user@jakarta.apache.org
Subject: does anyone know this error??


I saw an error in my log ive never seen before:

java.lang.IllegalStateException: Current state = FLUSHED, new state =
CODING_END
at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncode
r.ja
va:933)
at
java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
at
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:
356)
at
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.PrintWriter.close(PrintWriter.java:137)
at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.j
ava:
483)
at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRespon
seBa
se.java:253)
at
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpR
espo
nseImpl.java:288)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:
1067)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1151
)
at java.lang.Thread.run(Thread.java:536)

What could be the problem?

Maarten Janssen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to redirect to a different host

2005-03-17 Thread Ramu, Vinod
You may have to use JSTL in your page. 

JSTL provides a tag called import that has the capability to import
contents from other site to your page. So you may built a page that
looks like

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

c:import url=http://shoppingcarthost:8080/shopping/

When the user requests webhost:8080/shopping use the
response.sendRedirect() to direct to his request to this new page. This
page will in turn post a request to a new container on a different
machine.

Don't forget to include JSTL jar files into your container. 

Vinod


-Original Message-
From: Dan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 2:58 PM
To: Tomcat Users List
Subject: How to redirect to a different host


Is there anyway to configure Tomcat (without using apache) to redirect 
requests for a particular context to a new url (and host)

Here's the scenario on the main page there is a link to a shopping cart 
context.  This webapp does not run on this machine, it's running on a
totally 
separate system, so what I want to do is:

when the context webhost:8080/shopping is requested the request is
redirected 
to shoppingcarthost:8080/shopping.  Is it possible to do this in the 
server.xml file, or does it have to be done somewhere else.

I know how to do this with apache, but using apache is not an option in
this 
case.  I need to know how to to do this independent of apache.  Just
using 
Tomcat configuration files.

Thanks
Daniel McMillan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mapping JSP

2005-03-17 Thread Ramu, Vinod
Use jsp-file XML element (under servlet node) in your web.xml. Then
dispatch the request to this resource using
ServletContext.getNamedDispatcher(nameoftheresource). If you use this
method there is no need to use any path. It identifies the resources
based on the name that you pass.

Vinod

-Original Message-
From: Jimmy Ray [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 4:31 PM
To: tomcat-user@jakarta.apache.org
Subject: Mapping JSP


I have several JSP that I want to be able to forward
to from servlets.  Right now I stick my JSP in
WEB-INF/jsp for security reasons.  I guess I need a
way to include a JSP mapping in the web.xml so that my
request dispatcher call does not include the WEB-INF
directory in its path.  Anyone know the syntax for
this JSP mapping?

Regards,

Jimmy Ray



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with Tomcat caching old pages that it shouldn't

2005-03-16 Thread Ramu, Vinod
All the compiled JSP servlet classes are stored under
jakarta-tomcat-5.5.4\work\Catalina\localhost\yourwebcontext. Please
check the timestamp of the compiled file. If you think that it's a old
file then I would delete the context directory under
jakarta-tomcat-5.5.4\work\Catalina\localhost\ as this directory
structure will be recreated during page compilation phase.

I agree that it should refresh automatically. But, if it's not working
you may wish to try this.

Vinod

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 11:11 AM
To: Tomcat Users List
Subject: Re: Problem with Tomcat caching old pages that it shouldn't


Asfand Qazi wrote:

 Basically here's my problem: I make a jsp page that works correctly.
 OK.  Then, I make a fault in it that shows a compile error page -
 also fine.
 
 The problem is, when I reload it a second time, Tomcat serves me the 
 old compiled JSP scriptlet, instead of giving me the compile error 
 message again!

Yep, I've seen this too, on 5.5.7 -- hadn't spent any real time on it,
but...

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
   cacheTTL

..the above sounds like a likely candidate, since it's obviously not
related to initial *loading* of changed classes.

Please post back the results of your testing :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help configure ServletFilter

2005-03-16 Thread Ramu, Vinod
I would suggest 

For JSP's,use url-pattern*.jsp/url-pattern.

And for Servlets. You could add a common starting name that maps to a
servlet path in the container. For instance, let's say all the URLs
starting with the path servlets map to some kind of servlet in the
container. Now add url-pattern/servlet/*/url-pattern element to your
filter. This maps all the servlet paths starting with servlet to be
intercepted by your filter. 

All the Best,
Vinod

-Original Message-
From: Fredrik Liden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 2:18 PM
To: Tomcat Users List
Subject: Help configure ServletFilter


Does anyone know how to configure a ServletFilter to only respond to
JSPs and Servlets? 

If I set it to everything using * it triggers for all the images as
well.

Thanks!

/Fredrik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
This sound very much similar to error handling. However,If you could
explain exactly about what you are trying to do then probably we could
suggest an alternative to get it done.

Vinod

-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 2:09 PM
To: Tomcat Users List
Subject: RE: {OT] Re: Jumping in and out of JSP


Does anyone know of a creative solution to this?  Or some way to achieve
what I am after?

Thanks

Charles 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 12:33 PM
To: Tomcat Users List
Subject: Re: {OT] Re: Jumping in and out of JSP

You can't do that. The jsp spec forbids it.

-Tim

Charles P. Killmer wrote:

 My goal in this is to have a function that returns a string.  But
 instead of doing something like this:
 
 %!
 Public String test() {
   return table border=\0\ cellspacing=\0\
cellpadding=\0\;
 }
 %
 
 I want to be able to jump out of JSP and just have the function echo
 it to the screen without needing to escape the s to put it into a 
 String object.
 
 Charles
 
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 15, 2005 12:23 PM
 To: Tomcat Users List
 Subject: Re: {OT] Re: Jumping in and out of JSP
 
 You can't mix:
 %!
 stuff with open brace {
 %
 JSP CODE
 %!
   } closeing brace here
 %
 
 Anything in %!% are class level declarations which live outside the
 jspService() method.  See the generated java to see what i mean.
 
 -Tim
 
 Charles P. Killmer wrote:
 
 
Maybe I wasn't clear.  The code that I pasted below is throwing all
sorts of errors.  Assuming that something like this can be done.  Why 
does my code throw errors?

Thanks
Charles

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 11:51 AM
To: Tomcat Users List
Subject: {OT] Re: Jumping in and out of JSP

On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer
[EMAIL PROTECTED] wrote:


Is it possible to do something like the following?  I have as much
code as I want in Java classes.  This is just to make modifying the 
UI


easier.

%!
public String test() {
%
test2
%!
}
%
%=test()%


Yes it is and one of the reaons using JSP's instead of just Servlets
is attractive.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
So, if I understood your requirement correctly, you want to execute a
single file, I,e JSP for every request. Probably after processing a
request you might wish to set an attribute to identify the response
view.

I would suggest to use standard jsp include tag, with this your template
JSP would look like

%-- put all your html/jsp code here (like the header, pictures
etc.)--%

jsp:include page=%=request.getParameter(mainPage)% /

%-- put all your html/jsp code here (like the footer etc.)--%

Keep in mind that this has a performance issue, as every request results
in runtime inclusion of output from the included JSP. 

Hope I was of some help.

Vinod


-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 2:32 PM
To: Tomcat Users List
Subject: RE: {OT] Re: Jumping in and out of JSP


I am using a template.jsp file that calls a function defined in another
file.  Then every file, ie index.jsp, in the site defines that function
and includes the template which calls the function.  That way I only
have one file defining what the site looks like.  

Is there a better way to template a site.  I don't like the method of
including sections into each jsp file.  This makes adding new sections
to every page difficult.

Charles

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: {OT] Re: Jumping in and out of JSP

This sound very much similar to error handling. However,If you could
explain exactly about what you are trying to do then probably we could
suggest an alternative to get it done.

Vinod

-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 2:09 PM
To: Tomcat Users List
Subject: RE: {OT] Re: Jumping in and out of JSP


Does anyone know of a creative solution to this?  Or some way to achieve
what I am after?

Thanks

Charles 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 12:33 PM
To: Tomcat Users List
Subject: Re: {OT] Re: Jumping in and out of JSP

You can't do that. The jsp spec forbids it.

-Tim

Charles P. Killmer wrote:

 My goal in this is to have a function that returns a string.  But 
 instead of doing something like this:
 
 %!
 Public String test() {
   return table border=\0\ cellspacing=\0\
cellpadding=\0\;
 }
 %
 
 I want to be able to jump out of JSP and just have the function echo 
 it to the screen without needing to escape the s to put it into a 
 String object.
 
 Charles
 
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 15, 2005 12:23 PM
 To: Tomcat Users List
 Subject: Re: {OT] Re: Jumping in and out of JSP
 
 You can't mix:
 %!
 stuff with open brace {
 %
 JSP CODE
 %!
   } closeing brace here
 %
 
 Anything in %!% are class level declarations which live outside the
 jspService() method.  See the generated java to see what i mean.
 
 -Tim
 
 Charles P. Killmer wrote:
 
 
Maybe I wasn't clear.  The code that I pasted below is throwing all 
sorts of errors.  Assuming that something like this can be done.  Why 
does my code throw errors?

Thanks
Charles

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 11:51 AM
To: Tomcat Users List
Subject: {OT] Re: Jumping in and out of JSP

On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer 
[EMAIL PROTECTED] wrote:


Is it possible to do something like the following?  I have as much 
code as I want in Java classes.  This is just to make modifying the 
UI


easier.

%!
public String test() {
%
test2
%!
}
%
%=test()%


Yes it is and one of the reaons using JSP's instead of just Servlets 
is attractive.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL

RE: Tomcat auth problem

2005-03-10 Thread Ramu, Vinod
I would try with using extension URL mapping. For instance, 
url-pattern*.jsp/url-pattern in my web.xml. 
 
And based on the URL sent by you and I thing the application root web context 
is nbpapps. If this is true, then begin your URL under the url-pattern tag 
with faces (based on the URL sent by you) because that seem to be a public 
directory directly under your web context.
 
Vinod



From: Kannan Shastri [mailto:[EMAIL PROTECTED]
Sent: Thu 3/10/2005 6:30 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat auth problem



Hi ,

 I am facing a very peculiar problem..I have configured my web-app to
use form-based auth and it is working fine, except when I give the
complete URL of a JSP pafe inside a restricted area, it allows me
access without redirecting to the login page.

I have in my web.xml something like..

security-constraint
   display-nameagentHome/display-name
   web-resource-collection
   web-resource-nameagentHome/web-resource-name
   descriptionAgent Home Applicaiton/description
   url-pattern
   /index.jsp/url-pattern
   url-pattern/agentHome/*/url-pattern
   url-pattern/lob/*/url-pattern
   url-pattern/lob/term/*/url-pattern
   http-method
   GET/http-method
   http-method
   POST/http-method
   /web-resource-collection
   auth-constraint
   description/description
   role-nameappAgentHome/role-name
   /auth-constraint
   /security-constraint

But when i type the URL http://localhost:8080/nbpapps/faces/lob/term/ABC.jsp
it takes me directly to the page.
But on one machine in the network, it behaves OK and redirects me to
the login page...

Any idea what the problem could be?

Regards,

Kannan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Ramu, Vinod
I thought 

/distributable 

XML element in web.xml does that automatically.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 9:40 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s). Access to this email by anyone else is unauthorized.
If you are not an intended recipient, please notify the sender of this
email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to access web site from other computers

2005-03-08 Thread Ramu, Vinod
The IP allocated to your machine must be STATIC. 

If you built a internet site then ask your internet service provider to
allocate a static IP to your machine. 
Otherwise, if you have built a intranet site talk to your system
administrator, probably he will find a domain controller.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 11:13 AM
To: Tomcat Users List
Subject: How to access web site from other computers


I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using http://localhost/web/JSP/login.html and
also using machine name ie. http://dummy/web/JSP/login.html. My computer
is in network. But i'm unable access my web application from other
computers. What should i do to make my web application available on
other machines as well? Any other s/w i need? Pls suggest.




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



J_security_check interceptor

2005-03-07 Thread Ramu, Vinod
Hi,

I am trying to intercept the submit action of login.jsp. I am using FORM
authentication. The plan is to wrap the response in the Servlet Filter
to intercept j_security_check action to identify the username,
password and role to create a user object. In this way user profile is
available for future authorization process. 

I tried to do so but failed to get the j_security_check action to
trigger my filter. I have my filter mapping set to
url-pattern/*/url-pattern. The fact is that the filter is triggered
only after the authentication process is completed by the container for
every request but not during the authentication process.

Could anybody please suggest how to get this implemented? 
I would prefer a very generic solution that works across different
servers.

Thanks,
VinodRamu 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
Hi, 

This could be because Tomcat uses other -D option, which I am not
exactly sure of (refer the doc).
 
Besides, you need jdk 1.5XXX and you have to start the server from the
TOMCAT_HOME directory. 

Also try to set the suspend=n option to suspend=y this will make the
debuggee to wait till the debugger joins the debuggee.

Hope this helps u

Vinod

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 4:56 PM
To: 'Tomcat Users List'; 'Will Norris'
Subject: Remote debugging with tomcat windows


Hello I am running tomcat 5 on windoze xp and trying to get remote
debugging to work. I can do it fine when the server is linux but can not
get it to work with windoze.

In the java options (in the tomcat properties dialog) I put the
following

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

In my log file I get ::: (even if all I add is -Xdebug)

Thanks for any help

[2005-03-07 15:54:16] [415  javajni.c] [error] CreateJavaVM Failed
[2005-03-07 15:54:16] [770  prunsrv.c] [error] Failed initializing java
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2005-03-07 15:54:16] [982  prunsrv.c] [error] ServiceStart returned 2




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
This is what I found in the documentation
 
If using a J2SE 1.4 JRE, the compatibility package must be downloaded and 
expanded inside the folder where Tomcat was installed
 
I am using tomcat 5.5
 
I was not able to get my debugger join the server until I ran the tomcat on the 
command using java.exe directly.
 
I am using java 
-Xrunjdwp:transport=dt_socket,server=y,address=9000... command (just 
for development) :-). Yeah there are other ways by which you could set these 
values. I am using jdk1.5XX
 
Again, as I said earlier make sure that you have set all the -D options that 
the server needs.
 
Vinod


From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Mon 3/7/2005 5:25 PM
To: Tomcat Users List
Subject: RE: Remote debugging with tomcat windows



 From: Randy Paries [mailto:[EMAIL PROTECTED]
 Subject: RE: Remote debugging with tomcat windows

 If I only do  -Xdebug I still get the error messages

Have you tried running it from the command line rather than as a service?

 Is 1.5 a requirement for windoze???

No; have no idea why anyone would think that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

confusion

2001-08-28 Thread vinod tomcat



hi friends,

 can anybody help me ..i m in fix ..


  1. some body said me that containts of work
directiory in tomcat are generated automatically and
normal functionaing of a site dosent get affected if
all class files in work directiory are deleted . is
this true ??? 

 even if i delete all class files in work ,
application works fine ??  please help me...


 2. if i make any change to any jsp file , do i need
to delete the class files of work directiory ???
somebody said me so ..is this necesssery to make
changes effect ??



thanks 


Do You Yahoo!?
Send a newsletter, share photos  files, conduct polls, organize chat events. Visit 
http://in/ groups.yahoo.com



Re: confusion

2001-08-28 Thread vinod tomcat



   1.  IF I UPDATE ANY JSP FILE AND UPLOAD , DO I NEED
TO MAKE ANY CHANGES WITH WORK DIRECT. SOME BODY TOLD
ME THAT I WILL HAVE TO DELETE THE CONCERNED .CLASS
FILES ???


   2. IF I MAKE CHANGES WITH THE ANY CONFIGURATION
FILE ...DO I NEED TO MAKE ANY CHANGES WITH ANY OTHER
FILE ... I HAD REPLACED THE SERVER.XML FILE AS IT WAS
CORRUPTED ..BUT NOW I M GETTING ERROR..



 --- Dmitri Colebatch [EMAIL PROTECTED] wrote: 
The work directory is where .jsp files are compiled
 first to .java then to
 .class files.  You shouldn't need to worry about it
 at all.  If you delete
 files in there I think you could have problems while
 tomcat is running,
 but if you stop tomcat you can certainly delete all
 the files and they
 will be regenerated when .jsp files are requested.
 
 hth
 dim
 
 On Tue, 28 Aug 2001, [iso-8859-1] vinod tomcat
 wrote:
 
  
  
  hi friends,
  
   can anybody help me ..i m in fix ..
  
  
1. some body said me that containts of work
  directiory in tomcat are generated automatically
 and
  normal functionaing of a site dosent get affected
 if
  all class files in work directiory are deleted .
 is
  this true ??? 
  
   even if i delete all class files in work ,
  application works fine ??  please help me...
  
  
   2. if i make any change to any jsp file , do i
 need
  to delete the class files of work directiory ???
  somebody said me so ..is this necesssery to make
  changes effect ??
  
  
  
  thanks 
  
 


  Do You Yahoo!?
  Send a newsletter, share photos  files, conduct
 polls, organize chat events. Visit http://in/
 groups.yahoo.com
  
  


Do You Yahoo!?
Send a newsletter, share photos  files, conduct polls, organize chat events. Visit 
http://in/ groups.yahoo.com



how to set up new web apps

2001-06-06 Thread vinod watni

hi friends ,

 i m using standalone tomcat server.


i tried to create the drectory structure as bellow

purejsp 

   purejsp/web-inf

  : purejsp/web-inf/classes  in the webpages
directory.

  i did put some html and jsp pages in purejsp
directory and added purejsp in context path in
server.xml file.
  this i did as given in purejsp book , but when i try
to access the file from brouser i get error 404.  I
restarted the and tried but dosent work ?/

  where should  i  put my html , jsp and classes ,
beans intomact ???

  how can i create a web application without making
war file ???


 regards
 vinod


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



file not gopund error..

2001-06-05 Thread vinod watni




  hi friends ,

i tried to create the drectory structure as bellow

purejsp 

   purejsp/web-inf

  : purejsp/web-inf/classes  in the webpages
directory.

  i did put some html and jsp pages in purejsp
directory and added purejsp in context path in
server.xml file.
  this i did as given in purejsp book , but when i try
to access the file from brouser i get error 404.  I
restarted the and tried but dosent work ?/

  where should  i  put my html , jsp and classes ,
beans intomact ???

  how can i create a web application without making
war file ???


 regards
 vinod

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: file not gopund error..

2001-06-05 Thread vinod watni



  hi 


 no i m not running on apache , i m running as stand
alone tomcat server.

 neither me know about war files.

 regards 

vinod




--- Phillip Gibb [EMAIL PROTECTED] wrote:
 Hi,
 
 If you are running Apache then look at where your
 document Root is pointing
 to in httpd.conf
 there you must place your welcome file and any none
 jsp stuff.
 
 also add you welcome file in httpd.conf if you don't
 want to type it when
 going to your web site.
 
 In an Apache-tomcat environment the jsps will be
 handled by tomcat(dynamic)
 and the normal html and images, etc by
 apache(static)
 
 In windows : check that your welcome file is added
 to the web.xml config
 file in tomcat\conf\ (right at the bottom)
 
 sorry I know nothing of war files
 
 Phill
 
 -Original Message-
 From: vinod watni [mailto:[EMAIL PROTECTED]]
 Sent: 06 June 2001 07:54
 To: [EMAIL PROTECTED]
 Subject: file not gopund error..
 
 
 
 
 
   hi friends ,
 
 i tried to create the drectory structure as
 bellow
 
 purejsp 
 
purejsp/web-inf
 
   : purejsp/web-inf/classes  in the webpages
 directory.
 
   i did put some html and jsp pages in purejsp
 directory and added purejsp in context path in
 server.xml file.
   this i did as given in purejsp book , but when i
 try
 to access the file from brouser i get error 404.  I
 restarted the and tried but dosent work ?/
 
   where should  i  put my html , jsp and classes ,
 beans intomact ???
 
   how can i create a web application without making
 war file ???
 
 
  regards
  vinod
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail -
 only $35 
 a year!  http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Server Side Include

2001-03-28 Thread vinod

hai

  How to make server-side Include in Tomcat.How to configure tomcat to run
"shtml" file.Let me please know at the earliest

vinod



Problem with Tomcat as NT service

2001-01-03 Thread Vinod

Hi,
I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used
jk_nt_service.exe to make tomcat as NT service and followed the steps as it
is in the documentation. After that I have started the service, when I run a
small jdbc example I got the sql exception 'No suitable jdbc driver found'.
The same program runs fine when I start tomcat manually. Please provide
solution.
 
Thanx n Regards,
Vinod

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Problem with Tomcat as NT service

2001-01-03 Thread Vinod




Hi,
 I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I 
have used jk_nt_service.exe to make tomcat as NT service and followed the steps 
as it is in the documentation. After that I have started the service, when I run 
a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please 
provide solution.

Thanx n Regards,
Vinod