Re: creating user url...

2007-03-17 Thread kace

thanks Edmond, ill google for getPathInfo().  Can the directory for each
company be created on the fly?

Kace
-- 
View this message in context: 
http://www.nabble.com/creating-user-url...-tf3417316.html#a9528021
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie..localhost works but not IP

2007-03-17 Thread Bruno Vilardo
Hello Anna,

Can you ping this other machine??

You can try to add the host name and ip address (Machine that has Tomcat) on
your hosts file. "c:\windows\system32\drivers\etc\hosts" 

Have you tried to use the hostname instead of the IP Address??

I have a similar issue when I installed a WMWare environment along with
Tomcat, ERP Systems and Databases.

I hope that this helps.

Regards,

Bruno


-Original Message-
From: anna24 [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 16 de março de 2007 22:25
To: users@tomcat.apache.org
Subject: Newbie..localhost works but not IP


Hi I am total tomcat Newbie..I tried a lot to search for an effective
solution for this problem but could not find the solution:

I have installed Tomcat 6 on my Windows Xp machine. http://localhost:8080/
works. When I enter http://[myIPaddress]:8080/ from my machine this too
works. But when I enter http://[myIPaddress]:8080/ from a different machine,
I not able to see the Tomcat homepage. Please provide me a few pointers on
this issue.

Thanks a lot,
Anna 
-- 
View this message in context:
http://www.nabble.com/Newbie..localhost-works-but-not-IP-tf3417698.html#a952
5336
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: creating user url...

2007-03-17 Thread EDMOND KEMOKAI

You can create directories using the java.io package. Unless you're going to
store a lot of per company info like images and such, using the getPathInfo
is the better solution. Even if you want to store per company data, you can
store all such files in one directory with ids stored in a database. So for
instance if you want to store logo.png for each company, you'll have a
directory called "logo" and a database table called logo with company id as
a key and logo id as another column. Then you can use the logo id as part of
the file name.

On 3/17/07, kace <[EMAIL PROTECTED]> wrote:



thanks Edmond, ill google for getPathInfo().  Can the directory for each
company be created on the fly?

Kace
--
View this message in context:
http://www.nabble.com/creating-user-url...-tf3417316.html#a9528021
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"talk trash and carry a small stick."
PAUL KRUGMAN (NYT)


Re: Non-Latin Character Display

2007-03-17 Thread Vernon _



> As I mentioned in my post, I already have the JSP page set as>
> HTML: />

> JSP: <%@ page contentType="text/html;charset=UTF-8" language="java" %>



Mark was suggesting that you set the request encoding, not the response
encoding.


The above is character set setting which is different from character 
encoding. They are two different things.


In my original post, I already mentioned that I have converted the request 
character encoding to utf-8.



> I use a MVC framework. So, I am not sure anywhere using GET.



Uhh right. I'm sure you use GET requests sometimes. Better set it in

.the connector. Honestly, the client should be reporting the request

encoding, and you should be honoring it.


I can't see how this connect with the issue.


> I have this issue for ages. I haven't been able to resolve. I have to
> move long text into a message property file to go around this problem.



Localized text should probably be in a separate file, anyway.


I don't know whether you understand the background or not. I was talking 
about something in between two i18n approaches. When one is not working, I 
have to use the other one.



How are you typing those characters into your java source files? If you
are using a source file encoding other than the default encoding on your
system, you might have to tell the JSP compiler what encoding the files
are in. You can't go wrong using \uWXYZ instead of native characters.


I typed the characters into a JSP file directly as I said in my original 
post. I also try put a unicode in JSP file as what it is in a message 
property file. The unicdoe shows up as what it is.


I believe the problem is laid in the process of either JSP file translation 
or/and servlet compiling. That is why I took a shot on the file encoding of 
Java option. It doesn't work, however.




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+32M9CaO5/Lv0PARAkMrAJ9/cfgcX2drWxcFLAUUGTwgOc5bygCfYwp8
6NszrV4jEM2cVQqFiyH+b6o=
=iC5l
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Get a FREE Web site, company branded e-mail and more from Microsoft Office 
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Non-Latin Character Display

2007-03-17 Thread Rashmi Rubdi
I haven't been following this thread, and don't know what the original request 
/ problem was but, 
perhaps you may find this article useful - it's written very well IMHO.

Character Conversions from Browser to Database
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html

I'm not sure if the above will be of use to you.

Also some additional related links:
http://www.w3.org/International/O-charset.en.php


-Rashmi

- Original Message 
From: Vernon _ <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Saturday, March 17, 2007 1:13:23 PM
Subject: Re: Non-Latin Character Display


 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Security problems with caseSensitive to false

2007-03-17 Thread Giuseppe Santamaria

Hi

I know which to set tomcat for
the NOT case sensitive, necessity to use the

 of the web application.

but this documentation 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

)  say


"NOTE: This flag MUST NOT be set to false on the Windows platform (or
any other OS which does not have a case sensitive filesystem), as it
will disable case sensitivity checks, allowing JSP source code
disclosure, among other security problems."

Then there are serious security problems.

Is there a way to avoid which jsp code to be visible (in the browser)

through the request "filename.JSP" , in other words calling the file jsp 
with uppercase


extension?


Thanks & Regards,


Giuseppe Santamaria

_
Ogni ricerca da questo sito, una donazione per i bambini rifugiati 
http://click4thecause.live.com/Search/Charity/Default.aspx?locale=it-it



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Security problems with caseSensitive to false

