HTTP Status 404.

2003-11-24 Thread Anunay Ashish
Hi,
I have Apache Tomcat 4.0.3 on my system. I am trying to access a file index.htm in the 
folder D:\ApacheTomcat4\webapps\pg_mdp through the url 
http://p223.tis.co.in:8080/pg_mdp/index.htm but is showing HTTP Status 404.
What is the problem?
Thanks in advance.
Regards,
Anunay.

Please suggest.

2003-11-17 Thread Anunay Ashish
Can you suggest a mailing list for learning java?

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



Factory methods.

2003-10-28 Thread anunay ashish
Why are some methods called factory methods?
e.g. prepareStatement() in java.sql.PreparedStatement

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



URL of calling JSP page calling a servlet.

2003-10-27 Thread anunay ashish
Hi,
I want to trap the url of the JSP page calling a servlet. I want to use the
url in the servlet to determine my course of action.
Thanks in advance.
Regards,
Anunay Ashish.


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



Re: URL of calling JSP page calling a servlet.

2003-10-27 Thread anunay ashish
I mean I call a servlet addDataServlet from a JSP file pageFormats.jsp
In the addDataServlet I want to know that which is the JSP page that called
this servlet?
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 7:41 PM
Subject: RE: URL of calling JSP page calling a servlet.



Howdy,
You mean like the Referer (misspelled) header?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: anunay ashish [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 8:55 AM
To: Tomcat Users List
Subject: URL of calling JSP page calling a servlet.

Hi,
I want to trap the url of the JSP page calling a servlet. I want to use
the
url in the servlet to determine my course of action.
Thanks in advance.
Regards,
Anunay Ashish.


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




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.


-
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]



Request, response and session.

2003-10-22 Thread anunay ashish
Hi,
I have a good background of ASP but recently started programming in JSP.
Where does Request and Response object comes in JSP?
Can we define a session variable in JSP similar to ASP?

Thanks in advance.
Regards,
Anunay Ashish.

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



Probelm with the jsp:setProperty / tag.

2003-10-14 Thread anunay ashish
Hi,
I am facing difficulty while using setProperty tag in JSP.
My JSP page is:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTML
 HEAD
  TITLE Page ranges /TITLE
  META NAME=Generator CONTENT=EditPlus
  META NAME=Author CONTENT=
  META NAME=Keywords CONTENT=
  META NAME=Description CONTENT=
 /HEAD

 BODY
  %@ page import=java.sql.* %
  %! String bookId; %

  jsp:useBean id=rangePage scope=session
class=com.scheduler.rangeUpdate /
  !--jsp:setProperty name=rangePage property=bookId param=bookId /--
  %
   bookId = request.getParameter(bookId);
   out.print(bookId);
   rangePage.callProcess();
  %
 /BODY
/HTML

and my bean is:
package com.scheduler;

import java.sql.*;

public class rangeUpdate
{
 private String bookId;

 public void callProcess()
 {
  System.out.println(BookId:  + bookId);
 }
}

I got an error as follows:
org.apache.jasper.JasperException: Cannot find any information on property
'bookId' in a bean of type 'com.scheduler.rangeUpdate'

Where I am going wrong?

Thanks in advance.

Regards,
Anunay Ashish.


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



Re: Probelm with the jsp:setProperty / tag.

