configuring Apache with weblogic in windows

2002-02-20 Thread Kam Premkumar

Any one configured apache with weblogic 6.1 sp2 in widnows 2000. Please
show some light to configure. I followed the instructions in bea docs.
But no luck.

Thanks
Prem

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



xml loading ?

2002-01-02 Thread Kam Premkumar



All,

I try to display an xml through xsl in the browser. Its displaying fine.
Once the parsing is done I want to run a javascript function. So My
question is How can Ifind out whether the xml document is loaded or not.
I am displaying the xml through servlet output stream ?. Here I attached
the xsl file for you reference and hilighted the javascript function also?xml version="1.0"?xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"xsl:template match="/"HTMLHEADLINK REL="stylesheet" TYPE="text/css" HREF="/RetailIConsole/styles/nr-pcstyle.css"/LINK  /HEADBODY BGCOLOR="#FF" TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" HEIGHT="100%" WIDTH="100%" TRTD ROWSPAN="6"
IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD   TD COLSPAN="3"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD  TD ROWSPAN="6"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD  /TR   TR CLASS="tableTopBar"TD COLSPAN="3" CLASS="tableTabBorder" HEIGHT="1"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD/TR   TR CLASS="tableTopBar"TD ROWSPAN="2" CLASS="tableTabBorder" WIDTH="1"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD TD CLASS="tabHeaderBg"IMG SRC="javascript:void(0);" WIDTH="11" HEIGHT="11" BORDER="0"/SPAN CLASS="tabHeader"Winback Type Finder /SPAN/TDTD RO
WSPAN="2" CLASS="tableTabBorder" WIDTH="1"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD   /TR   TRTD CLASS="tableTabBorder" HEIGHT="1"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="1" BORDER="0"//TD/TR   TRTD CLASS="tableTabBorder" WIDTH="1"IMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="300" BORDER="0"//TD   TD CLASS="tableBackground" VALIGN="TOP"   TABLE CELLPADDING="0" CELLSPACING="3" BORDER="0" WIDTH="100%" TRTD ROWSPAN="20"IMG SRC="javascript:void(0);" WIDTH="35" HEIGHT="1" BORDER="0"//TDTDIMG SRC="javascript:void(0);" WIDTH="1" HEIGHT="20" BORDER="0"//TD TD ROWSPAN="20"IMG SRC="javascript:void(0);" WIDTH="35" HEIGHT="1" BORDER="0"//TD   /TR   TRTDTABLE  ALIGN="CENTER" CELLPADDING="1" CELLSPACING="1" WIDTH="100%"TR  border="0"TD COLSPAN="6"span CLASS="tabHeaderSmall"   BuWinback Type Finder Tool Results /u/B /spanbr//TD   /TR   TRTD COLSPAN="6" br//TD/TRxsl:if test="//DATA/RETURNCODE[. = '-501']"   TR  border="0"TD COLSPAN="6" IMG SRC="javascript:void(0);" BORDER="0"/span CLASS="errorText" Winback Type Finder Error. Error Message:   xsl:value-of select="//DATA/REMARKS"/br/br//span/TD  /TR   /xsl:if   xsl:for-each select="//EISXML/DATA"   xsl:if test="RETURNCODE[. = '500'] | RETURNCODE[. = '-502'] " xsl:for-each select="WINBACKIDRESULTXML"  TR  border="0"TD COLSPAN="6" span CLASS="tabHeaderSmall"IMG SRC="javascript:void(0);" BORDER="0"/ Winback Reference System : xsl:value-of select="WINBACKIDREFERENCESYSTEM"//span/TD/TR   xsl:if test="WINBACKIDREFERENCESYSTEM[. = 'SOP'] "xsl:if test="WINBACKNODELIST[. != ''] "   TR CLASS="tableTopBar"TD WIDTH="20%" ALIGN="CENTER"  class="tabHeaderBg"span CLASS="tabHeaderSmall"TN/span/TD TD  WIDTH="20%" ALIGN="CENTER"  class="tabHeaderBg"span CLASS="tabHeaderSmall" Winback Type/span/TD
TD WIDTH="20%" ALIGN="CENTER"  class="tabHeaderBg"span CLASS="tabHeaderSmall"CLEC Code/span/TD  TD  WIDTH="20%" ALIGN="CENTER"  class="tabHeaderBg"span CLASS="tabHeaderSmall"SOID/span/TD  TD WIDTH="20%" ALIGN="CENTER"  class="tabHeaderBg" span CLASS="tabHeaderSmall"Completion Date/span/TD   /TR   xsl:for-each select="WINBACKNODELIST/WINBACKNODE" TR CLASS="timeBoxStyle"   TD WIDTH="20%" ALIGN="CENTER" CLASS="tabHeaderSmall"span CLASS="tabHeaderSmall"xsl:evalformatTN(this)/xsl:eval/span/TD  TD  WIDTH="20%" ALIGN="CENTER" CLASS="tabHeaderSmall"span CLASS="tabHeaderSmall"xsl:value-of select="WINBACKTYPE"//span/TDTD WIDTH="20%" ALIGN="CENTER" CLASS="tabHeaderSmall"span CLASS="tabHeaderSmall"&
gt;xsl:value-of 

