You have to add some code into Struts tag handler, especially an attribute and setter
for your onpaste property.
For such cases, I use to create a taglib for my app that extends some struts tag, to
avoid having a non-standard Struts
lib and encourage developpers to create and use tags.
Nico.
I don't have the exact fix you are looking for, but this (in web.xml)
will prevent direct access to anything with a jsp extension:
security-constraint
web-resource-collection
web-resource-nameno_access/web-resource-name
url-pattern*.jsp/url-pattern
Thanks
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 10:03 AM
To: Struts Users Mailing List
Subject: Re: How to add new events to HTML tag library objects
You have to add some code into Struts tag handler, especially an attribute
and
In a JSP containing a form, what is the easiest way to see if a form
validation error message exists for a particular, say, html:text field,
when that page is processing after form validation has failed? For
example, what if you wanted to present the messages field by field
instead of all
Hi friends,
I have the following requirement.
field property=XYZ depends=required,mask,intRange
msg name=required key=key1/
msg name=mask key=key2/
msg name=intRange key=key3/
arg0 name=required key=key1/ // How to pass this argument to all the
validtor rules ?
/field
Thanks Erik, this can actually be very
useful. (I haven't tried it yet...)
Puneet Agarwal
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Erik Weber [EMAIL PROTECTED]
07/29/2004 12:44 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
I see that the ActionErrors object is stored as a request attribute
under the key org.apache.struts.action.ERROR.
I would like to set a different CSS class for each td containing a
field that has a property that is keyed in the ActionErrors instance. In
pseudocode:
begin username field;
if
TWIMC
The second Struts Networking in London BOF will take on
Monday 9th, August 2004
At Waxy O'Connors Pub in Picadilly /Leicester Square
starting around 7:15 pm
If you want to come along send me an email off-list.
BTW: Location details are
Theres an open bugzilla ticket requesting this kind of feature:
http://issues.apache.org/bugzilla/show_bug.cgi?id=20784
Haven't really had time to look at it, but it has patches attached.
I also posted an extension to the html:text tag on my web site which
highlights error fields.
Tries, ActionError.properties () Erik? You may need to use a small scriptlet
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 2:40 PM
To: Struts Users Mailing List
Subject: Re: Retrieving specific form validation error messages
This is what I
I have not found validator-1.1.3.jar or struts-1.2.1.jar in the
following repositories:
http://www.apache.org/dist/java-repository/
http://www.ibiblio.org/maven/
Is the another repository I should be looking in?
Yes, I know the are available, without the version number in file name,
from
Hi Puneet,
I was just playing with hiding JSP beneath WEB-INF/ and Modules today.
What you can do is edit your struts-module-config.xml
and as part of the controller you can add the forwardPattern property
e.g. My setup is set-property property=forwardPattern
value=/WEB-INF/jsp$M$P/, so that my
There are two solutions to this problem.
1) Setting contextRelative=true for every forward.
(If you do that, then the path will be intrepreted as context relative
instead of module relative)
2) Using forwardPattern of controller
The default is $M$P
meaning the path is prepended with the prefix
Hello,
I am sorry to say that, what you have given solution, i have tried that , that is
also not working with this.
Any more help please,
Rajeev Lochanam A
On Thu, 29 Jul 2004 Kishore Senji wrote :
There are two solutions to this problem.
1) Setting contextRelative=true for every
Hi,
First of all I'd like to thank the contributors of this mailinglist. I'm
using struts for over 1.5 years now and i always found answers in
archives.
In this mailinglist and in the contrib/el there is often suggested that
the best way to prepare for smooth transition to JSP 2.0 is to use el
bean:define creates a scoped attribute AND a scripting variable, whereas
c:set just created the scoped attribute. In your example you are making
use of the scripting variable feature (as the data is already available as a
scoped attribute).
But, with JSP2, all tags magically become EL aware (I
On Thu, 29 Jul 2004 09:49:51 -0500, Hookom, Jacob
[EMAIL PROTECTED] wrote:
If I'm developing tags for JSP 2.0, then I don't have to explicitly call the
ExpressionEvaluator on an attribute within the tag since I will be receiving
the result of the expression evaluation?
That's correct, as long
You are correct that c:set does not create a scripting variable, so
you can't use the specified identifier in a scriptlet. The question,
though, is why are you still using a scriptlet expression? Why not
use an EL expression instead?
pg:pager maxPageItems=${pageItems}/
or, to avoid needing
On Thu, 29 Jul 2004 15:42:20 +0200, sirhck [EMAIL PROTECTED] wrote:
Hi All,
I need to use struts-faces library with commercial JSF components.
Thouse components
are using own listeners classes. I am not sure what to do to delegate
events to Struts actions
instead of thouse listener
On Thu, 29 Jul 2004 11:35:19 -0500, Nick Heudecker
[EMAIL PROTECTED] wrote:
I want to use the struts-faces library, but the existing articles and
documentation state that Tiles is unsupported. Is that still the case?
I haven't yet had time to dig through the source to answer this for
Because my production environment is still in JSP 1.2.
And it looks like it will be for some time.
In other words I still have to work with tomcat 4.1 but I'm trying to
make as much code possible ready for the upgrade to tomcat 5.
Kris.
-Oorspronkelijk bericht-
Van: Craig McClanahan
You could do something like this
tdhtml:text property=login//tdtd class=errorhtml:errors
property=login//td
tdhtml:password property=password redisplay=false//tdtd
class=errorhtml:errors property=password//td
Thanks,
Kishore Senji.
On Thu, 29 Jul 2004 14:18:25 -0400, Erik Weber [EMAIL
On Fri, 2004-07-30 at 04:07, Johan Wasserman - BCX - Infrastructure
Services wrote:
You're right, it does render the output exactly like in your example.
Only it doesn't help if the HTML output says bean:message key=foo/.
bean:message should do it's job and do the lookup for foo, that doesn't
23 matches
Mail list logo