2003-10-14 Thread anunay ashish
Nick,
Can I also use the variable name in property attribute instead of *?
Regards,
Anunay.
- Original Message -
From: CUCKSON, Nick, FM [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 3:20 PM
Subject: RE: Probelm with the jsp:setProperty / tag.


 Anunay,

 you need to add accessor methods to your bean for the property bookId.
 ie
 public void setBookId(String bookId) { this.bookId = bookId; }
 public String getBookId() { return bookId; }

 and set the property from the jsp page.
 eg
 jsp:setProperty name=rangePage property=* /

 Nick

 -Original Message-
 From: anunay ashish [mailto:[EMAIL PROTECTED]
 Sent: 14 October 2003 10:13
 To: Tomcat Users List
 Subject: Probelm with the jsp:setProperty / tag.


 Hi,
 I am facing difficulty while using setProperty tag in JSP.
 My JSP page is:
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTML
  HEAD
   TITLE Page ranges /TITLE
   META NAME=Generator CONTENT=EditPlus
   META NAME=Author CONTENT=
   META NAME=Keywords CONTENT=
   META NAME=Description CONTENT=
  /HEAD

  BODY
   %@ page import=java.sql.* %
   %! String bookId; %

   jsp:useBean id=rangePage scope=session
 class=com.scheduler.rangeUpdate /
   !--jsp:setProperty name=rangePage property=bookId param=bookId
/--
   %
bookId = request.getParameter(bookId);
out.print(bookId);
rangePage.callProcess();
   %
  /BODY
 /HTML

 and my bean is:
 package com.scheduler;

 import java.sql.*;

 public class rangeUpdate
 {
  private String bookId;

  public void callProcess()
  {
   System.out.println(BookId:  + bookId);
  }
 }

 I got an error as follows:
 org.apache.jasper.JasperException: Cannot find any information on property
 'bookId' in a bean of type 'com.scheduler.rangeUpdate'

 Where I am going wrong?

 Thanks in advance.

 Regards,
 Anunay Ashish.


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




***
 This e-mail is intended only for the addressee named above.
 As this e-mail may contain confidential or privileged information,
 if you are not the named addressee, you are not authorised to
 retain, read, copy or disseminate this message or any part of it.
 The Royal Bank of Scotland plc is registered in Scotland No 90312
 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
  Regulated by the Financial Services Authority

 Visit our website at http://www.rbs.co.uk/CBFM/


***


 -
 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: INVOKER fails after webapp recompile

2003-10-14 Thread anunay ashish
I faced the same problem. I think by starting the web application from
Tomcat manager can bypass the need to restart the tomcat.
- Original Message -
From: Niklas Saers Mailinglistaccount [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 3:53 PM
Subject: INVOKER fails after webapp recompile


 Hi all,
 every time I recompile my servlet (targetted at the deployment directory),
 org.apache.catalina.INVOKER lists it as unavailable. This is fixed by
 stopping and starting the tomcat server, but this is far from ideal. Can
 someone tell me why this happens and what can be done so that it will
 reload the app correctly and launch it, without becoming 503 unavailable?

 Under is a dump from reloading one file, I get one of these for each file
 in the webapp.

 Cheers

Nik

 2003-10-14 12:00:50 StandardContext[/servlets]: Reloading this Context has
 started
 2003-10-14 12:00:50 WebappLoader[/servlets]: Reloading checks are enabled
 for this Context
 2003-10-14 12:00:50

StandardWrapper[/servlets:org.apache.catalina.INVOKER.no.registrar.servlets.
LagDBKnapper]:
 Marking servlet
org.apache.catalina.INVOKER.no.registrar.servlets.LagDBKnapper as
unavailable
 2003-10-14 12:00:51 StandardContext[/servlets]: Servlet /servlets threw
 load() exception
 javax.servlet.ServletException: Wrapper cannot find servlet class
 no.registrar.servlets.LagDBKnapper or a class it depends on
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
1)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)
 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:2568)
 at

org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoad
er.java:1369)
 at java.lang.Thread.run(Thread.java:484)
 - Root Cause -
 java.lang.ClassNotFoundException: no.registrar.servlets.LagDBKnapper
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1444)
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
5)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)
 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:2568)
 at

org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoad
er.java:1369)
 at java.lang.Thread.run(Thread.java:484)



 -
 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]



Unable to locate JSP page from Servlet.

2003-10-13 Thread anunay ashish
Hi,
I am calling a JSP page from a servlet as follows:
try
  {
   //set the attribute and forward to pageFormat.jsp
   request.setAttribute(servletName, addDataServlet);

getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
m/pageFormat.jsp).forward(request, response);
  }
  catch (Exception ex)
  {
   ex.printStackTrace ();
  }

But the error I am getting is HTTP Status 404.
Physically the JSP file is present in that folder.
Why is the my application not able to locate my JSP page?
Where am I going wrong?
Thanks in advance?