Re: Urgent : Tomcat - IIS configuration

2001-12-28 Thread Kam Premkumar

Some time back in this mail list some body forwarded this url for iis
tomcat configuration. I attached the page with this mail. Hope it will help

Thanks
Prem



[EMAIL PROTECTED] wrote:

 Hi All,

 I have a problem when I try to deploy my application
 using Tomcat  IIS.

 My requirement is that I need to install different
 applications using the same IIS - Tomcat (single
 instance) setup.

 So, in order to facilitate this, instead of making the
 IIS default website's Home Directory to point to my
 application, I have created a virtual directory in IIS
 which points to my application files in
 D:/jakarta-tomcat-3.2.3/webapps/applicationname.

 This seems to pose a problem where in my .jsp files
 wherever  I refer root directory (eg. /Images etc.
 ),it refers to the path given in IIS default website's
 home directory (C:/inetpub/wwwroot)

 My application files are under
 webapps/applicationname/ and not directly under
 webapps/root/.

 I am not sure if this is a configuration problem with
 IIS or Tomcat! I am using microsoft windows 2000
 professional.

 Would appreciate any help in the regard.

 Thanks,
 Kalyan.


 
 Download Logos, Picture Messages  Ringtones for your mobile phone
 Visit http://mobile.yahoo.co.in

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com



Title: Tomcat IIS HowTo






Tomcat IIS HowTo

By Gal Shachor [EMAIL PROTECTED]

This document explains how to set up IIS to cooperate with Tomcat.
Normally IIS can not execute Servlets and Java Server Pages (JSPs),
configuring IIS to use the Tomcat redirector plugin will let IIS send servlet
and JSP requests to Tomcat (and this way, serve them to clients). 

Document Conventions and Assumptions

tomcat_home is the root directory of tomcat. Your Tomcat
installation should have the following subdirectories:


  tomcat_home\conf - Where you can place various configuration files
  tomcat_home\webapps - Containing example applications 
  tomcat_home\bin - Where you place web server plugins 


In all the examples in this document tomcat_home will be c:\jakarta-tomcat.

A worker is defined to be a tomcat process that accepts work from the IIS
server.

Supported Configuration

The IIS-Tomcat redirector was developed and tested on:


  WinNT4.0-i386 SP4/SP5/SP6a (it should be able to work on other
  versions of the NT service pack.) and Win98 
  IIS4.0 and PWS4.0 
  Tomcat3.0 - Tomcat3.2


The redirector uses ajp12 to send requests to the Tomcat
containers. There is also an option to use Tomcat in process, more about the
in-process mode can be found in the in process
howto.

Installation

As of Tomcat 3.2, a pre-built version of the ISAPI redirector server plugin,
isapi_redirect.dll, is available under the win32/i386 directory where you
downloaded the 
Tomcat binary distribution. For those using Netscape as your browser, try
downloading a zip version of the file, if available. There can be problems using
Netscape to download DLL files.

You can also build a copy locally from the source in Tomcat's source
distribution.

The Tomcat redirector requires three entities:


  isapi_redirect.dll - The IIS server plugin, either obtain a pre-built
  DLL or build it yourself (see the build section).
  workers.properties - A file that describes the host(s) and port(s) used
  by the workers (Tomcat processes). A sample workers.properties can
  be found under the conf directory. 
  uriworkermap.properties - A file that maps URL-Path patterns to
  workers. A sample uriworkermap.properties can be found under the
  conf directory as well.


The installation includes the following parts:


  Configuring the ISAPI redirector with a default /examples context and
  checking that you can serve servlets with IIS.
  Adding more contexts to the configuration.


