Re: Reporting Tools

2005-11-20 Thread Raghu Kanchustambham
You can try Jasper reports... Havent used it a lot myself .. but looks like a decent open source tool for generating reports with support for PDF, excel etc... ~raghu On 11/20/05, Rivka Shisman [EMAIL PROTECTED] wrote: Hi friends Can you recommend me a reporting tool that works nicely

Validator framework with indexed properties

2005-11-20 Thread Raghu Kanchustambham
Hi, I was hoping that the following should work ... but I guess I am missing something somewhere.. validation with other properties is working fine.. but not with the indexed properties. Struts-config.xml: form-bean name=studentEnquiryForm type= org.apache.struts.validator.DynaValidatorForm

help for changing the language, locale

2005-11-20 Thread Miren Urkijo
HEllo y havo one struts aplicaicon. if into the borwser i change the locale, into the browser properties, my application load the properties files well. i am thinking for making onw struts action for changing the language, thelocale but i dont knows how to change it. can anybody says me how must

Re: Reporting Tools

2005-11-20 Thread Larry Meadors
It depends on what you are looking for. I have used both, and think they both suck. :-D Jasper has the advantage that it is free, but usability is crappy. Crystal has the advantage that it usually works, but requires a windows PC to modify the reports. Choose the evil you prefer. ;-) On a

Re: help for changing the language, locale

2005-11-20 Thread Danny Lee
Well, that's really easy, just do: request.getSession().setAttribute(Globals.LOCALE_KEY, new locale(languageCode)); in your action, where languageCode is the locale you wish to use. Cheers Danny Miren Urkijo schrieb: HEllo y havo one struts aplicaicon. if into the borwser i change the

Re: help for changing the language, locale

2005-11-20 Thread Frank W. Zammetti
Note that there is a LocaleAction specifically for doing this, so you don't even have to remember how :) It appears in 1.2.4 at least, but I'm not sure when it was first introduced. Frank Danny Lee wrote: Well, that's really easy, just do:

Re: Reporting Tools

2005-11-20 Thread Frank W. Zammetti
Datavision is another decent choice: http://datavision.sourceforge.net/ On the home page there is a link to an article I wrote about using it in a webapp (straight servlets). I've used it in Struts apps too, it's trivial if you use the article (and the accompanying sample code) as a starting

Re: help for changing the language, locale

2005-11-20 Thread Simons Kevin
I don't know how you could do this. But perhaps you can create a struts action that loads the correct locale properties file. Just an opinion. regards, - Original Message - From: Miren Urkijo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, November

Re: jaas authorization with struts

2005-11-20 Thread Raghu Kanchustambham
On the first cut this looks like authentication/authorization for Spring framework. Do I need to get struts co-exist with spring for this to work ? And how much of an effort would that be? But yes.. this looks quite a powerful and neat concept. Thanks for refering it. Regards, Raghu On

Re: help for changing the language, locale

2005-11-20 Thread Miren Urkijo
it runsbut i have one problem. in my struts pages i am working with fmt and jstl and this doesn't run with these (jstl, fmt). which is the solution? can anybody helps me? thanks - Original Message - From: Danny Lee [EMAIL PROTECTED] To: user@struts.apache.org Sent: Sunday, November

Re: jaas authorization with struts

2005-11-20 Thread Adam Hardy
Hi Raghu, Laurie, I did a project recently which used the Acegi security project which comes bundled with Spring, and although I was never involved in the implementation of it myself, I heard that it was effective. Am I correct in assuming though that it does not offer the alternative that

Re: help for changing the language, locale

2005-11-20 Thread Danny Lee
You have to do a getLocale() in your ActionForm and then use: fmt:setLocale value = ${YourActionForm.locale}/ in your JSP ;) Then you gonna be lucky ;) Cheers, Danny Miren Urkijo schrieb: it runsbut i have one problem. in my struts pages i am working with fmt and jstl and this doesn't run

session.invalidate doesnt log me out...

2005-11-20 Thread Raghu Kanchustambham
Hi, Shouldnt session.invalidate() log me out? request.getSession().invalidate(); try { response.sendRedirect(home.jsp); } catch (IOException e) { e.printStackTrace(); } I am using JAAS Basic authentication on tomcat. When the above code is executed and the redirection happens back, i expected

Accessing logincontext and other useful information in action classes?

2005-11-20 Thread Raghu Kanchustambham
Hi, what is the best way to access authentication/authorization related information in my action class? I configured the BASIC JAAS authentication with my tomcat. The authentication goes fine.. but in case I want to know some information about the roles... how can I get the LoginContext in my

(OT) taglib ftm:bundle

2005-11-20 Thread Ray Madigan
I know this is not a topic for this forum, I have posted this to the taglib mailing list with no response. In one week only a couple of posts were made. I am trying to use the fmt:bundle tag multiple times on a page. Has amyone been successful at this? The idea is that I have a concept of a

RE: help for changing the language, locale

2005-11-20 Thread Ray Madigan
You change the language using fmt:setLocale value='en'/ for English. then you need the resource bundles for resource_en.properties that fmt looks up For example fmt:setBundle basename='Foo'/ needs file Foo_en.properties in the WEB-INF/classes directory of your webapp. For your application you

Re: session.invalidate doesnt log me out...

