Best way to handle big search results..

2004-03-03 Thread Arne Brutschy
to display 20 items per page, and the user can browse through these results. What is the best way to handle these result object? Sorting once and storing/caching it in the session or searching and sorting every time the user requests a new page of results? Any thoughts/experiences? Regards, Arne

Re: Subclassing DynaValidatorForm

2004-02-26 Thread Arne Brutschy
to a formfield, the parameter gets replaced by it's original value (taken from a copy of the bean in the session). That added another line of defense to my app.. :) Thanks, Arne Brutschy - To unsubscribe, e-mail: [EMAIL PROTECTED

Subclassing DynaValidatorForm

2004-02-17 Thread Arne Brutschy
Hi, I'm subclassing DynaValidatorForm to implement some security features (connected with the value of disabled fields, see my post a few days ago). Is there any possibility to get a session variable in the bean? I need to get the current user the bean is associated with. Or I just set a

Re: Subclassing DynaValidatorForm

2004-02-17 Thread Arne Brutschy
Paul-J Woodward wrote: The validate method has a request parameter, so I assume you just do request.getSession().getAttribute(...), or I have I misread what you are trying to achieve? Yes, that is true. But that needs the form to be validated to check the access, too. I want to allow/deny a

Getting data from a disabled form field

2004-02-12 Thread Arne Brutschy
Hi, I have a problem with disabled form fields. I'm using a user entry form, which fields can be edited by the current user based on his group memberships. So a normal user without admin status cannot change the uid, as this field is disabled. My problem is, that after submitting the form,

Re: [OT] looking for a method that will be called on application startup

2004-02-03 Thread Arne Brutschy
at 13:59, Arne Brutschy wrote: hi, I'm looking for a method/hook/whatever that will be called from tomcat at application startup. I want to use it to put all my init-stuff (as configuration reading) into it. At the moment, my authentication filter looks for the presence of these objects

[OT] looking for a method that will be called on application startup

2004-02-02 Thread Arne Brutschy
hi, I'm looking for a method/hook/whatever that will be called from tomcat at application startup. I want to use it to put all my init-stuff (as configuration reading) into it. At the moment, my authentication filter looks for the presence of these objects in application scope, and if they

best way to handle an indexed property and a textarea

2004-01-29 Thread Arne Brutschy
simple way? Regards, Arne Brutschy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

getting the form name

2003-12-08 Thread Arne Brutschy
Hello, I'm trying to subclass the TextTag.java. I need to get the form name assiciated with this input field. How can I retrieve this? As I understand it right, the form field gets the name of the form from the associated actionmapping. But how can I get the form tag, the text tag is nested

Re: getting the form name

2003-12-08 Thread Arne Brutschy
Jarnot Kari Contr HQ SSG/STN wrote: You could do this: FormTag htmlForm = (FormTag) TagSupport.findAncestorWithClass(this, FormTag.class); String actionFormName = htmlForm.getBeanName(); Hey, that was excactly what I needed! Thanks alot, Arne

Re: [OT] Athentication filter doesn't filter actions

