Best way to handle big search results..

2004-03-03 Thread Arne Brutschy
I want 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? Reg

Re: Subclassing DynaValidatorForm

2004-02-26 Thread Arne Brutschy
ructure to display/disable the apropriate formfield (read only means = form will be disabled). If the user doesn't have access 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 d

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 s

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 varia

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, val

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

2004-02-03 Thread Arne Brutschy
d a "first time verification" in my app. Thanks Otávio Augusto On Mon, 02 Feb 2004 14:07:47 +0100 Marcel Schepers <[EMAIL PROTECTED]> wrote: Hi Arne, A solution could be create an initialization servlet. Include that servlet in your web.xml and make sure you provide a parameter. Marcel On

[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 are

best way to handle an indexed property and a textarea

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

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. Finally

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 -

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 in

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: authenticationFilter /* authenticationFilter action But I still can access my actions without authenticating. I'm out of ideas. BTW, I'm using Tomcat 5 and 2.4 servlets.. Regards, Arne --

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

2003-12-05 Thread Arne Brutschy
Ralf Rapude wrote: /* > 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, e-mail: [EMAIL PROTECTED]

[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 authenticationFilter /* to do this. But this doesn't filter any access to the actions itself, like something.do. Do I have to include my filter manually in

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 use

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

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 f

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> SOBtsc> SOBtsc> alphanumeric SOBtsc> ^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-]*$ SOBtsc> SOBtsc> SOBtsc> alphanumericSP SOBtsc> ^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-\ ]*$ SOBtsc> SOBtsc> Same thing,

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: name ^[\-\'\`\´\.\ a-zäöüßáéíúóàèìùòâêîôûñA-ZÄÖÜÁÉÍÓÚÀÈÌÒÙÑ]+$ Hans Mueller evaluates, Hans Mülle

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

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[3]: Strange things happen to my servlet path..

2003-11-17 Thread Arne Brutschy
Hello, Monday, November 17, 2003, 4:14:08 PM, Arne wrote: WS>> No exclusions that I'm aware of-- it's not a regular expression, either. WS>> Is that at typo, did you mean *.jsp? And what's the leading slash for? WS>> With that slash, I think /*.jps is exactly the same as /*, it stops WS>> parsing

Re[2]: Strange things happen to my servlet path..

2003-11-17 Thread Arne Brutschy
Hello, Monday, November 17, 2003, 4:08:26 PM, you wrote: >> From: Arne Brutschy [mailto:[EMAIL PROTECTED] >> The conclusion is, that something is wrong with filter. I'm not sure, >> but using /* as pattern protects the >> resources as well, doesn't it? So u

Re[2]: Strange things happen to my servlet path..

2003-11-17 Thread Arne Brutschy
Hello, Monday, November 17, 2003, 4:08:26 PM, you wrote: >> From: Arne Brutschy [mailto:[EMAIL PROTECTED] >> The conclusion is, that something is wrong with filter. I'm not sure, >> but using /* as pattern protects the >> resources as well, doesn't it? So u

Re: Strange things happen to my servlet path..

2003-11-17 Thread Arne Brutschy
Hello, Monday, November 17, 2003, 2:45:17 PM, you wrote: AB> I got the following problem: AB> [...] AB> Has anyone an explation for this strange behavior? Ok, I realized that the missing images etc. happen in both cases. In the first case, I used to request index.jsp first, and after that the sec

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: authenticationFilter /groups.jsp Everything worked as expected. Now, as the filter ist done and tested, I wanted to protect the whole page. I've tried this by defining authenticationFilter

Re: Utter Newbie Question

2003-11-12 Thread Arne Brutschy
- display the logout form --%> <%-- the requested page parameter is used to return to this page after logout --%>

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 t

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

2003-11-03 Thread Arne Brutschy
Hello, I got it, a simple 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, it should be the AB> same as AB> AB> ${pageContext.request.servletPat

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

2003-11-03 Thread Arne Brutschy
asically, it should be the same as ${pageContext.request.servletPath} or which are both not working. Is this some stutsbug? Why is the html:hidden tag marked in the tld file with a rtexpressions=false? Regards, Arne RB> Arne Brutschy wrote: >>Hello, >> >>I&

Some design questions/Specific form access rights

2003-10-30 Thread Arne Brutschy
use the struts-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]

EL Expression in html:hidden tag

2003-10-30 Thread Arne Brutschy
(DynaActionForm)form; // remove the user from the session session.removeAttribute("user"); . . // stay on this page String requestedPage = loginForm.get("requestedPage").toString(); response.sendRedir