Configuring the ISAPI Redirector

In this document I will assume that isapi_redirect.dll is placed in
c:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll and that you created the properties
files are in c:\jakarta-tomcat\conf.


  In the registry, create a new registry key named 
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0
  Add a string value with the name extension_uri and a value of
/jakarta/isapi_redirect.dll
  Add a string value with the name log_file and a value pointing
to where you want your log file to be (for example c:\jakarta-tomcat\logs\isapi.log).
  Add a string value with the name log_level and a value for
your log level (can be 

How to configure j2ee in windows 2000

2001-12-28 Thread Kam Premkumar



How to configure j2ee ( j2eesdk1.21. ) in windows 2000. I installed jdk1.4
and j2eesdk1.2.1 and set the enviroment variables JAVA_HOME, J2EE_HOME .
When I try to run the j2ee.bat.it gives the following error 
Fatal Error. This needs JDK1.2 or later 

Any body faced this problem earlier . please so some light 

Thanks
Prem










Re: How to configure j2ee in windows 2000

2001-12-28 Thread Kam Premkumar

I have jdk1.4 its later than jdk1.2   I think, I have to install jdk1.2
thats the only version will work with j2eesdk1.2.1

Thanks
Prem

[EMAIL PROTECTED] wrote:

 J2EE is an extantion to J2SE which is your JVM. J2EE will not work
 without JDK. So install JDK 1.2 or later and it should work

 Alex

 -Original Message-
 From: A mailing list about Java Server Pages specification and
 reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kam Premkumar
 Sent: Friday, December 28, 2001 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure j2ee in windows 2000

 How to configure j2ee ( j2eesdk1.21. ) in windows 2000.  I installed
 jdk1.4 and j2eesdk1.2.1 and set the enviroment variables JAVA_HOME,
 J2EE_HOME . When I try to run the j2ee.bat.it gives the
 following error
 Fatal Error. This needs JDK1.2 or later

 Any body faced this problem earlier . please so some light

 Thanks
 Prem







===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



startup servlet config in tomcat

2001-12-27 Thread Kam Premkumar

How to configure startup servlets in tomcat.

Thanks
Prem

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



calling a ejb

2001-12-27 Thread Kam Premkumar

Any body knows how to call an ejb from servlets. EJB is running in weblogic

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: calling a ejb

2001-12-27 Thread Kam Premkumar

please explain ?

[EMAIL PROTECTED] wrote:

 try to use RTFB rule

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kam Premkumar
 Sent: Monday, December 10, 2001 2:32 PM
 To: [EMAIL PROTECTED]
 Subject: calling a ejb


 Any body knows how to call an ejb from servlets. EJB is running in weblogic

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



clustering in tomcat

2001-12-27 Thread Kam Premkumar

Does tomcat support  clustering ?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: calling a ejb

2001-12-27 Thread Kam Premkumar

I agree you guys. Even a small kid in java knows how to call an ejb from
an servlet. May be My question is wrong ?. I am running the servlets in
Tomcat and running the ejbs in weblogic. I dont know how to establish
the connection from tomcat servlet engine to Weblogic App server. This
is what I intent to mean.

PS : For Tim and alex. This mail listing is a casual place for knowledge
sharing. Here No body expects respects !!. Only solutions and knowledge
transfer. Anyway I dont want to hurt you guys !!, becuz I am hurt.

Thanks




[EMAIL PROTECTED] wrote:

 You right and the separation line is how much of a self respect one has.
 Yes there are planty of people including myself who could right the code
 that will call ejb from the setvlet.. or can we...???

 Call what... what method.?  And what does it mean to call ejb.? You
 see how many questions can be raised from one. And jsp tutorial has a very
 good working sample of servlets and jsp's and ejb tutorial has a very good
 sample of EJB's and web and non web clients. And they are FREEE. So
 if the guy would ask: where can I find good ejb and servlets samples
 then the answer is http://java.sun.com

 Otherwise RTFB rule still aplies

 Alex

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Chen, Gin
 Sent: Thursday, December 27, 2001 3:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: calling a ejb


 I completely agree with you.. but.. where do we make that separation
 of what is a stupid question?
 I know, from getting this mailing list, I've seen ALOT of questions
 that should be easy to figure out.
 But then again.. obviously someone didnt figure it out. And from the
 replies of the people that answer.. the question almost sounds legit.
 I for one have asked questions that were not answered. And I have
 solved each of them. After I solved them, however, I start to wonder if
 maybe people didnt answer because the solution was so simple.. or because
 they themselves dont know. Usually I pick the former and, therefore, dont
 post my solutions. A few times, however, people have written directly to me
 asking me for a solution should I find or receive one.
 -Tim

 -Original Message-
 From: Oleg Zhurakouksy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 27, 2001 3:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: calling a ejb


 May be you right, but on the serious note
 We are here to help each other. But we can't help anybody unless they want
 to help themselves.
 If this guy would spend at least 5 min to do some reaserch on the internet
  I am not even talking about book store) he would stop asking all these
 stupid questions. And by doing it he would show everybody a lot of respect.
 Otherwise? I can't help him.

 Oh by the way Kam..
 if you curious what RTFB stands for:

 R - read
 T - the
 F - fu--ing
 B - book

 Have fun

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Wills
 Sent: Thursday, December 27, 2001 3:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: calling a ejb


 That isn't very nice. Maybe he hadn't had his shot of caffinee yet, or is
 still stuffed with turkey/goose/ham from Christmas. ;-)

 On Thu, 27 December 2001, Oleg Zhurakouksy wrote:

