Grokbase
Topics Posts Groups | in
x
[ help ]

??? (was...@secure1.co.kr)

Profile | Posts (6)

User Information

Display Name:???
Partial Email Address:was...@secure1.co.kr
Posts:
6 total
6 in tomcat-user@jakarta.apache.org

5 Most Recent

All Posts
1) ??? RE: property files
| +1 vote
When using property file, it is good to adding CLASSPATH env variable. When u do this, it is...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
When using property file, it is good  to adding CLASSPATH env variable. 
When u do this, it is important to adding up to directory name which contains property file, not including
file name.
ex)/usr/local/income/db.properties <---If u want this file as property file.
Add into system file, set CLASSPATH=$CLASSPATH:/usr/local/income, not /usr/local/income/db.properties.

Good Luck,
regards
Choi. (South Korean)
  -----Original Message----- 
  From: Kunal Shah [email protected: k...@einfochips.com] 
  Sent: Thursday, October 12, 2000 2:41 PM 
  To: [email protected: tomcat...@jakarta.apache.org] 
  Subject: property files 


  Hi all, 
  I am using tomcat for developing application in jsp and servlet. 

I am using java's resource bundle class for reading property files at runtime.
  In servlet it works if i place the property file in the same directory. 
However if i place property file in jsp directory to read it in jsp file, it throws exception that , property file not found .
  I also placed it in my classpath but no luck.  

  One more try i did is like this. 

In the example directory, some servlets are using property files. I append my property variables and values over there and try to call that property file. But the result is same. No luck.

  Only just because of property file , i have to move on to some other server. 
  Pls guide me , what should i do. 

  Thanks in advanced. 

  Kunal 
2) ??? after installing Tomcat 3.2(binary)...
| +1 vote
I have some question about tomcat 3.2.. 1. After installing tomcat 3.2, I position a context in...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
I have some question about tomcat 3.2..

1. After installing tomcat 3.2, I position a context in /home/wastebin/apache/htdocs/income to /income
And I typed http://dnet/income in URL window in my browser(IE5.0)
Then screen shows me like this..
********************************************************************************************************************************
Directory Listing for:/income/  
Subdirectories:   
      applet/           Error: 500 
Location:/income/
Internal Servlet Error:

java.io.IOException: Not an ISO 8859_1 character:?
at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutputStream.java:221)
at org.apache.tomcat.request.DirHandler.doService(StaticInterceptor.java:535)
at org.apache.tomcat.core.Handler.service(Handler.java:263)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:475)
********************************************************************************************************************************
Why tomcat indicate java.io.IOException: Not an ISO 8859_1 character:?
In tomcat 3.1 will show sub-directory and files.
3) ??? How can I hide my directory content.
| +1 vote
In tomcat 3.1, typing http://hostname/context shows all files in context. How can I this dangerous...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
In tomcat 3.1, typing http://hostname/context shows all files in context.
How can I this dangerous situation. I have tried many ways.
For example, I've changed <directory> options Indexes</directory>.
Sorry for ackward question..
4) ??? RE: About Servlet-Applet Communication
| +1 vote
Thank for ur kind response. I had tried as you taught me but failed.-_- <--applet side-->...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Thank for ur kind response.
I had tried as you taught me but failed.-_-
<--applet side-->
ObjectOutputStream os = new ObjectOutputStream(uc.getOutputStream());  
       os.writeObject("leftItem"); 
       os.flush(); 
       os.close(); 
<--servlet side-->
try  
{  
                 temp = (String)is.readObject();  
                  // Display the string  
            }catch (ClassNotFoundException e){  
                  System.out.println("Class Not found Exception");  
}

  

-----Original Message-----
From: Matt Goss [email protected: m...@rtci.com]
Sent: Tuesday, October 10, 2000 2:31 AM
To: [email protected: tomcat...@jakarta.apache.org]
Subject: Re: About Servlet-Applet Communication


what you want to do is use the output stream from the response as an
object stream like this:
<on the servlet side>
Object myobject = new Object();
java.io.ObjectOutputStream os = new
ObjectOutputStream(resp.getOutputStream());
os.writeObject(myobject);
</on the servlet side>
<on the applet side>
ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
Object myobject =  (Object) ois.readObject(); 
ois.close();
</on the applet side>
That works for me...
Matt Goss
5) ??? Re: Problem invoking 'Applet' from a servlet (passing parameters)
| +1 vote
----- Original Message ----- From: ann patil <patilann@hotmail.com> To:...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
----- Original Message -----  
From: ann patil <patilann@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, October 09, 2000 1:38 AM
Subject: Problem invoking 'Applet' from a servlet (passing parameters)


> Hi,
>  
>  
> Directory Structure that I have on my side:
>  
> abc
> |
> main  (root)    in server.xml <context> 
>     | 
>     applet 
>     1) Abc.java 
>     2) Abc.class 
>  
> Used the following code to invoke the applet from the servlet:
>  
> out.println ("<HTML> <TITLE> Loading applet... </TITLE>");
> out.println ("<applet codedebase=" "http://localhost:8080/main/applet/"
> + " code=Abc.class >");
> out.println ("<param name=" + "userid" + "value=" + '"' + "Sam" + '"' + ">
> </applet></html>");
>  
In Applet codebase indicates relative path to Applet Class(in this case Abc.class).
The most easiest solution is your applet directory is moved to /WEB-INF/classes/applet..
And <applet code=ABC.class>
    <param name=codebase value=applet> 
       </applet>   can be replaced.. 
Cheer up!


>  
> Error after execution: 'error loading class file Abc.class' in the web
> browser.
> It searches for the class file in /main/servlet/ directory.
>  
> Can anybody please help me out ?
>  
> Am I missing something ? I need to pass parameters to my applet through
> the servlet else I could had used the Redirect method.
>  
> Is there a way out ?
>  
> Thanks
>  
> Ann.
>  
>  
>  
>  
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>  
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.

spacer
Profile | Posts (6)
Home > People > ???