HELP REQUIRED FOR TOMCAT 4.0.1

2002-01-21 Thread Amitkumar J Malhotra



I have a few difficulties/ doubts in installing application, passing params from
the web.xml file to the servlets...is any one ready to volunteer so that
i ask him/her the questions directly without disturbing the mailing list any
furtherany replies will be appreciated...
( i know that there is already a mailing list for tomcat -users  so please do
not give me this as an answer)

rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Things that use Struts

2002-01-18 Thread Amitkumar J Malhotra



Hello Mark,
apparently HP Bluestone  is giving it's application server free , have u used it
or heard about some reviews on the samei just read your view about
jrun , so was tempted to ask you about the samehave u tried JBoss..

rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Things that use Struts (Ted)

2002-01-18 Thread Amitkumar J Malhotra



Hello Ted,
can u tell us something more aboutLucene please..and any date finalized for
release of your book on struts ?

rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




alernatives to tomcat-4.0.1

2002-01-16 Thread Amitkumar J Malhotra



hello everybody,
i require an alternative to tomcat 4.0.1, i have upgraded from tomcat 3.2.1 and
am looking for a freeware which will reduce my configuration setting overheads
to minimum , and also has good document to support it..your opinion will be
highly appreciated..i had also applied on-line for HP-Bluestone application
server (they have yet to send me the cd)
...has anyone tried it as yet and if yes what were your experiences about the
same.

rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts 1.1 book available for order

2001-12-03 Thread Amitkumar J Malhotra



this is really expensive, converting this to Indian rupees is approximately Rs
4000, which is really high, could there be an alternative where by there is a
downloadable soft copy of the book available at a lesser amount , so that we can
atleast save on the printing and the shipping costs.please think about this,

rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts 1.1 book available for order

2001-11-30 Thread Amitkumar J Malhotra



I fully agree with Nathan , since those $70 will be further converted to Indian
Rupees,
i would like to read a sample chapter on-line before deciding about the book


rgds
amit



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dbtag usage

2001-11-26 Thread Amitkumar J Malhotra



thanx tom, i did not know about
http://marc.theaimsgroup.com/?l=taglibs-user&m=100238947032154&w=2,hope
thingswork out this time and start working
thanx once again



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dbtag usage

2001-11-26 Thread Amitkumar J Malhotra



i have already tried what you have suggested a couple of time but there seems to
be no response from there or i think i am not  subscribed , anyway thanx a lot
for the help i will try out the same



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




dbtag usage

2001-11-26 Thread Amitkumar J Malhotra



hello friends,
 i have asked this question before also and am asking the same again..i know
that this is not the right forum but i am desperate. i am using dbtag library
from jakarta-tablibs.am am desperately trying to configure the same , and
this is my second stint at this..i have failed successfully at  this a month
ago..i am using the documentation that is given with the tag lib...
surprisingly i have also used a tag library from coldjava for file uploads and
that took me just 10 minutes to configure with help available on-line from them
all the time( they are really excellent at that)
now i want to get this thing stated and have tried out all the combos..this is
the jsp code and also the error that is appearing

<%@ taglib uri="/web-inf/dbtags.tld" prefix="sql" %> ---i have tried eveything
with this including the one given in the docs
http://jakarta.apache.org/taglibs/dbtags
and this is the error code

Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
D:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\dbtags\tagusage.jsp(17,3)
Unable to load class org.apache.taglibs

could someone help me out



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help,please

2001-11-03 Thread Amitkumar J Malhotra



i know friends that this is totally offtrack and this is not the write place to
ask this questions but i am really stuck up and have no one to ask to
please could u help me out

i am working on  a file upload  example , and am copying the code as it is from
a book on servlets by dustin callaway
here is the code and the html file to pass on the file to the page
here is the html file


File Upload Servlet
   

  

  
  Press the  browse button to select the
file to upload and then click  on the Upload Button
  
  
  
   

  
  
  
  
  
  

  
  


  

  

   

   


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

public class UploadServlet extends HttpServlet
{
 static final int MAX_SIZE =102400;
 String rootPath,successMessage;

 public void init(ServletConfig config) throws ServletException
 {
  super.init(config);
  rootPath = config.getInitParameter("RootPath");
  if (rootPath == null)
  {
   rootPath="/";
  }
  successMessage = config.getInitParameter("SuccessMessage");
  if (successMessage == null)
  {
   successMessage = "File Upload Complete ";

  }
 } // end of init() method