try to use RTFB rule




 -
 Mike Wills
 AS400 Programmer
 programmerATkoldarkDOTnet
 __
 Launch your own web site Today!
 Create a Web site for your family,
 friends, photos, or a special event.
 Visit: http://www.namezero.com/sitebuilder

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL 

thread sleep between jsp includes

2001-12-14 Thread Kam Premkumar

please look at the code . I am trying to include one .jsp and  making
the current thread to sleep for 5 sec then icluding one more jsp. But
both included jsps coming to screen same time  i included the code for
your refernce guys.

Thanks
Prem

import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class HelloWorldExample extends HttpServlet {

   public void doGet(HttpServletRequest request, HttpServletResponse
response)throws IOException, ServletException
{
 response.setContentType(text/html);
 PrintWriter out = new PrintWriter(response.getWriter(),true);

String inxml=HelloWOrld;
request.setAttribute(myData, inxml );

getServletConfig().getServletContext().getRequestDispatcher(/jsp/test.jsp).include(request,
response);

try
{
System.out.println(Entering into the loop 1);
Thread.currentThread().sleep(5000);
}
catch(Exception ex1)
{
System.out.println(ex1.getMessage());
}

String inxml1=Helo WOrld1;
request.setAttribute(myData1, inxml1 );

getServletConfig().getServletContext().getRequestDispatcher(/jsp/test1.jsp).include(request,
response);

}
}


test.jsp

%
String s =(String)request.getAttribute(myData);
out.println(s);
%


test1.jsp

%
String s1 = (String)request.getAttribute(myData1);
out.println(s1);
%

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



hoe to add jsp tags in servlet

2001-12-05 Thread Kam Premkumar

Iwant to add the jsp forward tags in servlet is it possible. PLease send
the piece of code

Thanks
Prem

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Javamail Schedule

2001-11-27 Thread Kam Premkumar

In swing API we have class called Timer. By using Timer.class you can do
scheduling.. Check out java tutorial in javasoft.com

Thx
Prem

[EMAIL PROTECTED] wrote:

 how to write an javamail with auto send email based on the schedule ?
 The key question is how to set a schedule in Java ?
 Anyone can give me some hints ?

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TomCat Classpath

2001-11-21 Thread Kam Premkumar

Dude,

There is good tutorial in javasoft.com for jsp.

Some thing like this ...
How to call a bean in jsp...
Mapping Form Fields with bean properties
Forwarding to an error page...

http://javasoft.com/jsp/. Try that tutorial once. All your doubts will
get cleared

Thanks
prem


