Is it valid to, within the scope if a s:if tag, to:
a) Call non getter/setter methods on a bean on the stack
b) Reference some unrelated class' public static field (without a
getter method)
To give the situation some context, I'm attempting to do something similar
to the following
Would:
not work?
-Original Message-
From: Brian Relph [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 2:33 PM
To: Struts Users Mailing List
Subject: s:submit and cssStyle
Hello,
I am trying to add a cssStyle to my button - that includes an
:
) no-repeat;" action="canc
Edit your struts.xml to reflect the following:
http://struts.apache.org/dtds/struts-2.0.dtd";>
...
...
The behavior should be more as you expect after that. You will lose things
like the label property on textfields though. In that case you just type it
outside like:
...
U
I've been working with struts2 for about 2 months and so far I've been using
the preparable interface to populate any data the resulting page wants to
display. I've used the execute method to do non-visible work and determine a
result (which controls flow).
I'm wondering if this is the intended
Can you show your struts xml, calling java action, and resulting jsp code?
I've noticed error messages like that whenever ANYTHING was wrong on a page
with a select box -- completely independent of anything to do with the
select box. So I think whatever you changed MAY have broken something else
an
Is there any plugin support for eclipse that can help validate struts2
configuration?
So if I have a struts.xml mapping like:
...
Then some build-time plugin might check and see the
userAccounts.action.LoginUserAction class does not exist
Or perhaps a struts tag in a JSP might look like:
...
My relevant mapped action look like:
/jsp/admin/internalOrders/viewLineItem.jsp
GetLineItem
/admin/internalOrders
true
${id}
The 'GetLineItem' action works correctly when given an 'id' parameter. No
exce
I've added a custom taglib in my project. One of these tags does some logic
to generate a series of links. Given one target URL, I want to create X
links to that URL with one changed parameter. If the given URL has
parameters, I want them to all be preserved except for one named
'pageNumber' which
Is it possible to get back 2D arrays from a form?
I want to be able to have a table with some number of rows. Each row has a
'grouping' field which the user can enter a number in. Each row will also
have a dynamic 'foo' column which will have a button to add additional 'foo'
values. Some javasc
cript. That could potentially entail a
large number of changes, though...
Or, another JavaScript solution, one that doesn't entail switching to
any kind of AJAX, would be to have a script that concatenates all of one
row's values into a single string, and then have a single-dimensional
a
Reading http://struts.apache.org/2.x/docs/ajax-tags.html, this claims
(reasonably) that I must add <%@ taglib prefix="sx" uri="/struts-dojo-tags"
%> in order to use the sx ajax tags. but it appears that the
/struts-dojo-tags uri is not available to me. Eclipse doesn't see it, and I
don't see such a
My JSP resembles:
...
...
...
...
...
...
My action resembles:
...
public class ApproveItemsAction extends ActionSupport {
private Integer[] approved;
private Integer[] itemsPresent;
eckboxes yields 'Input'
result
Michael Gagnon wrote:
> My JSP resembles:
>
>
>
>
>
>status="stat" id="next">
>
> ...
>required="false"/>
>
When I attempt to use more than 1 s:action tag on a page, I just get back a
blank page - no error, no console output, just nothing.
My page just looks like:
If I just use one action (eith
I've had a similar problem in the past where a co-worker pulling the project
from source control would see action mapping not found errors -- which
baffled me because I didn't get them. On deleting my target folder and
re-warring, tomcat then picked up the errors. This was because eclipse
project=>
You don't have any action mappings (that I see), so there's nothing for
these interceptors to apply to. Add the following to your web.xml:
struts-cleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
stru
I'm not sure that makes sense. At the end, the client is just getting some
html with a regular 'option' tag in it. The best you can do is set pass some
unique id for the key and then fetch the object back when the form is
submitted with the unique key
-Original Message-
From: akash agrawal
17 matches
Mail list logo