- Original Message -
From: Martin Jacobson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 1:38 PM
Subject: Re: tomcat and mac os 10.2.8 update


 Giuliano Gavazzi wrote:

  was /usr/local a symbilic link? If so the installation might have
  replaced it with a directory. so you should copy the new content to the
  target and reinstate the symbilic link.
 
  BTW Using JAVA_HOME:   /usr sounds wrong to me.
 
 No, that's right for Mac OS X

 Martin


 -
 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: Unable to locate JSP page from Servlet.

2003-10-13 Thread anunay ashish
How do we reload servlet in Tomcat manager?
- Original Message -
From: Twan Munster [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 2:06 PM
Subject: Re: Unable to locate JSP page from Servlet.


 Hello,

 You've correctly configured your sitemap? En maybe you have to restart
 tomcat,
 or reload the servlet in the tomcat manager.

 good luck

 Twan
 - Original Message -
 From: anunay ashish [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, October 13, 2003 10:32 AM
 Subject: Unable to locate JSP page from Servlet.


  Hi,
  I am calling a JSP page from a servlet as follows:
  try
{
 //set the attribute and forward to pageFormat.jsp
 request.setAttribute(servletName, addDataServlet);
 
 

getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
  m/pageFormat.jsp).forward(request, response);
}
catch (Exception ex)
{
 ex.printStackTrace ();
}
 
  But the error I am getting is HTTP Status 404.
  Physically the JSP file is present in that folder.
  Why is the my application not able to locate my JSP page?
  Where am I going wrong?
  Thanks in advance?
 
  - Original Message -
  From: Martin Jacobson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, October 13, 2003 1:38 PM
  Subject: Re: tomcat and mac os 10.2.8 update
 
 
   Giuliano Gavazzi wrote:
  
was /usr/local a symbilic link? If so the installation might have
replaced it with a directory. so you should copy the new content to
 the
target and reinstate the symbilic link.
   
BTW Using JAVA_HOME:   /usr sounds wrong to me.
   
   No, that's right for Mac OS X
  
   Martin
  
  
   -
   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]



Page context.

2003-10-13 Thread anunay ashish
Hi,
What is meant by page context in JSP pages?
Thanks in advance.
Regards,
Anunay Ashish.

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



Re: Difficulty in compiling a servlet.

2003-10-12 Thread anunay ashish
I don't have a syntax error any where.
- Original Message -
From: Eric C [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 2:00 PM
Subject: Re: Difficulty in compiling a servlet.


 Don't you have a syntax error somewhere ?

 DBUpadate



 - Original Message -
 From: anunay ashish [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, October 11, 2003 2:27 PM
 Subject: Difficulty in compiling a servlet.


  Hi,
 
  The code for my bean is:
 
  package com.scheduler;
  import java.sql.*;
  public class DBUpdate
  {
  private Connection conn;
  private Statement stmt;
  private ResultSet rs;
   public DBUpdate()
  {
  conn = null;
  stmt = null;
  rs = null;
  }
   public void process(String query)
  {
  try
  {
 
 Class.forName(oracle.jdbc.driver.OracleDriver).newInstance();
  Connection conn =
 
DriverManager.getConnection(jdbc:oracle:thin:@192.168.10.36:1521:myData,
  mangesh, mangesh);
  stmt = conn.createStatement();
  rs = stmt.executeQuery(query);
 System.out.println(Query:  + query +  executed);
  }
  catch(Exception exception1)
  {
  System.out.println(Error occured in DBUpdate.process()
  SQLException : + exception1);
  }
  }
   public ResultSet getResultSet() throws SQLException
  {
   return rs;
  }
   public void destroy()
   {
  conn = null;
  stmt = null;
  rs = null;
   }
  }
 
  And for my servlet is:
 
  package com.scheduler;
  import java.io.*;
  import java.sql.*;
  import java.text.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
 
  public class addDataServlet extends HttpServlet
  {
   private String pageFormat;
   public void doPost(HttpServletRequest request, HttpServletResponse
  response) throws ServletException, IOException
   {
ResultSet testRS;
DBUpdate dbupdate = new DBUpdate();
pageFormat = request.getParameter(newPageFormat);
PrintWriter out = response.getWriter();
out.print(pageFormat);
String query = Select * from lookup_page_format;
dbupdate.process(query);
try
{
 testRS = dbupdate.getResultSet();
while(testRS.next())
 {
  out.print(testRS.getString(2));
  out.print(hi);
 }
}
catch (SQLException e)
{
 out.println(SQLException : + e);
}
try
{
 //set the attribute and forward to pageFormat.jsp
 request.setAttribute(servletName, addDataServlet);
 
 

getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
  m/pageFormat.jsp).forward(request, response);
}
catch (Exception ex)
{
 ex.printStackTrace ();
}
   }
  }
 
  On compiling the addDataServlet.java, an error is coming - Unresolved
  symbol:Class DBUpadate is not resolved
  Where I am doing wrong?
 
  Thanks in advance.
  Regards,
  Anunay.
 
 
  -
  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]