[EMAIL PROTECTED] wrote:

 Tim:



 Thanks for tolerating me with these simple questions.

 I tried your method getProperty). But still I am having problems.



 This is what I want to do. I have a simple java bean. I have a String
 variable x. I want to print the value of that x in the browser using JSP.



 This is what I tried:

 1. I wrote a getter public String getX() in the bean and tried to access
 the method. The error was: No such method found.



 2. I tried the getProperty in the JSP page. Error: no such property in Bean.



 Where am I wrong.



 I am also going thru the link you sent me.



 Thanks



 /KK

 - Original Message -

 From: Chen, Gin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 Sent: Wednesday, November 21, 2001 12:17 PM

 Subject: Re: TomCat Classpath


   I have never had to do what you guys are doing with the import
 before. Even
   when my class doesnt have a package. I think something might be
 missing from
   your classpath. Regardless, in answer to your second question.
  
   if ur property name was the same as the bean property name then u
 could just
   use:
   jsp:setProperty name=mybean property=* /
   so if u wanted to set mybean.username to a request parameter username.
  
   But if ur bean variable was X and ur request parameter was username,
   then you have to set mybean.x as:
   jsp:setProperty name=mybean property=x value=%=
   request.getParameter(\username\)% /
  
   Here's a helpful reference for u since ur obviously just starting to
 learn
   jsps:
   http://java.sun.com/products/jsp/tags/12/syntaxref12.html
   Also look at the java.sun.com tutorials for jsp/servlets.
  
   -Tim
  
   -Original Message-
   From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, November 21, 2001 1:12 PM
   To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Subject: Re: TomCat Classpath
  
  
   Ricardo:
  
   Thanks for the explanation. It worked. Actually, I do not have any
 package.
   I followed what you said and included the import. I am able to access the
   bean!
  
   But here is another:
  
   I have a method in the bean that returns a String. I am tryi1ng to print
   that value in the browser using JSP.
  
   This is what I have in th JSP:
  
   %@ page language=Java %
   %@ page import=xyz%
   jsp:useBean id=abc scope=page class=xyz /
  
   %! String c=null; %
  
   %=request.getParameter(username)%
   %=request.getParameter(password)%
   And the name:
   %=abc.returnX() %
  
   What I get in theh browser is just a 1. What am I missing here?
  
   Thanks
   /KK
   - Original Message -
   From: Ricardo Rocha [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Sent: Wednesday, November 21, 2001 11:19 AM
   Subject: Re: TomCat Classpath
  
  
 Next problem: I have a small class which I need to instantiate in the
JSP.  I am using useBean, obviously. Looks like the class is being
searched in
 'org.apache.jsp.xyz '. But my .class file is in
 myapp/webinf/classes 
folder.
 I do not have any package statement in the bean.

 Question:

 Should I have to set anything in the class path?

 Thanks
   
if you don't put your class in a package, you have to import the class
using the page directive...
if you do put it a package, all you need is to put the package in the
/myapp/web-inf/classes directory and reference it in the page
   
like:
   
with:
/myapp/web-inf/classes/mypackage/myclass.class
in the jsp page:
jsp:useBean id=something class=mypackage.myclass session=scope/
   
otherwise:
%@ page import=myclass.class%
and you put the class in /myapp/web-inf/classes/myclass.class
jsp:useBean id=something class=myclass session=scope/
   
Hope this helps...
   
   
  
 ===
To unsubscribe: mailto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with body: set JSP-INTEREST
   DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:
   
 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com
   
  
  
 ===
   To unsubscribe: mailto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED]
 

Re: The Current URLconfiguring apache with tomcat

2001-11-20 Thread Kam Premkumar

How to configure apache with tomcat 4.0 in windows 2000

Thnaks
Prem

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Configuring Tomcat with Apache

2001-11-20 Thread Kam Premkumar

How to Configure Tomcat 4.0 with Apache  Web Server

Thanks
Prem

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TomCat Classpath

2001-11-20 Thread Kam Premkumar

Create your own App directory structure under webapps

For example:

webapps/myapp
webapps/myapp/WEB-INF
webapps/myapp/WEB-INF/classes
webapps/myapp/WEB-INF/lib

put your web.xml in WEB-INF
put your class file in classes dir
put your third party jars in lib ( eg jdbc driver)
put your servlets,jsp in myapp

and a entry in server.xml like this
Context path=/myapp docBase=myapp debug=0   reloadable=true

Thanks
Prem











[EMAIL PROTECTED] wrote:

 Hello,



 I am using Apache TomCat 4.01. I am doing some test code.



 I want to know:



 1. Where I need to put my class files for my web applicaiotn. I see many
 class folders in the install directory.

 2. Also, please specify the changes I need to make in the class path.



 I appraciate your help, in advance.





 /KK


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Tomcat- Apache Configuration : Finally I did it !!!!

2001-11-20 Thread Kam Premkumar

Guys

