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
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
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
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
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
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
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
Is there a more simple way?
Regards,
Arne Brutschy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
-
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
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
--
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]
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
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
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
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
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,
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
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
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
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
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
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
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
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
- display the logout form --%>
<%-- the requested page parameter is used to return to this page
after logout --%>
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
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
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&
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]
(DynaActionForm)form;
// remove the user from the session
session.removeAttribute("user");
.
.
// stay on this page
String requestedPage = loginForm.get("requestedPage").toString();
response.sendRedir
32 matches
Mail list logo