Tomcat restart.

2003-10-11 Thread anunay ashish
Hi,
I am using Tomcat to host an application. Sometimes it happens that the JSP
page giving an error, becomes fine as soon as I restart the tomcat. The
error generated is specifically at the place where I am initializing the
bean.
Why is it so?
Thanks in advance.
Regards,
Anunay Ashish.
- Original Message -
From: Peter Harrison [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 12:24 PM
Subject: Re: redirect port 8080 to 443


 On Sat, 11 Oct 2003 17:38, Bill Barker wrote:
  It's in the FAQ:
  http://jakarta.apache.org/tomcat/faq/security.html#https
 
  Twan Munster [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  Hello,
 
  I'm using apache+mod_ssl+mod_jk to make a secure connection.
  But every time I call a page in cocoon it is called through port 8080.
Is
  it possible to redirect a call to port 8080  to port 443? And not for
the
  entire server, but only for a certain directory?How is this done?

 Assuming you have configured tomcat correctly to handle SSL its simply a
 matter of using https:// rather than http:// in you URL's.

 -
 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]



Difficulty in compiling a servlet.

2003-10-11 Thread anunay ashish
Hi,

The code for my bean is:

package com.scheduler;
import java.sql.*;
public class DBUpdate
{
private Connection conn;
private Statement stmt;
private ResultSet rs;
 public DBUpdate()
{
conn = null;
stmt = null;
rs = null;
}
 public void process(String query)
{
try
{
Class.forName(oracle.jdbc.driver.OracleDriver).newInstance();
Connection conn =
DriverManager.getConnection(jdbc:oracle:thin:@192.168.10.36:1521:myData,
mangesh, mangesh);
stmt = conn.createStatement();
rs = stmt.executeQuery(query);
   System.out.println(Query:  + query +  executed);
}
catch(Exception exception1)
{
System.out.println(Error occured in DBUpdate.process()
SQLException : + exception1);
}
}
 public ResultSet getResultSet() throws SQLException
{
 return rs;
}
 public void destroy()
 {
conn = null;
stmt = null;
rs = null;
 }
}

And for my servlet is:

package com.scheduler;
import java.io.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class addDataServlet extends HttpServlet
{
 private String pageFormat;
 public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
 {
  ResultSet testRS;
  DBUpdate dbupdate = new DBUpdate();
  pageFormat = request.getParameter(newPageFormat);
  PrintWriter out = response.getWriter();
  out.print(pageFormat);
  String query = Select * from lookup_page_format;
  dbupdate.process(query);
  try
  {
   testRS = dbupdate.getResultSet();
  while(testRS.next())
   {
out.print(testRS.getString(2));
out.print(hi);
   }
  }
  catch (SQLException e)
  {
   out.println(SQLException : + e);
  }
  try
  {
   //set the attribute and forward to pageFormat.jsp
   request.setAttribute(servletName, addDataServlet);

getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
m/pageFormat.jsp).forward(request, response);
  }
  catch (Exception ex)
  {
   ex.printStackTrace ();
  }
 }
}