 public void doPost(HttpServletRequest request,HttpServletResponse response)

 {
  ServletOutputStream out = null;
  DataInputStream in = null;
  FileOutputStream fileOut = null;

  try
  {
   response.setContentType("text/plain");
   out=response.getOutputStream();
  } catch(IOException e)
  {
   System.out.println("Error getting the output stream");
   System.out.println("Error description:"+e);
  }
  try
  {
   String contentType = request.getContentType();
   if (contentType != null &&
contentType.indexOf("multipart/form-data") != -1)
   {
in = new DataInputStream(request.getInputStream());

int formDataLength = request.getContentLength();
if (formDataLength > MAX_SIZE)
{
 out.println("Sorry the file is too large to uploaad ");
out.flush();
 return;
}  // end of if

byte dataBytes[] = new byte[formDataLength];
int bytesRead=0;
int totalBytesRead=0;
while (totalBytesRead < formDataLength)
{
 bytesRead =
in.read(dataBytes,totalBytesRead,formDataLength);
 totalBytesRead += bytesRead;
}  // end of while

String file = new String(dataBytes);

dataBytes = null;
int lastIndex = contentType.lastIndexOf("=");
String boundary
=contentType.substring(lastIndex+1,contentType.length());

String directory="";
if(file.indexOf("name =\"Directory\"") > 0);
{
 directory =
file.substring(file.indexOf("name=\"Directory\""));

directory=directory.substring(directory.indexOf("\n")+1);
 directory =
directory.substring(0,directory.indexOf("\n")-1);
 if (directory.indexOf("..")>0)
 {
  out.println("Security Error: You cannot do this
");
  return;
 }
}// end of if

String successPage="";
if(file.indexOf("name=\"SuccessPage\"")>0)
{

successPage=file.substring(file.indexOf("name=\"SuccessPage\""));

successPage=successPage.substring(successPage.indexOf("\n")+1);

successPage=successPage.substring(successPage.indexOf("\n")+1);
 successPage =
successPage.substring(0,successPage.indexOf("\n")-1);
}
String overWrite;
if(file.indexOf("name=\"OverWrite\"")>0)
{
 overWrite =
file.substring(file.indexOf("name=\"OverWrite\""));

overWrite = overWrite.substring(overWrite.indexOf("\n")+1);
 overWrite =
overWrite.substring(overWrite.indexOf("\n")+1);

 overWrite =
overWrite.substring(0,overWrite.indexOf("\n")-1);
}else // end of if
{
 overWrite="false";
}// end of else
String overWritePage="";
if (file.indexOf("name=\"OverwritePage\"")>0)
{

overWritePage=file.substring(file.indexOf("name=\"OverWrit

DBTAGLIBS problems

2001-10-24 Thread Amitkumar J Malhotra



I am writing this problem after posting it a number of times in the
taglib-users forum.I have recieved no response from any of the members and I now
ask you all to help me out.

I am using  tomcat 3.2.1, I have already followed the instructions given in the
DBTaglib tutorial but it has given me errors.
as show below

apache.jasper.compiler.CompileException:
D:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\ROOT\taglibrary.jsp(0,0)
Unable to open taglibrary http://jakarta.apache.org/taglibs/dbtags : Could not
locate TLD META-INF/taglib.tld

could you suggest a way out.

Rgds
Amit Malhorta,
Systems Engineer,
Reliance Industries Limited,
India.





Re: 24/7 availability

2001-10-24 Thread Amitkumar J Malhotra



Could you tell me something more about the 24/7 environment , any URL's also
will also be of great help


Rgds
Amit





Re: [ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-24 Thread Amitkumar J Malhotra



For those who are not able to attend this ..could you keep some material on-line
so that every one is benefited by this


Rgds
Amit Malhotra





Beginner material on struts

2001-10-04 Thread Amitkumar J Malhotra



Hello Everyone,
I am newbie in struts, could some one tell me as to how to go about it, I mean
the material that is available online , Do I need to know UML first ?I have a
fair knowledge of servlets and jsp ,I have already downloaded the struts files
from ASF site.
any tutorials and url's would be welcomed

thanx
Amit





RE: Struts DB example

2001-10-04 Thread Amitkumar J Malhotra



Micheal
please could you tell me something more about castor JDO

Thanx
Amit