Re: File writing using servlet

2004-06-02 Thread Teja Jo
Hi,
 
Thanks for ur reply.I want to do following - 
1/ write a bmp file to the filesystem on the Tomcat host
Could u tell what is to be done for it?
 
Regards,
Teja jo.


QM [EMAIL PROTECTED] wrote:
On Mon, May 31, 2004 at 07:32:35AM -0700, Teja Jo wrote:
: Please tell me how to write a .bmp file on the tomcat server of a 
: servlet using the same servlet.

Please explain -- are you trying to:
1/ send a bmp file to the remote browser
2/ write a bmp file to the filesystem on the Tomcat host
3/ other?

-QM

-- 

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

File writing using servlet

2004-05-31 Thread Teja Jo
Hello everyone,
Please tell me how to write a .bmp file on the tomcat server of a 
servlet using the same servlet.
 
Regards,
Teja jo.




-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

Getting image files from applet

2004-03-09 Thread Teja Jo
Hi,
 
Could anyone suggest how to get image files in same directory on server into the applet
 
Regards,
Teja Jo.


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

File Access Denied

2004-01-30 Thread Teja Jo
Hello everyone,
 
I have a file in 1 of the directories - from where 1 of the files in the same 
directory is reading it - the directory being inside webapp/testApp directory.I get 
the exception - file access denied permission to read .Could u tell me a way to get 
rid of this exception to read this file ?
 
Regards,
Teja.


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Applet class files' location

2004-01-30 Thread Teja Jo
Hello everyone ,
 
There r some jsp files in the root directory of the web application.They display some 
applets.If the applet class files are placed in a package structure inside 
WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet 
files have to be compulsorily kept in the directory which has the jsp files,but I want 
the applet class files inside WEB-INF/classes.Could u tell me a way to do it?
 
Regards,
Teja.
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

EOFException in Applet-Servlet communication

2004-01-09 Thread Teja Jo
Hello everyone,
 
I am writing 2 serializable objects to servlet - after the url connection is setup 
.The same code is working at number of other places.But at one place it is throwing a 
EOFException.Could u tell me a way to remove this exception?
 
Regards,
Teja.
 
 


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes

Tomcat suddenly not strating up

2003-12-31 Thread Teja Jo
Hello,
 
My tomcat 4.1.29 was running fine till noon.Then suddenly it started throwing 
following error- The system cannot find the file -Djava.endorsed.dirs=. and is not 
running at present.
 
Please help.
 
Teja.


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Tomcat 4.1.29 not starting

2003-12-31 Thread Teja Jo
Hello ,
 
My tomcat suddenly ends with the following exception :
Dec 31, 2003 1:39:05 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
Dec 31, 2003 1:39:06 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
a:252)
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:50
5)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
 
I re-installed it - but found the same error.
 
Please help,
Tejashri.


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Browser control thru servlet

2003-12-30 Thread Teja Jo
Hello everyone,
Can anyone tell me how the back and forward button of browser be controlled - as 
disabled for example or specifying the url it should go to - thru the requests made to 
servlet?
Thanks and regards,
Tejashri.


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Servlets not executed

2003-12-29 Thread Teja Jo
Hello everyone,
 
My servlets are not getting executed - though I have deployed them in the webapps 
directory.It is giving the following exception :
java.net.ConnectException Connection refused : connect.
Please help.
 
Regards,
Teja.


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

RE: Reading from an xml file from servlet supporting class

2003-12-18 Thread Teja Jo
Hello Shapira,
 
Thanks for ur reply 
 
Regards,
Tejashri.

Shapira, Yoav [EMAIL PROTECTED] wrote:

Howdy,
You should read up on ServletContext#getResource and
Classloader#getResource. I mentioned this in another thread where you
asked a similar question.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Teja Jo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 11:18 PM
To: [EMAIL PROTECTED]
Subject: Reading from an xml file from servlet supporting class

Hi,