2005-11-20 Thread Martin Gainty
Good Afternoon- Scrounging the jaas mail -lists I found this from Jan Bertel you haven't specified a realm-name element in the login-config element of your web.xml file. So, if you want to avoid the exception, you can just specify a realm-name that is the same as your jboss-web.xml

Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hello, I just upgraded my servlet container and went from Servlet 2.3 to Servlet 2.4 API, and now I'm getting errors from Struts' html-el taglib: /WEB-INF/component/LoginBox.jsp(22,16) According to TLD or attribute directive in tag file, attribute value does not accept any expressions'

Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just upgraded my servlet container and went from Servlet 2.3 to Servlet 2.4 API, and now I'm getting errors from Struts' html-el taglib: You should not be using Struts-EL with Servlet 2.4/JSP 2.0. Go back to the original Struts tags,

Re: struts javascript question

2005-11-20 Thread Laurie Harper
You can use Struts Validator via validation.xml. In that case, validator already supplies the validation code; you would only need to write your own validation for things validator can't check for you. If you want to do your validation on the server not the client, the validation would be

Re: Form Bean Array / Check box how to

2005-11-20 Thread Laurie Harper
Troy Bull wrote: I have a form with multiple rows on it say it has columns a b c chk hid I have javascript to set hid to Y or N based on someone clicking chk Then in my form bean I have String[] a; String[] b; String[] c; String[] hid; My question is how can I make my check box set the

Re: making a real full 1.3 ... help on ajax pick?

2005-11-20 Thread netsql
Self reply: Has anyone used Rico or Dojo or DWR and or Frank's thing made it to production? comments? Urls? Rico demo looks cool. .V netsql wrote: I re-read it. This looks great: http://dojotoolkit.org/archive/dojo-2005-11-07/demos/widget/ .V

Re: Action - redirect to same page with GET method

2005-11-20 Thread Kuba Królikowski
Laurie Harper napisał(a): Jakub Królikowski wrote: Hello! I'm new in Struts. I don't know how to write such code using Struts (version in html): html head titleSimple Forward/title /head body You can rename the source html file and it allways will works!!! br form name=test method=get

Re: making a real full 1.3 ... help on ajax pick?

2005-11-20 Thread Frank W. Zammetti
I've heard of a few people using AjaxTags (from Java Web Parts) in production, or at least getting ready to move to production, and they have had great success with it. I am myself preparing to use it in prod for the first time in the next month or so. It does *appear* to be pretty stable at

Dynamically altering struts configuration

2005-11-20 Thread Benjamin Lerman
Hi all, Let say I have a line like this one in my struts-config.xml: form-bean name=fooForm type=net.ambre.epingles.struts.form.fooForm / Can I change dynamically the type associated to fooForm ? Thanks Benjamin

Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hi, Thanks for the pointers, but I've got some more questions. --- Wendy Smoak [EMAIL PROTECTED] wrote: On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just upgraded my servlet container and went from Servlet 2.3 to Servlet 2.4 API, and now I'm getting errors from Struts'

Ich bin im Urlaub

2005-11-20 Thread bednarz
Sehr geehrte Damen und Herren, in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 93 62 28 22 Mit freundlichen Grüßen Andreas Bednarz

Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You should not be using Struts-EL with Servlet 2.4/JSP 2.0. Are you saying I should get some other version of Struts that is Servlet 2.4/JSP 2.0-aware? Is there a Struts 1.1 version that is 2.4/2.0-aware? Since the container will

Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hi, --- Wendy Smoak [EMAIL PROTECTED] wrote: On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You should not be using Struts-EL with Servlet 2.4/JSP 2.0. Are you saying I should get some other version of Struts that is Servlet 2.4/JSP 2.0-aware? Is there a Struts 1.1 version

Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
Actually, Acegi does offer what Raghu was looking for (or at least one possible route to achieving it). One of the things it can do is automatically filter collections to remove items the current user shouldn't be allowed to see, so you don't have to bury that kind of business logic in your

Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
It does rely on Spring, yes, but getting Spring to co-exist with Struts is trivial; you don't need to change any existing code to do that, though once you have Spring available you may well find yourself wanting to take advantage of it ;-) L. Raghu Kanchustambham wrote: On the first cut

Re: jaas authorization with struts

2005-11-20 Thread Adam Hardy
Something that removes items from collections according to data visibility constraints declaratively must be quite complex. Presumably the collections are declared in a Spring-style context factory? And then you would have to declare which property of the item provides the IDs, and you also

Re: session.invalidate doesnt log me out...

2005-11-20 Thread Laurie Harper
Raghu Kanchustambham wrote: Hi, Shouldnt session.invalidate() log me out? request.getSession().invalidate(); try { response.sendRedirect(home.jsp); } catch (IOException e) { e.printStackTrace(); } I am using JAAS Basic authentication on tomcat. When the above code is executed and the

Re: Action - redirect to same page with GET method

2005-11-20 Thread Laurie Harper
Kuba Królikowski wrote: Laurie Harper napisał(a): Jakub Królikowski wrote: Hello! I'm new in Struts. I don't know how to write such code using Struts (version in html): html head titleSimple Forward/title /head body You can rename the source html file and it allways will works!!! br

Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
I'm not sure of the specifics, this isn't a capability I've used; I just know it's there ;-) L. Adam Hardy wrote: Something that removes items from collections according to data visibility constraints declaratively must be quite complex. Presumably the collections are declared in a

Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Aha, I see what you mean now. I had this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % Changed it to this: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html-el % And now things seem to work. That's it, though I

RE: Reporting Tools

2005-11-20 Thread Meenakshi Singh
Jasper Reports is a powerful open source tool. U can have a look at it at http://jasperreports.sourceforge.net I have used it in my project m satisfied with the results. Regards, Meenakshi. - To unsubscribe, e-mail: [EMAIL

RE: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Karr, David
-Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Aha, I see what you mean now. I had this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % Changed it to this: %@ taglib