On compiling the addDataServlet.java, an error is coming - Unresolved
symbol:Class DBUpadate is not resolved
Where I am doing wrong?

Thanks in advance.
Regards,
Anunay.


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



Servlet and Beans.

2003-10-10 Thread anunay ashish
If my bean and servlet are as package com.scheduler, then can I use make an
object of the bean class in the servlet?


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



Re: Servlet and Beans.

2003-10-10 Thread anunay ashish
I am trying to use the bean class in the servlet but at the line in my code
in servlet where I am creating the object for bean class, on compiling the
java file it throws me errrors of Cannot compile the java file.
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 3:04 PM
Subject: Re: Servlet and Beans.


 Yes, as long as you import the classes and make them available in your
 webapp.

 anunay ashish wrote:

 If my bean and servlet are as package com.scheduler, then can I use make
an
 object of the bean class in the servlet?
 
 
 -
 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]



Setting variables.

2003-10-10 Thread anunay ashish
When we set CLASSPATH variable in windows XP, where should we set it -
1. In user variables for administrator or
2. System variables


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



Unable to open the servlet.

2003-10-06 Thread anunay ashish
Hi,
My servlet is placed at:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
with the name addDataServlet

My web.xml is as follows:
web-app
 servlet
 servlet-name
  addDataServlet
 /servlet-name
 servlet-class
  com.scheduler.addDataServlet
 /servlet-class
/servlet
 welcome-file-list
welcome-filepageFormat.jsp/welcome-file
/welcome-file-list
web-app

I am calling it from my JSP page as:
form action=/com/scheduler/addDataServlet method=Post
   input type=text name=newPageFormat
   input type=Submit name=submitButton value=Submit
  /form

But on clicking the submit button it takes me to:
HTTP Status 404 - /com/scheduler/addDataServlet




type Status report

message /com/scheduler/addDataServlet

description The requested resource (/com/scheduler/addDataServlet) is not
available.





Apache Tomcat/4.1.27
Please suggest me the remedy for this.
Regards,
Anunay Ashish.


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



Unable to open the servlet.

2003-10-06 Thread anunay ashish
Hi,
My servlet is placed at:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
with the name addDataServlet

 My web.xml is as follows:
 web-app
  servlet
  servlet-name
   addDataServlet
  /servlet-name
  servlet-class
   com.scheduler.addDataServlet
  /servlet-class
 /servlet
  welcome-file-list
 welcome-filepageFormat.jsp/welcome-file
 /welcome-file-list
 web-app

 I am calling it from my JSP page as:
 form action=servlet/com/scheduler/addDataServlet method=Post
input type=text name=newPageFormat
input type=Submit name=submitButton value=Submit
   /form

 But on clicking the submit button it takes me to:
 HTTP Status 404 - /com/scheduler/addDataServlet

 ---
-

 type Status report

 message /com/scheduler/addDataServlet

 description The requested resource (/com/scheduler/addDataServlet) is not
 available.


 ---
-

 Apache Tomcat/4.1.27

The text in the file localhost_log.2003-10-06.txt in logs folder
corresponding to the above error message is:
2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files
/WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes
2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random number
generator class java.security.SecureRandom

Please suggest me the remedy for this.
Regards,
Anunay Ashish.


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



Re: Unable to open the servlet.

2003-10-06 Thread anunay ashish
I have tried the suggested remedies. My application's web.xml has the
following addition:
 servlet-mapping
  servlet-nameaddDataServlet/servlet-name
  url-pattern/com/scheduler/addDataServlet/url-pattern
 /servlet-mapping


and I have uncommented the server's web.xml to
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping

and I have restarted my tomcat. But the same problem persists.
The version of my tomcat is: jakarta-tomcat-4.1.27

Where can I be still going wrong?
Regards,
Anunay Ashish.


