hi
i have used struts 2.0.11.2 and creating menu using yui(not metter what)
when i put
something like
li class=yuimenuitem s:url action= Add Attribute /li
manully in jsp page it works fine and go to print appropriate action like
AddAttribute.do
but when i use to print
2008/10/14 928572663 [EMAIL PROTECTED]:
s:submit type='image'
s:param name=src
s:url value=tiles:insertAttribute name='image'/ /
/s:param
/s:submit
You can't nest a JSP tag into another.
If image is a string, then you can do this:
tiles:importAttribute name=image /
s:submit
2008/10/14 Néstor Boscán [EMAIL PROTECTED]:
I'm using the validator frame in Struts 2.0.11.2. When the validator
framework fails I need to call the input method to load some combo data. But
the validator framework automatically calls the input result. If I chain
that input result with the
Actually, you will have te create 5 different aliases in order to map
the method called in your struts.xml. The alias is the name of the
action in this file.
regards
Sébastien
Néstor Boscán a écrit :
Yes but that's my point. If I have an Action with 5 methods with 5 different
validations I
2008/10/15 Néstor Boscán [EMAIL PROTECTED]:
Yes but that's my point. If I have an Action with 5 methods with 5 different
validations I have to create 5 different action aliases just to make the
validation framework happy, makes no sense to me.
You can try to use Visitor Validator [1] when you
Hi,all
My application is running on struts2.1.2 with rest plugin and codebehind. The
code is like Struts2.1.2-rest-showcase.war. But when I want to add my own
Interceptors, something broken.
I add a new package extends struts-default and re-defined the
interceptor-stack as below:
Hello Struts Friends:
I was using the display tag but I have a problem. If the list is empty the
display tag would show anything there, but I want to show the footer always
not matter if I have data or not. Is possible to do that only with the
display tag?
Milo
it's very simple, just as below:
package name=newpackage extends=struts-default namespace=/newpackage
interceptors
interceptor name=paginationSupportInterceptor
class=cn.openmotel.lorenzo.web.struts2.PaginationSupportInterceptor /
interceptor-stack
But the prepare method will be called if a validation error happens or not.
If a validation error happens I want to load the combo data, but if not I
don't need to load that data.
Regards,
Néstor Boscán
On Wed, Oct 15, 2008 at 2:09 AM, Lukasz Lenart [EMAIL PROTECTED]
wrote:
2008/10/14 Néstor
--- On Wed, 10/15/08, Néstor Boscán wrote:
But the prepare method will be called if a validation error
happens or not. If a validation error happens I want to load the combo
data, but if not I don't need to load that data.
You can also use prepareXxx, where Xxx is the method name.
But if you
Hi
Is there an easy way to say 'if validation errors exist', in OGNL? Tried
a few things but not hit on the right syntax yet
e.g. if %{errorFieldNames.size() 0} etc etc
Thanks
Richard Gundersen
As a responsible corporate citizen, London Scottish Bank plc asks you to
consider the
Thanks for the tip, I was using Firefox 3.0.3 when the actions were getting
executed twice. I am not seeing this behavior in IE 7.0.5730.11 .
--
View this message in context:
http://www.nabble.com/Struts-2-actions-executing-twice-tp19983781p19995859.html
Sent from the Struts - User mailing
Doh, got it
%{errors.size}
Silly me :)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Gundersen, Richard [mailto:[EMAIL PROTECTED]
Sent:
agreed-
also could you please post struts-plugin.xml value assigned to
defaultParentPackage e.g.
constant name=struts.configuration.classpath.defaultParentPackage
value=rest-default /
since the PackagePolicy RetentionPolicy defaults to RUNTIME defined as
Annotations are to be recorded in the
if you publish the topic and then the listen will listen for the published topic
There are some good examples located here
http://struts.apache.org/2.0.11.2/docs/struts-2-spring-2-jpa-ajax.html
Martin
__
Disclaimer and confidentiality note
Hi,
I am trying to set date using a datetimepicker component. It works fine as a
standalone but if I have a tabbed panel and use notifyTopics with the submit
button, the date is not being set.
html
head
titleAdd Property/title
link href=s:url value=/css/main.css/ rel=stylesheet
type=text/css/
Can you post the definition of your newpackage package?
musachy
On Wed, Oct 15, 2008 at 9:58 AM, Haulyn Jason [EMAIL PROTECTED] wrote:
Hi,all
My application is running on struts2.1.2 with rest plugin and codebehind.
The code is like Struts2.1.2-rest-showcase.war. But when I want to add my
haven't use this plug before.
but I think Spring-plug-in, would be better!
It's less config!
On Wed, Oct 15, 2008 at 11:04 AM, Anoop [EMAIL PROTECTED] wrote:
Hi,
We are looking forward to integrating struts with hibernate in our web
application project. Could you guide us on how to to
What do you mean by application breaks? Could it be that codebehind is not
picking up the default interceptor (I doubt it anyway)?
musachy
On Wed, Oct 15, 2008 at 10:12 AM, Haulyn Jason [EMAIL PROTECTED] wrote:
it's very simple, just as below:
package name=newpackage
I'm learning struts2 through the struts2-showcase application example. From the
Person Manager functionality I've learned how to send multiples values from
client to server using collections to manage these values, but now I'd like to
know how to validate these values using struts2 validation.
On Wednesday 15 October 2008 18:24:20 wskent wrote:
Thanks for the tip, I was using Firefox 3.0.3 when the actions were getting
executed twice. I am not seeing this behavior in IE 7.0.5730.11 .
I'm glad that it's not just me that has seen this. It does'nt happen all the
time, and only certain
Thanks Antonio for the reply.
When I changed the code to do this I am now getting a JSP compile error:
Static attribute must be a String literal, its illegal to specify an
expression.
s:url value=${image_url} /
^---^
I then commented out this line and
On Wednesday 15 October 2008 01:54:50 wskent wrote:
I am using struts 2.0.11 in JBoss 4.2 and with a debugger I am seeing the
action executing twice. The first time the values submitted from the form
show up as expected. In the second execution the values are all null. I am
also seeing this
Hi,
I have an iteration that return users from an action in a jsp table, I have
1356 rows, it makes the page very long, is there any way to make the table
scrollable inside the table.
I am using struts1.2
Thanks, your help is appreciated.
Hi Roger,
do You have empty img tag on this jsp pages, a friend of mine found
out that this might be the case. Ff downloads the page and then
downloads the image data from the same address.
Best greetings,
Pawel Wielgus.
On 15/10/2008, Roger [EMAIL PROTECTED] wrote:
On Wednesday 15 October 2008
http://www.dreamincode.net/code/snippet132.htm
Scrollable is fine, but the jsp response will remain large. You way
want to consider using the displaytag to paginate the resultset.
-Original Message-
From: A. Lotfi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2008 3:30 PM
To:
I am consistently seeing this behavior using Struts 2.0.11 in JBoss 4.2 with
Firefox 3.0.3. Including on a real simple prototype application with no
images on the page.
--
View this message in context:
http://www.nabble.com/Struts-2-actions-executing-twice-tp19983781p20001159.html
Sent from the
This behavior is consistent in Firefox with JavaScript off or on.
wskent wrote:
I am consistently seeing this behavior using Struts 2.0.11 in JBoss 4.2
with Firefox 3.0.3. Including on a real simple prototype application with
no images on the page.
--
View this message in context:
Hi,
I am using struts 2 in my current project.
How can I write the action dynamically in my JSP form tag?
Here is the example: This case, I have my form action is in session.
s:form name=sampleForm action=
I have tried using below, which didn't work:
s:form name=openForm
I'm sure I've just got some little something not set up right or out of
place, but I can't seem to get validation working.
I have a class com.allureglobal.harvey.controller.CustomerController
that extends ActionSupport. There is a corresponding
CustomerController-validation.xml file located
A scrollable div?
--- On Wed, 10/15/08, A. Lotfi [EMAIL PROTECTED] wrote:
From: A. Lotfi [EMAIL PROTECTED]
Subject: How to scroll a table in struts ???
To: Struts Users Mailing List user@struts.apache.org
Date: Wednesday, October 15, 2008, 3:29 PM
Hi,
I have an iteration that
--- On Wed, 10/15/08, David C. Hicks wrote:
[...] Validation is on my interceptor stack.
Is workflow? Do you know that *validation* doesn't occur, or that it just
doesn't return to input on validation errors?
Without any further information it'll be tough to help.
Dave
I can't really tell if validation is even being called.
If by is workflow you mean is it in the interceptor stack, Yes. It is
in the stack immediately following validation.
I'll be happy to provide whatever information you need. I would be
considered a newbie. So, I'm not really sure what
--- On Wed, 10/15/08, David C. Hicks wrote:
I can't really tell if validation is even being called.
If by is workflow you mean is it in the interceptor stack,
Yes. It is in the stack immediately following validation.
I'll be happy to provide whatever information you need.
I would be
This is happening with JavaScript turned off or on. It is also happening in
Tomcat 6. This behavior is not happening in IE 7 on either Tomcat 6 or JBoss
4.2 . I am also seeing this in a Struts 2.1.2 application running in JBoss
4.2 with the Firefox 3.0.3 browser. So far this looks like Firefox is
--- On Wed, 10/15/08, wskent wrote:
This is happening with JavaScript turned off or on. It is
also happening in Tomcat 6. This behavior is not happening
in IE 7 on either Tomcat 6 or JBoss 4.2 . I am also seeing
this in a Struts 2.1.2 application running in JBoss 4.2
with the Firefox 3.0.3
We are not overriding the validate() method of ActionSupport. I
double-checked to be sure of that.
CustomerController (is an extension of a couple of base classes but
eventually extends ActionSupport):
public class CustomerController extends AbstractCrudControllerCustomer {
private static
Oh geez. All of the indentation got waxed when I sent this. Sorry about
that. It looked a lot neater when I composed it.
David C. Hicks wrote:
We are not overriding the validate() method of ActionSupport. I
double-checked to be sure of that.
CustomerController (is an extension of a couple of
What theme are you using? The presence of a bunch of table-oriented tags would
lead me to believe you're using the simple theme, which doesn't report
validation errors.
--- On Wed, 10/15/08, David C. Hicks [EMAIL PROTECTED] wrote:
From: David C. Hicks [EMAIL PROTECTED]
Subject: Re:
We are using the simple theme primarily, but even if the page won't
report errors shouldn't the action fail if it is validating and I give
it bad data on purpose? We believe it's simply not executing the
validation. Our main layout has a s:actionerror/ tag that should get
any reported
--- On Wed, 10/15/08, David C. Hicks wrote:
We are using the simple theme primarily, but even if the page won't
report errors shouldn't the action fail if it is validating and I give
it bad data on purpose?
Yes, but you never actually said specifically what was or wasn't happening, so
I had
Thanks Martin,
My Interceptor is very simple, just including one line: log.debug( it works).
When I debug my application, I can see it works in console. The problem is
that :struts tell me I didn't defind input and result.
I am interesting as the code:constant
Thanks Musachy:
My application breaks means that something wrong occurs.
I debug my application and the interceptor invoked, but when it execute into my
OrdersController, struts tell me I didn't define result and input. But I have
defined @Result.
---
Hey Dave,
Sorry - I didn't mean to be deliberately vague. I'm kind of stumbling
through this to help the team. The real Struts genius of the bunch is
wrapped up with other problems. I was just trying to help.
If by zero-config you're referring to our network, that would be No.
We're on
Don't mistake my curtness for disgust ;)
--- On Wed, 10/15/08, David C. Hicks wrote:
If by zero-config you're referring to our network, that would be
No. We're on a fairly standard DHCP/DNS local network here
at the office. If you mean something else, then I'm afraid I'm
blonde again. :-)
ok, maybe I found the problems. Now, what about the follows:
I extend my package from struts-default, it does not work, but when I extend my
package from rest-default, it works. So, I want to know the details of the
interceptorStack of rest-default package. Or is there a way to find reference?
Hi,
i faced this issue a lot while developing some sample application in which
my action was getting called twice,
but i was using javascript for submitting the action and when i removed
javascript for submitting form the problem just disappears
On Thu, Oct 16, 2008 at 3:07 AM, Dave Newton
How were you submitting via JavaScript? I was just working on an app,
and forgot (face-palm-style) that you do have to 'return false;' in an
onclick handler for a form submission button... It's an old rule, I
know, but if you forget, then your JS code will submit the form and your
form will also
well i did what you have mntioned in ur post but still the problem was there
action was exectued twice so i removed the javascript and it worked
still i will look again what i did in order to solve this problem...
On Thu, Oct 16, 2008 at 9:38 AM, Wes Wannemacher [EMAIL PROTECTED] wrote:
How
49 matches
Mail list logo