Finally I configured Apache with Tomcat 4.0 in windows 2000. Hopefully
this document will be useful to everybody

Thanks
Prem

Apache Web Server Installation in windows 2000
===

01. Download Apahce WebServer from the following Link
http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.22-win32-x86.exe

02. Install Apache WebServer as per installation kit instrcutions
Network Domain: xxx.com
Server Name: your computer name
Admin Email Address: your email address
check - click run as a service for all users options
03. Choose the Apache Home diretory and say next
04. Click Finish to complete the Apache server installation

05. Try this url http://127.0.0.1:80
06. If you get Apache Home page in your browser. you installaed Apahe
web server successfully.


Tomcat 4.0  Installation in windows 2000
==

07. Download Tomcat 4.0 from the following link
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakarta-tomcat-4.0.1.exe

08. Install Tomcat as per intallation kit instructions
Note : ( Dont select thie option Tomcat as NT service/2000 only )
09. Go to tomcat_home/bin/
10. run this command catalina run
11. Try this url http://127.0.0.1:8080
12. If you get Tomcat Home page in your browser. you installaed Tomcat
4.0 successfully.

Making Tomcat 4.0 as a servlet/jsp  container for apache webserver


13. Download web app modules from the following link
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32/webapp-module-1.0-tc40-windows.zip

14. Unzip this file under apache_home/modules/
15. Copy the mod_webapp.so and libapr.dll  into apache_home/modules/
16. Add the following lines in apache_home/conf/httpd.conf of apache

  LoadModule webapp_module modules/mod_webapp.so
  AddModule mod_webapp.c
  WebAppConnection conn  warp  127.0.0.1:8008
  WebAppDeploy examples  conn  /examples

17. Save the http.conf file and restart the apache webserver and tomcat
servlet container
18. Open tomcat_home/conf/server.xml and add
defaulthost=yourservername in engine tag under service tag
19. Save the server.xml file and restart tomcat ans apache webserver
20. Try this url http://127.0.0.1/examples/jsp
21. If you get jsp examples page in your browser. you installed tomcat
as a servelt container for apache webserver successfully.