2003-12-08 Thread Arne Brutschy
Ralf Rapude wrote: I've checked it out before I post the solution and it works fine here. (Tomcat 4.1.27). AB ideas. BTW, I'm using Tomcat 5 and 2.4 servlets.. So maybe it is a problem of using Tomcat 5 (isn't it still beta?). Maybe you should download a stable version for another attempt.

[OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Hi all, I'm using an authentication filter to control the access to several .jsp pages. At the moment, I'm using the mapping filter-mapping filter-nameauthenticationFilter/filter-name url-pattern/*/url-pattern /filter-mapping to do this. But this doesn't filter any access to the

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Ralf Rapude wrote: url-pattern/*/url-pattern I already tried that, but this doesn't work, it's not even a valid filter mapping (Tomcat gets an Parse Error exception on this mapping). Any ideas? Arne - To unsubscribe,

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Ralf Rapude wrote: So you should better try this: [..] I tried this: filter-mapping filter-nameauthenticationFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameauthenticationFilter/filter-name servlet-nameaction/servlet-name

Check for required when using validator

2003-12-01 Thread Arne Brutschy
Hello, is there any possibility to check from an jsp page (or custom tag) for the requiredness of a property? I'm using the validator. When I specify the property as required in the validator.xml, I want to display a small red star behind the input field on the page. Is his possible to to this

Textarea validation, using validator and mask

2003-12-01 Thread Arne Brutschy
Hello, I'm trying to use the validator with a regexp mask on an textarea field. There are two problems: 1) even if the regexp allows empty strings and the field is not required, the validator reports that the field is invalid. same mask works for a simple text input. 2) I'm trying to use

Re: Textarea validation, using validator and mask

2003-12-01 Thread Arne Brutschy
I wrote: I'm trying to use the validator with a regexp mask on an textarea field. There are two problems: 1) even if the regexp allows empty strings and the field is not required, the validator reports that the field is invalid. same mask works for a simple text input. 2) I'm trying to

Struts Validator with special characters

2003-11-27 Thread Arne Brutschy
Hello, I found a problem with the struts validator. It seems that it is not possible to use special characters (like german Umlaute) in an regular expression.. I tried this: constant constant-namename/constant-name constant-value^[\-\'\`\´\.\

Re: AW: Struts Validator with special characters

2003-11-27 Thread Arne Brutschy
Hello, Thursday, November 27, 2003, 3:11:40 PM, Samuel wrote: SOBtsc do This: SOBtsc global SOBtsc constant SOBtsc constant-namealphanumeric/constant-name SOBtsc constant-value^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-]*$/constant-value SOBtsc /constant SOBtsc constant SOBtsc

how to create an error message with a filter

2003-11-20 Thread Arne Brutschy
Hello, I want to create a error message with my authentication filter. The filter checks for an idle timeout. If this occours, it invalidates the session. At this point, the filter should create a error message, i.e. you have been idle for too long!. After that the filter redirects to the login

Re[2]: how to create an error message with a filter

2003-11-20 Thread Arne Brutschy
Hello, Thursday, November 20, 2003, 10:32:01 AM, Joe wrote: JH If you *really* wanted, you could generate an ActionError inside of the JH filter I suppose, so the login page displays the reason he wound up JH there, but I've never tried that, and my newbie self kind of shudders at JH that. I got

Strange things happen to my servlet path..

2003-11-17 Thread Arne Brutschy
Hello, I got the following problem: I used this test setting for my login filter: filter-mapping filter-nameauthenticationFilter/filter-name url-pattern/groups.jsp/url-pattern /filter-mapping Everything worked as expected. Now, as the filter ist done and tested, I wanted to protect

Re: Utter Newbie Question

2003-11-12 Thread Arne Brutschy
, Arne Brutschy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re[4]: EL Expression in html:hidden tag

2003-11-06 Thread Arne Brutschy
Hello, Monday, November 3, 2003, 7:20:31 PM, you wrote: KS I'm jumping in late on this thread, but why bother using Struts-EL at all under KS JSP 2.0? The original (RT) tags should be magically EL-aware as long as the app KS uses a Servlet 2.4 format web.xml, right? Oh, really? I didn't know

Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Arne Brutschy
is the html:hidden tag marked in the tld file with a rtexpressions=false? Regards, Arne RB Arne Brutschy wrote: Hello, I'm having a problem with the html:hidden tag. What I'm trying to do is: On every page, there is a logout button included. When the user hits the button, the request will be send

Re[3]: EL Expression in html:hidden tag

2003-11-03 Thread Arne Brutschy
Hello, I got it, a simple input type=hidden name=requestedPage value=${pageContext.request.servletPath} did the trick. I guess I shouldn't try to use struts tags too hard... Thanks, Arne Monday, November 3, 2003, 12:29:11 PM, you wrote: AB I already tried this, it does not work. Basically,

EL Expression in html:hidden tag

2003-10-30 Thread Arne Brutschy
String requestedPage = loginForm.get(requestedPage).toString(); response.sendRedirect(requestedPage); return null; } Regards, Arne Brutschy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Some design questions/Specific form access rights

2003-10-30 Thread Arne Brutschy
-config.xml to configure the access rights and required group memberships... Regards, Arne Brutschy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]