A class used by my servlet in the web application is using a xml file
.These 3 files are in the same folder inside
webapps//WEB-INF/classes/ in tomcat - yet the servlet-
supporting class cannot read the xml file .Where to place the xml file
so
that it can be read?

Regards,
Teja.



-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now



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]


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

RE: Further details - RequestDispatcher in servlet is not working

2003-12-18 Thread Teja Jo
Hello,
 
It is the doGet method of servlet - what will it return after the forward call- its 
return type is void.Here after the forward call when I had given a log message - that 
message got logged (the RequestDispatcher object got is not null was proved since I 
printed that object address) - but the result of forwarded  url page did not reach the 
browser.The browser remained at the first page - which had begun the request procedure 
to the servlet.
 
Regards and thanks,
Teja.
 


Shapira, Yoav [EMAIL PROTECTED] wrote:

Howdy,


 //uptil this point it gets executed properly
 strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp;
 RequestDispatcher objReqDispatcher =
request.getRequestDispatcher(strAddress);
 objReqDispatcher.forward(request,response);

 Here request dispatcher is not working - it doesn't forward the
request.

What happens, then?

Don't forget to return from your method above after the .forward call.

Yoav Shapira




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]


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Please help - FileNotFoundException

2003-12-17 Thread Teja Jo
Hello everyone,
 
I am parsing a xml file using FileInputStream a file from a servlet.The file is in the 
same directory as the servlet.Yet it is giving me a FileNotFoundException.Can anyone 
tell me some solution for this.
 
Regards,
Tejashri.


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello everyone,
 
My servlet after processing something from the HttpServletRequest received by it - is 
supposed to forward the request using RequestDispatcher - but it is not doing so.(Only 
when directly forwarded without doing any initial processing  with the request - it 
gets forwarded).Please give a solution for this.
 
Thanks and regards,
Tejashri.
 
 


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Further details - RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello everyone,
 
wrt the need for actual code - I am sending this code which is executed by doGet 
method of my servlet :
  
   String temp = request.getParameter(abc);
if( temp.equals(xyz))
{
 //do some processing  ...
}
 
   //uptil this point it gets executed properly 
strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp;
RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress);
objReqDispatcher.forward(request,response);
 
  Here request dispatcher is not working - it doesn't forward the request.
 
Thanks and regards,
 
Tejashri.
Ben Souther [EMAIL PROTECTED] wrote:

Request dispatcher is working fine for me.

Can you send some code and a description of your environment?



On Wednesday 17 December 2003 10:57 pm, you wrote:
 Hello everyone,

 My servlet after processing something from the HttpServletRequest received
 by it - is supposed to forward the request using RequestDispatcher - but it
 is not doing so.(Only when directly forwarded without doing any initial
 processing with the request - it gets forwarded).Please give a solution
 for this.

 Thanks and regards,
 Tejashri.




 -
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now

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




-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello,
 
No it is not throwing any exceptions.And it is asked to forward before the response is 
committed.
 
Regards,
Tejashri.

Antony Paul [EMAIL PROTECTED] wrote:
You can call forward() before the response is committed. I seems that it is
throwing IllegalStateException.

Antony Paul

- Original Message -
From: Teja Jo 
To: 
Sent: Thursday, December 18, 2003 9:27 AM
Subject: RequestDispatcher in servlet is not working


 Hello everyone,

 My servlet after processing something from the HttpServletRequest received
by it - is supposed to forward the request using RequestDispatcher - but it
is not doing so.(Only when directly forwarded without doing any initial
processing with the request - it gets forwarded).Please give a solution for
this.

 Thanks and regards,
 Tejashri.




 -
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now

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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Reading from an xml file from servlet supporting class

2003-12-16 Thread Teja Jo
Hi,
 
A class used by my servlet in the web application is using a xml file 
.These 3 files are in the same folder inside 
webapps/myApp/WEB-INF/classes/myFolder in tomcat - yet the servlet-supporting 
class cannot read the xml file .Where to place the xml file so that it can be read?
 
Regards,
Teja.



-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now