Author: Kam Premkumar
Mail: [EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TomCat Classpath

2001-11-20 Thread Kam Premkumar

you can create jsp directory and keep the jsps. But whats the problem
you are facing now. !! Are u getting any error while accessing jsps. Try
to start your tomcat like this

go to tomcat_home/bin/
and catalina run

Hope fully you set the CATALINA_HOME=c:\tomcat40 something like in your
env variables.

Thanks
Prem


[EMAIL PROTECTED] wrote:

 Prem:

 I tried the directory structure you mentioned. I get the index.html page.
 The next page is an JSP, which I am not getting.

 I have made changes in the server.xml also. Should I create a JSP folder in
 webapps/myapp???

 Thanks.

 /KK
 - Original Message -
 From: Kam Premkumar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2001 4:37 PM
 Subject: Re: TomCat Classpath



Create your own App directory structure under webapps

For example:

webapps/myapp
webapps/myapp/WEB-INF
webapps/myapp/WEB-INF/classes
webapps/myapp/WEB-INF/lib

put your web.xml in WEB-INF
put your class file in classes dir
put your third party jars in lib ( eg jdbc driver)
put your servlets,jsp in myapp

and a entry in server.xml like this
Context path=/myapp docBase=myapp debug=0   reloadable=true

Thanks
Prem











[EMAIL PROTECTED] wrote:


Hello,



I am using Apache TomCat 4.01. I am doing some test code.



I want to know:



1. Where I need to put my class files for my web applicaiotn. I see many
class folders in the install directory.

2. Also, please specify the changes I need to make in the class path.



I appraciate your help, in advance.





/KK



 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff

 JSP-INTEREST.

For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

 DIGEST.

Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TomCat Classpath

2001-11-20 Thread Kam Premkumar

Idont see any problem here. Check your METHOD=POST

[EMAIL PROTECTED] wrote:

 Prem:

 The problem is this:

 I have index.htnl. this page is subkmitted to a JSP page. The problem is
 TOMCAT says that this JSP page is not found. So, I am kind of looking at the
 JSP folder etc.

 Any suggestions?

 Thanks once again.

 /KK


 - Original Message -
 From: Kam Premkumar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2001 6:00 PM
 Subject: Re: TomCat Classpath



you can create jsp directory and keep the jsps. But whats the problem
you are facing now. !! Are u getting any error while accessing jsps. Try
to start your tomcat like this

go to tomcat_home/bin/
and catalina run

Hope fully you set the CATALINA_HOME=c:\tomcat40 something like in your
env variables.

Thanks
Prem


[EMAIL PROTECTED] wrote:


Prem:

I tried the directory structure you mentioned. I get the index.html

 page.

The next page is an JSP, which I am not getting.

I have made changes in the server.xml also. Should I create a JSP folder

 in

webapps/myapp???

Thanks.

/KK
- Original Message -
From: Kam Premkumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 4:37 PM
Subject: Re: TomCat Classpath




Create your own App directory structure under webapps

For example:

webapps/myapp
webapps/myapp/WEB-INF
webapps/myapp/WEB-INF/classes
webapps/myapp/WEB-INF/lib

put your web.xml in WEB-INF
put your class file in classes dir
put your third party jars in lib ( eg jdbc driver)
put your servlets,jsp in myapp

and a entry in server.xml like this
Context path=/myapp docBase=myapp debug=0

 reloadable=true

Thanks
Prem











[EMAIL PROTECTED] wrote:



Hello,



I am using Apache TomCat 4.01. I am doing some test code.



I want to know:



1. Where I need to put my class files for my web applicaiotn. I see

 many

class folders in the install directory.

2. Also, please specify the changes I need to make in the class path.



I appraciate your help, in advance.





/KK



 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff


JSP-INTEREST.


For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST


DIGEST.


Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com




 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff

 JSP-INTEREST.

For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

 DIGEST.

Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff

 JSP-INTEREST.

For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

 DIGEST.

Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TomCat Classpath

2001-11-20 Thread Kam Premkumar

Hi Dude

you missed myapp directory in your path ?

http://localhost:8080/jsp/Mypage.jsp

try like this
http://localhost:8080/myapp/jsp/Mypage.jsp




[EMAIL PROTECTED] wrote:

 - Original Message -
 From: Kam Premkumar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2001 6:18 PM
 Subject: Re: TomCat Classpath



send your index.html and jsp please. if you set your form method=post. I
think it will work

Thanks
Prem

[EMAIL PROTECTED] wrote:


Idont see any problem here. Check your METHOD=POST

[EMAIL PROTECTED] wrote:


Prem:

The problem is this:

I have index.htnl. this page is subkmitted to a JSP page. The problem

 is

TOMCAT says that this JSP page is not found. So, I am kind of looking
at the
JSP folder etc.

Any suggestions?

Thanks once again.

/KK


- Original Message -
From: Kam Premkumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 6:00 PM
Subject: Re: TomCat Classpath




you can create jsp directory and keep the jsps. But whats the problem
you are facing now. !! Are u getting any error while accessing jsps.

 Try

to start your tomcat like this

go to tomcat_home/bin/
and catalina run

Hope fully you set the CATALINA_HOME=c:\tomcat40 something like in

 your

env variables.

Thanks
Prem


[EMAIL PROTECTED] wrote:



Prem:

I tried the directory structure you mentioned. I get the index.html


page.


The next page is an JSP, which I am not getting.

I have made changes in the server.xml also. Should I create a JSP
folder


in


webapps/myapp???

Thanks.

/KK
- Original Message -
From: Kam Premkumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 4:37 PM
Subject: Re: TomCat Classpath





Create your own App directory structure under webapps

For example:

webapps/myapp
webapps/myapp/WEB-INF
webapps/myapp/WEB-INF/classes
webapps/myapp/WEB-INF/lib

put your web.xml in WEB-INF
put your class file in classes dir
put your third party jars in lib ( eg jdbc driver)
put your servlets,jsp in myapp

and a entry in server.xml like this
Context path=/myapp docBase=myapp debug=0


reloadable=true

Thanks
Prem











[EMAIL PROTECTED] wrote:




Hello,



I am using Apache TomCat 4.01. I am doing some test code.



I want to know:



1. Where I need to put my class files for my web applicaiotn. I see


many


class folders in the install directory.

2. Also, please specify the changes I need to make in the class

 path.



I appraciate your help, in advance.





/KK




 ===


To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff



JSP-INTEREST.



For digest: mailto [EMAIL PROTECTED] with body: set

 JSP-INTEREST


DIGEST.



Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com




 ===


To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff


JSP-INTEREST.


For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST


DIGEST.


Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



 ===


To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff


JSP-INTEREST.


For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST


DIGEST.


Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com




 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



 ===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com

Re: TomCat Classpath

2001-11-20 Thread Kam Premkumar

1. Make sure your have diretory named myapp under webapps
2. Make sure you have the following  entry in server.xml
   Context path=/myapp docBase=myapp debug=0 reloadable=true
3. copy the index.html and your jsp under myapp

4. try http://localhost:8080/myapp/index.html and your jsp link shoulb
be like this http://localhost:8080/myapp/xxx.jsp

Thanks
Prem




[EMAIL PROTECTED] wrote:

 Prem:



 Here is what you asked for.



 Hope you can shed some light on it.



 Thanks, once again.



 /KK



 The HTML:

 

 FORM method=POST action=http://localhost:8080/Mypage.jsp;

 P  INPUT id=text1 style=LEFT: 78px;
 TOP: 55px name=username/P

 P /P

 PINPUT id=password1 type=password name=password/P

 PINPUT id=submit1 type=submit value=Submit name=submit1 INPUT
 id=reset1 type=reset value=Reset name=reset1/P

 /FORM

 

 The JSP:

 HTML
 HEAD

 TITLEJSP 1/TITLE
 /HEAD
 BODY
 %@ page language=Java %
 jsp:usebean id=abc scope=page class=xyz /
 jsp setProperty name=abc property=* /
 %! int c=0; %

 %=request.getParameter(username)%
 %=request.getParameter(password)%

 %

 c = abc.returnX();
 out.write(c);
 %
 P /P

 /BODY
 /HTML
 

 - Original Message -
 From: Kam Premkumar [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 Sent: Tuesday, November 20, 2001 6:18 PM

 Subject: Re: TomCat Classpath


   send your index.html and jsp please. if you set your form method=post. I
   think it will work
  
   Thanks
   Prem
  
   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
Idont see any problem here. Check your METHOD=POST
   
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
   
Prem:
   
The problem is this:
   
I have index.htnl. this page is subkmitted to a JSP page. The
 problem is
TOMCAT says that this JSP page is not found. So, I am kind of looking
at the
JSP folder etc.
   
Any suggestions?
   
Thanks once again.
   
/KK
   
   
- Original Message -
From: Kam Premkumar [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 6:00 PM
Subject: Re: TomCat Classpath
   
   
   
you can create jsp directory and keep the jsps. But whats the problem
you are facing now. !! Are u getting any error while accessing
 jsps. Try
to start your tomcat like this
   
go to tomcat_home/bin/
and catalina run
   
Hope fully you set the CATALINA_HOME=c:\tomcat40 something like
 in your
env variables.
   
Thanks
Prem
   
   
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
   
   
Prem:
   
I tried the directory structure you mentioned. I get the index.html
   
page.
   
The next page is an JSP, which I am not getting.
   
I have made changes in the server.xml also. Should I create a JSP
folder
   
in
   
webapps/myapp???
   
Thanks.
   
/KK
- Original Message -
From: Kam Premkumar [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 4:37 PM
Subject: Re: TomCat Classpath
   
   
   
   
Create your own App directory structure under webapps
   
For example:
   
webapps/myapp
webapps/myapp/WEB-INF
webapps/myapp/WEB-INF/classes
webapps/myapp/WEB-INF/lib
   
put your web.xml in WEB-INF
put your class file in classes dir
put your third party jars in lib ( eg jdbc driver)
put your servlets,jsp in myapp
   
and a entry in server.xml like this
Context path=/myapp docBase=myapp debug=0
   
reloadable=true
   
Thanks
Prem
   
   
   
   
   
   
   
   
   
   
   
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
   
   
   
Hello,
   
   
   
I am using Apache TomCat 4.01. I am doing some test code.
   
   
   
I want to know:
   
   
   
1. Where I need to put my class files for my web applicaiotn.
 I see
   
many
   
class folders in the install directory.
   
2. Also, please specify the changes I need to make in the
 class path.
   
   
   
I appraciate your help, in advance.
   
   
   
   
   
/KK
   
   
   
   
 ===
   
   
To unsubscribe: mailto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with body: signoff
   
   
JSP-INTEREST.
   
   
For digest: mailto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with body: set JSP-INTEREST
   
   
DIGEST.
   
   
Some relevant FAQs on JSP/Servlets can be found at:
   
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http