RE: JSTL and LDAP

2003-12-03 Thread Dylan MacDonald
Wow, well I didn't think I would get it working, but thanks to you and Google I did. Now I just have to add roles to LDAP to limit access to some pages and I'm all set. Thanks again, Dylan MacDonald -Original Message- From: Mark R. Diggory [mailto:[EMAIL PROTECTED] Sent: Wednesday, Dec

Re: JSTL and LDAP

2003-12-03 Thread Mark R. Diggory
You can use the Realm of the Tomcat server to authenticate users and match them to roles (basically Groups stored in the ldap server). If you do this then you don't really need to use taglibs to manage the login. You just have to configure your web.xml with a login-config and the server.xml wit

JSTL and LDAP

2003-12-03 Thread Dylan MacDonald
Hi - I am just beginning to use the JSTL and my first project is redoing our company's intranet. Currently we use LDAP to provide authentication. This is done via a .htaccess file in the root of the site and the LDAP mod for Apache. I would like to convert this to either a Tomcat realms configu

RE: RE: trim string, append '...'

2003-12-03 Thread Dylan MacDonald
Well that did it, alright. Thanks so much for your help. I did see the line that says "It is currently built on top of the Lang component from Jakarta Commons." To be honest, it didn't click with me that that meant I needed to download the Commons component in order to be able to run the string

RE: fmt_rt encoding trouble

2003-12-03 Thread Nedwick, Robert
> -Original Message- > From: Kris Schneider [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 2:07 PM > To: Tag Libraries Users List; [EMAIL PROTECTED] > Subject: Re: fmt_rt encoding trouble > > > Okay, so by using , you're effectively > calling response.setLocale, which

Re: fmt_rt encoding trouble

2003-12-03 Thread Kris Schneider
Okay, so by using , you're effectively calling response.setLocale, which may modify the response content-type's charset. What happens if you do: right after ? Although a quick look at Tomcat seems to imply that using "el" for a locale will result in ISO-8859-7 for an encoding anyway. How is your

Re: fmt_rt encoding trouble

2003-12-03 Thread Emmanuil Batsis (Manos)
Currently I'm trying to use ISO-8859-7 like: <%@ page contentType="text/html;charset=ISO-8859-7" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/fmt_rt"; prefix="fmt_rt" %> Then, try to use the fmt_rt tags: However, the properties taken from my resource bundle do not print correctly (I h

Re: fmt_rt encoding trouble

2003-12-03 Thread Kris Schneider
I'm confused by your statement, "without the taglib reseting it each time". I don't see where it's doing anything with character encoding. It sounds like you're already doing something like: <%@ page pageEncoding="UTF-8" %> right? I suppose you could see if using a Filter to do: request.setChara

Re: Multipart/form-data support in Struts

2003-12-03 Thread Mark R. Diggory
Martin, sorry, I just noticed the depricated FileUpload code in the struts does some of this. http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/upload/ -Mark Mark R. Diggory wrote: Martin, This could probably be more appropriate for Commons Developer, but: Any thoughts

Re: fmt_rt encoding trouble

2003-12-03 Thread Emmanuil Batsis (Manos)
I seem to understand the problem somewhat better now, so my question is, how do I use an encoding like UTF-8 or ISO-8859-7 without the taglib reseting it each time i use a tag like fmt_rt:message? Emmanuil Batsis (Manos) wrote: Hi, I'm using a greek bundle like and then a message like bu

Re: Multipart/form-data support in Struts

2003-12-03 Thread Mark R. Diggory
The actual form and action are located here: http://cvs.apache.org/viewcvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadAction.java?rev=1.8&content-type=text/vnd.viewcvs-markup http://cvs.apache.org/viewcvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.jav

Re: Multipart/form-data support in Struts

2003-12-03 Thread Mark R. Diggory
You can also see this via the web: examples of the upload JSP's K.C. is refering to http://cvs.apache.org/viewcvs/jakarta-struts/web/upload/upload.jsp?rev=1.6&content-type=text/vnd.viewcvs-markup struts-config http://cvs.apache.org/viewcvs/jakarta-struts/web/upload/WEB-INF/struts-config.xml?rev

RE: RE: trim string, append '...'

2003-12-03 Thread Henri Yandell
There's a dependency on Commons Lang. The project site is http://jakarta.apache.org/commons/lang.html and I recommend downloading the jar at http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-1.0.1.jar. I've not yet tested String taglib under Commons Lang 2. Any recommendations to chan

fmt_rt encoding trouble

2003-12-03 Thread Emmanuil Batsis (Manos)
Hi, I'm using a greek bundle like and then a message like but the result prints mostly question marks... The encoding of the resource bundle, the JSP file and the JSP response is UTF-8. If any non-english user could share some insight it would be of great help. Thanks, Manos --

RE: Multipart/form-data support in Struts

2003-12-03 Thread Ravi Krishna
Oh Thnx a ton all of u, I could fix it Regards,RaviKrishna -Original Message- From: K.C. Baltz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 10:05 PM To: Tag Libraries Users List Subject:Re: Multipart/form-data support in Struts One of the example webapps