Re: admin login problem with tomcat5-slide bundle

2004-05-25 Thread Victor Anyakin
Miklos Nyiri wrote:
I guess it is a somewhat peculiar problem. I tried using a binary 
distributon of Tomcat 4 by Serverlogistics together with Slide and it 
worked fine. Also I could easily log in to both the admin and the 
manager pages.
Then I installed the offical tomcat 5 with Slide bundle and since the 
login for Slide works however I cannot access the admin and the manager 
functions. I tried everything (changing permissions for tomcat-users, 
using blank username and pwd etc) I could think of except for disabling 
login altogether (which I don't really know how to do).
If I use the default Slide root-root login at the admin and manager 
login pages, it does recognize them but certainly grants no access.
I'm working on Mac OS X 10.3 and am no expert at all, so please be a 
little patient with explaining what to do if you feel like helping me. 
Thanks.

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

Probably you should add admin and manager roles and user with theese 
roles to the %CATALINA_HOME%/conf/tomcat-users.xml
Making it look like this:

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat roles=tomcat,admin,manager/
 /tomcat-users
--
 ,
  ( ) [EMAIL PROTECTED]
Victor Anyakin (IT Spetialist) [EMAIL PROTECTED]
OpenPGP Key ID:  0xC1F60269
Key Fingerprint: FD67 FE27 0618 9702 9A27  2171 0867 5AC7 C1F6 0269

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


Re: jspx and html entities

2004-04-06 Thread Victor Anyakin
Flavio Tordini wrote:
hi all,
i'm creating a jspx file from an xhtml template. the xhtml contains html 
entities such as igrave;
Hi, Flavio
I've also experienced this problem. The solution is to use amp;igrave; 
in your XML-formatted JSP page. You may also find a very funny thing 
with ampersands in URL passed by a href=/a (@see chapter C.12, 
http://www.w3.org/TR/2002/REC-xhtml1-20020801). The only solution i've 
found is to flatten  this tag:
lt;a href=quotc:out value=${url} escapeXml=true/quot;
gt;Alt;/agt;
I hope someone will tell me a better way to solve this issue.

--
 ,
  ( ) [EMAIL PROTECTED]
Victor Anyakin (IT Spetialist) [EMAIL PROTECTED]
OpenPGP Key ID:  0xC1F60269
Key Fingerprint: FD67 FE27 0618 9702 9A27  2171 0867 5AC7 C1F6 0269


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


Request character encoding

2004-03-24 Thread Victor Anyakin
Hello to all List Readers,

Could you please tell, how HttpServletRequest CharacterEncoding is set?

My JVM has default character encoding set to cp1251, JSP pages are set 
to be encoded in UTF-8 (by corresponding directives), and it seems that 
 browsers return form data encoded also in UTF-8, but the 
'request.getCharacterEncoding()' returns 'null'. Thus,  request 
parameters are not readable. If I manually set 
'request.setChararcterEncoding(utf-8)' everything is allright, but 
still, how can I be sure that request is really coded in UTF-8? and how 
can 'request.getCharacterEncoding()' be set automatically (ie. Request 
encoding determined by the browser)?

Thanks in advance

--
 ,
  ( ) [EMAIL PROTECTED]
Victor Anyakin (IT Spetialist) [EMAIL PROTECTED]
OpenPGP Key ID:  0xC1F60269
Key Fingerprint: FD67 FE27 0618 9702 9A27  2171 0867 5AC7 C1F6 0269


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