- Original Message -
From: drm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 2:51 PM
Subject: Re: Unable to open the servlet.


 hi :)

 As far as i can tell you are missing a servlet-mapping in your web.xml.
 A servlet uri should also be mapped to a specific servlet.

 Try including:

 servlet-mapping
 servlet-nameaddDataServlet/servlet
 url-pattern/com/scheduler/addDataServlet/url-pattern
 /servlet-mapping

 in your web.xml file.

 If this doesn't work, please state your tomcat version.

 hth :)

 -- drm

 anunay ashish wrote:

  Hi,
  My servlet is placed at:
  C:\Program Files\Apache Group\Tomcat
  4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
  with the name addDataServlet
 
   My web.xml is as follows:
   web-app
servlet
servlet-name
 addDataServlet
/servlet-name
servlet-class
 com.scheduler.addDataServlet
/servlet-class
   /servlet
welcome-file-list
   welcome-filepageFormat.jsp/welcome-file
   /welcome-file-list
   web-app
 
   I am calling it from my JSP page as:
   form action=servlet/com/scheduler/addDataServlet method=Post
  input type=text name=newPageFormat
  input type=Submit name=submitButton value=Submit
 /form
 
   But on clicking the submit button it takes me to:
   HTTP Status 404 - /com/scheduler/addDataServlet
 

  --
-
  -
 
   type Status report
 
   message /com/scheduler/addDataServlet
 
   description The requested resource (/com/scheduler/addDataServlet) is
not
   available.
 
 

  --
-
  -
 
   Apache Tomcat/4.1.27
 
  The text in the file localhost_log.2003-10-06.txt in logs folder
  corresponding to the above error message is:
  2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files
  /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
  4.1\webapps\Tracking_system\WEB-INF\classes
  2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random
number
  generator class java.security.SecureRandom
 
  Please suggest me the remedy for this.
  Regards,
  Anunay Ashish.
 
 
  -
  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]



Servlet and JSP.

2003-10-06 Thread anunay ashish
Hi,
I have a problem regarding my servlet.
The JSP file calling the servlet is having the following code:
HTML
 HEAD
  TITLE Page format /TITLE
  META NAME=Generator CONTENT=EditPlus
  META NAME=Author CONTENT=
  META NAME=Keywords CONTENT=
  META NAME=Description CONTENT=
 /HEAD

 BODY
  %@ page import=java.sql.* %
  jsp:useBean id=dbBean scope=session class=com.scheduler.DBUpdate /
  !--In the above statement the bean tag made an object of the class and
called the constructor too.--
  Welcome! The available page formats are:
  br
  table border=1
   trtdbPage format/b/td/tr
%
 ResultSet testRS;
 String query = Select * from lookup_page_format; //On giving a ;
after the query did not return any record.
 dbBean.process(query);
 try
  {
   testRS = dbBean.getResultSet();
   while(testRS.next())
{
 out.print(trtd + testRS.getString(2) + /td/tr);
 System.out.println(testRS.getString(2));
}
  }
 catch (SQLException e)
  {
   out.print(SQLException : + e);
  }
%
  /table
  Please add a new page format of your choice:
  form action=servlet/com.scheduler.addDataServlet method=GET
   input type=text name=newPageFormat
   input type=Submit name=submitButton value=Submit
  /form
 /BODY
/HTML

The bean as well as the servlet packages is in the same folder as:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler

If I change the method in servlet from doGet to doPost and make the
corresponding change in form method to POST then the JSP throws an error
of something related to my bean package.

Is the problem related to GET/POST? or to the fact that both the packages
are in the same folder?

Regards,
Anunay Ashish.




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



Unable to access JSP page on local host

2003-10-04 Thread anunay ashish
Hi,
I am using TOMCAT to host JSP pages. The directory structure is:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system
The page that I want to access is pageFormat.jsp inside Tracking_system
through the url: http://localhost:8080/Tracking_system/pageFormat.jsp
The web.xml file inside WEB-INF is containing only the following tag:
web-app
/web-app
I am not able to access the page. Sometimes I am able to and sometimes I am
not with the error description coming as:
The requested resource (/Tracking_system/pageFormat.jsp) is not available.


In fact /Tracking_system is also not shown as a directory.

Where am I doing wrong? What is the problem?
Regards,
Anunay Ashish.


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