2007-03-17 Thread Caldarale, Charles R
> From: Giuseppe Santamaria [mailto:[EMAIL PROTECTED] 
> Subject: Security problems with caseSensitive to false
> 
> Is there a way to avoid which jsp code to be visible (in the browser)
> through the request "filename.JSP" , in other words calling 
> the file jsp with uppercase extension?

You could write a valve or filter that detects the undesired casing and
changes it to the expected lower case.  It would also be possible to use
the eight possible upper/lower case combinations in the servlet mapping
for the JspServlet in conf/web.xml (you should also do the 16 mappings
for *.jspx at the same time).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Non-Latin Character Display

2007-03-17 Thread Konstantin Breu
The original post was this:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200703.mbox/%3cBAY103-
[EMAIL PROTECTED]
(text also quoted below)

I have tested it with Eclipse 3.2 and Tomcat 6 (jre1.5.0_10), with chinese,
korean and hebrew characters, it works... Which Tomcat and JDK version are
you using? I can do a further test... ;-)

There might also be some conversion of the file before it is stored and
compiled at the server...
(for example conversion when commiting it to a versioning system)


this is the text of the original post:

> I have several Java web applications on Tomcat where non-Latin characters 
> function properly with only one exception. Non-Latin characters, Chinese
in 
> this case, can be displayed properly thorough the JSTL message tag. The 
> related configuration are followings:
> 
> HTML:
> JSP: <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> 
> The applications can take Chinese character inputs correctly with a filter

> of converting request character encoding to "UTF-8".
> 
> The only problem is that Chinese characters don't displayed properly when 
> they are directly typied on a JSP file. I have set the Eclipse file text 
> encoding to utf-8 and the characters are shown correctly in the IDE.
> 
> I believe that is a TC configuration related issue. After having "set 
> JAVA_OPTS= -Dfile.encoding=UTF-8" in the catalina.bat file, nothing has 
> changed.
> 
> How to solve this problem?
> 
> Thanks in advance.



-Ursprüngliche Nachricht-
Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 17. März 2007 22:04
An: Tomcat Users List
Betreff: Re: Non-Latin Character Display

I haven't been following this thread, and don't know what the original
request / problem was but, 
perhaps you may find this article useful - it's written very well IMHO.

Character Conversions from Browser to Database
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html

I'm not sure if the above will be of use to you.

Also some additional related links:
http://www.w3.org/International/O-charset.en.php


-Rashmi

- Original Message 
From: Vernon _ <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Saturday, March 17, 2007 1:13:23 PM
Subject: Re: Non-Latin Character Display


 


No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: Non-Latin Character Display

2007-03-17 Thread Vernon _

Thanks both Konstantin and Rashmi.

The recommended article covers all aspects of non-Latin language Java web 
development. I already did all recommended steps whenever they were applied. 
So, why I didn't get the character display correctly? The Java web 
applications I have always use some sort of page composite technique, Tiles 
for example. The page tag <[EMAIL PROTECTED] contentType="text/html; charset=UTF-8" %> 
was only used in the template JSP file. but not every page component JSP 
files. After applied the JSP page tag to the JSP file with Chinese 
characters, the problem is solved.


Thanks again.

Vernon




Original Message Follows
From: "Konstantin Breu" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "'Tomcat Users List'" 
Subject: AW: Non-Latin Character Display
Date: Sat, 17 Mar 2007 23:41:53 +0100

The original post was this:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200703.mbox/%3cBAY103-
[EMAIL PROTECTED]
(text also quoted below)

I have tested it with Eclipse 3.2 and Tomcat 6 (jre1.5.0_10), with chinese,
korean and hebrew characters, it works... Which Tomcat and JDK version are
you using? I can do a further test... ;-)

There might also be some conversion of the file before it is stored and
compiled at the server...
(for example conversion when commiting it to a versioning system)


this is the text of the original post:

> I have several Java web applications on Tomcat where non-Latin characters
> function properly with only one exception. Non-Latin characters, Chinese
in
> this case, can be displayed properly thorough the JSTL message tag. The
> related configuration are followings:
>
> HTML:
> JSP: <%@ page contentType="text/html;charset=UTF-8" language="java" %>
>
> The applications can take Chinese character inputs correctly with a 
filter


> of converting request character encoding to "UTF-8".
>
> The only problem is that Chinese characters don't displayed properly when
> they are directly typied on a JSP file. I have set the Eclipse file text
> encoding to utf-8 and the characters are shown correctly in the IDE.
>
> I believe that is a TC configuration related issue. After having "set
> JAVA_OPTS= -Dfile.encoding=UTF-8" in the catalina.bat file, nothing has
> changed.
>
> How to solve this problem?
>
> Thanks in advance.



-Ursprüngliche Nachricht-
Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 17. März 2007 22:04
An: Tomcat Users List
Betreff: Re: Non-Latin Character Display

I haven't been following this thread, and don't know what the original
request / problem was but,
perhaps you may find this article useful - it's written very well IMHO.

Character Conversions from Browser to Database
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html

I'm not sure if the above will be of use to you.

Also some additional related links:
http://www.w3.org/International/O-charset.en.php


-Rashmi

- Original Message 
From: Vernon _ <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Saturday, March 17, 2007 1:13:23 PM
Subject: Re: Non-Latin Character Display





No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
It’s tax season, make sure to follow these few simple tips 
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



form-based authentication

2007-03-17 Thread Ali Baharev

If i deploy the war file

http://www.onjava.com/onjava/2002/06/12/examples/security-form-based.war

it works fine. If i place a main.html file in the protected folder, i
get and error 404 for the
following:

http://127.0.0.1:8080/security-form-based/protected/main.html

With a different war file (which i would like to protect with
password) i either face this error 404 or the server does not ask for
any password.

I am sure this is my mistake, but could you please help me?

Many thanks,

Ali

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to increate memory resonably with Tomcat6, java 1.6..system: winxp , help appreciated.

2007-03-17 Thread James liu

i m tomcat newer.


--
regards
jl