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
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
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
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
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,
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
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
simple way?
Regards,
Arne Brutschy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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.
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
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,
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
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
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
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
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^[\-\'\`\´\.\
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
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,
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
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
,
Arne Brutschy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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,
String requestedPage = loginForm.get(requestedPage).toString();
response.sendRedirect(requestedPage);
return null;
}
Regards,
Arne Brutschy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
-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]
28 matches
Mail list logo