I'm sorry but I meant includeParams=none. I wrote it correctly in the code
but I posted it wrong.
The result is the same, params are included in the url.
The code is:
s:url id=en action=showAdminPage includeParams=none
s:param name=request_localeen_US/s:param
hi,
I have just bumped into the same logging issue as others have. I
basically get tons of this:
WARNING: Could not find property [theme]
Feb 15, 2008 9:53:06 AM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
My setup is:
- Struts 2.1.x built from trunk
- I import only
2008/2/15, Giovanni Azua [EMAIL PROTECTED]:
My setup is:
- Struts 2.1.x built from trunk
- I import only commons.logging.jar and not log4j (is not allowed).
Well, if you don't use Log4J, then Commons Logging defaults to JDK
1.4logger. This link may help you:
Hello, I've to use Saxon 8 within a Struts 2 application but I'm having the
following exception:
Feb 15, 2008 10:02:25 AM CET Error HTTP BEA-101165 Could not load
user defined filter in web.xml:
org.apache.struts2.dispatcher.FilterDispatcher.
Class: net.sf.saxon.event.ResultWrapper
File:
Hi Laurie,
And thanks for your quick answer! Here are my comments.
I tried that first, changing the default encoding (in struts.xml) to utf-8.
That works fine, in java and in our web application. The problem is our
Sybase database which is configured to ISO-8859-1. And as our JDBC driver
Thanks Dave --
You really are good at exploring the idiosyncratic realms! Since one should
not have to crawl around in the bowels of a framework to discover why
straightforward coding does not, I would propose that plug-ins shipped with
the core work according to the
Hello,
As I wasn't able to find this out at the moment, I'm posting my question here :
Would it be possible, within Struts2 tags, to evaluate a (String)
property which contains the OGNL expression referring to an other
property??
Example :
s:set name=testValue value=%{12} /
Could you put the tricky deep dive code in your action and use simple
OGNL expressions on your pages? I find when web pages start looking like
myObj.someSubList(X).someSubMap[Y](Z).subObj.fieldName I am writing complex
code in the *wrong* place. Remember what the web page is for...
Of course the JSP if for prensentation.
But this kind of complex OGNL expression is computed as each
iteration of multiple s:iterator tags (that's why I put some X/Y/Z
variables, each resulting of a %{#someStatus.index} expression).
In fact, the myObj is exposed by the Action class through
On Fri, Feb 15, 2008 at 9:46 AM, Paranoid_Fabio [EMAIL PROTECTED] wrote:
I'm sorry but I meant includeParams=none. I wrote it correctly in the code
but I posted it wrong.
The result is the same, params are included in the url.
Which url(s) are talking about now ?
If, as said above, it's
If the object graph is too deep to easily code to in the web page, perhaps
you could pull up the low level lists with a method at the top of your
graph? I understand the frustration with verbose evaluations to get a
simple String! Let's suppose you have
Country---State---City---Street---Listing
Well...
Enough if it would only be for a presentation purpose, and as said I
already have use this : the aforementioned multiple s:iterator
tags.
But when you have, let's say, about 50 s:textfield, each
corresponding with a single
myObj.someSubList(X).someSubMap[Y](Z).subObj
or
Yes. Shortly after I sent this message I added it in. Now I'm having
another problem. The contents of the tabbedPanel/tabbedPanel tag of
the page being decorated is being replaced with the contents of the first
html tag in the decorator.
Jeromy Evans - Blue Sky Minds wrote:
Is it
Hi all,
I am facing a particular problem, and I didn't find help on the web so I'm
turning myself to you.
I use in my Struts 2 application the UI tag s:optiontransferselect. The
parameters work fine and everything's displayed correctly on the screen.
Nevertheless, the buttons just don't work.
Hello,
Do the tag is in a div loaded in AJAX ?
If you load the tag s:optiontransferselect in a ajax div, js will not be
included.
In this case try with this : script language=javascript
src=./struts/optiontransferselect.js/script
Julien
-Message d'origine-
De : [EMAIL PROTECTED]
Hi,
The tag actually was in a div loaded in AJAX, and thanks to you it now
works just fine !
Thanks a lot !
Matthieu
Internet
[EMAIL PROTECTED]
15/02/2008 15:23
Veuillez répondre à
user@struts.apache.org
Pour
user@struts.apache.org
cc
Objet
RE: Javascript issue encountered with
Currently searching, I found something that might be related : it's a
security fix about recursive OGNL parsing
http://struts.apache.org/2.x/docs/s2-001.html (related to WebWork bug WW-2030).
As I can read:
*As of XWork 2.0.4, the OGNL parsing is changed so that it is not recursive*
... is my
I think you'll find this happens will all the result types and not just
the chart result. If you have additional info in the result config as
parameters, it will try to set is on the result type, fail with an
exception, and then set it correctly on the action.
As to a resolution... as both
I have a couple of questions regarding the preparable interceptor:
1. By implementing the preparable interface alone I can have my prepare()
method called before my action. Great, no problem.
But If I want to utilize multiple prepare methods, e.g. prepareInput(),
prepareCreate(), etc.. that
OK, understood. Did you try what I advised you?
To make it clear, what is the JSP code of the other links/actions..?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm talking about the current url and the other urls next to the switch
locale call.
1) i call myAction and the url=.../myAction.action
2)I click the english flag. The code executed here is the one i posted:
s:url id=en action=showAdminPage includeParams=none
s:param
Actually when OGNL fails to locate a setXXX(String) on the result when
encountering result parm${width} it fails with
2008-02-15 09:17:25,991ERROR [http-8080-2] (
DefaultActionInvocation.java:createResult:198) - There was an exception
while instantiating the result of type
--- [EMAIL PROTECTED] wrote:
I would propose that plug-ins shipped with the core work according to the
documentationhttp://struts.apache.org/2.x/docs/result-configuration.html.
[...]
I am willing to help if necessary and eligible.
File a JIRA and include a patch.
For completeness, the link
My mistake, I was thinking of a similar problem where I needed to pass a
static param to the next action being invoked. In this case, the
parameter had to be declared in the result stanza, but was not intended
for the result type. We also didn't want it to be noise on the action.
In this
Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the
following exception during server-startup.( when I run Resin 3.1.3 -with out
internet access).
My Server starts successfully without any Struts issues if I've internet
access.
I checked for all the DTDs/XSDs TLD files which
--- [EMAIL PROTECTED] wrote:
I think if dynamic parameters are supported in the mappings,
they should be supported whether the sample of documentation
utilizes them or not.
It isn't the mappings that support dynamic parameters. It's the result
implementations.
What you are trying to say
I am going to work on the bundled JFreeChart plug-in so it will behave
according to the user declaration. Before I begint, I would like to have a
model plug-in to compare against. In the meantime, what do you guys think
should be expected from a plug-in?
1. Logging
2. Profiling
3.
[EMAIL PROTECTED] wrote:
I think if dynamic parameters are supported in the mappings, they should be
supported whether the sample of documentation utilizes them or not. Do you
agree that bundled plug-ins should pass a baseline compatibility test?
It sounds like a reasonable set of patches
I think if dynamic parameters are supported in the mappings, they should be
supported whether the sample of documentation utilizes them or not. Do you
agree that bundled plug-ins should pass a baseline compatibility test? You
can respond without consideration of volunteering your own time! I
While in real life you actually *do* catch more flies with vinegar than
honey, it's suggested that when dealing with actual people you follow the
*spirit* of maxims such as this, necessitating the need to occasionally
ignore any underlying untruths. Your current tactic is sub-optimal.
What... did
Dale Newfield wrote:
It sounds like a reasonable set of patches could be made to xwork
instead. If parse were made a result attribute (rather than a
parameter), then the framework could be modified to conditionally do the
parsing before setting values on the result (rather than the result
Struts 1.1..
How would I display validation messages different than other standard
messages that I want to display? I'm using a common messages header,
but I'd like to modify it so that I could display errors differently.
It probably has to do with how I'm saving messages...
For example for
I like this idea *more*! I'll write the JIRA on this plug-in and include a
suitable fix for the glaring oversights.
On Fri, Feb 15, 2008 at 10:30 AM, Dale Newfield [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I think if dynamic parameters are supported in the mappings, they should
be
Haroon Rasheed wrote:
Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the
following exception during server-startup.( when I run Resin 3.1.3 -with out
internet access).
My Server starts successfully without any Struts issues if I've internet
access.
I checked for all the
ravi_eze wrote:
hi,
i have a form which holds a textfield (name:username). I need to wrap this
username into an object user and insert it into a map as the value object
for the key 'field0'.
Action class:
User user; //with setters and getters.
MapString, User map = new LinkedHashMap .., ..
jpiser wrote:
I have a couple of questions regarding the preparable interceptor:
1. By implementing the preparable interface alone I can have my prepare()
method called before my action. Great, no problem.
But If I want to utilize multiple prepare methods, e.g. prepareInput(),
Jeremy's post is the best HOWTO I've seen... There's also the source
code for all the existing tags which you can use as reference material.
L.
lbastil wrote:
Is there any complete Howto or Tutorial right now on this issue?
Should be really of interest ...
Thank you,
Basti
Jeromy Evans -
SOLVED!
By adding the following to decorators.xml.
excludes
pattern/struts/dojo/*/pattern
pattern/struts/ajax/*/pattern
pattern/struts/simple/*/pattern
/excludes
daveck wrote:
sitemesh is taking the content from the first pair of tags in the main.jsp
(my
Thank you Jeramy!
I tried to use the cssStyle for a while and came up with this:
s:radio cssStyle={display: block;} label=Group
name=groupSelect
list=groups/
the result came up with a 'twist' the name-of-group comes after the radio
button
image --
Hello. I've the following problem I'm stuck with:
A tabbed panel with some divs:
s:tabbedPanel id=upload_options
s:url id=mu action=ManualContentUpload/
s:div id=one
key=ContentUploadMain.Option.1 theme=ajax
jpiser wrote:
I am new to Struts 2 and if anyone can help me out I would greatly appreciate
it.
I am populating a select box with a list of job titles. After posting the
form I want to the list to remember the previous selection. (Ridiculously
simple stuff right?) But, I am missing something
Hello,
Refering to http://struts.apache.org/2.x/docs/type-conversion.html ,
I'm currently trying to make Type Conversion working on a really
simple example. And unfortunately, nothing's working. Below are the
sources.
Could someone please tell what I'm doing wrong (I suspect something
with the
Struts only differentiates the two message types, so you would have to
pick one of your three categories and arrange for those messages to be
stored under a different key. You'd then need to use something other
than the html:messages tag to display them, since that tag only knows
about the two
xianwinwin wrote:
Thank you Jeramy!
I tried to use the cssStyle for a while and came up with this:
s:radio cssStyle={display: block;} label=Group name=groupSelect
list=groups/
Unfortunately the the cssStyle is applied to the input, not to the label
as well. As you're using a
Dave Newton wrote:
--- Jeromy Evans [EMAIL PROTECTED] wrote:
Unfortunately the the cssStyle is applied to the input, not to the label
as well.
On this note I'm wondering if anybody has any desire for the default theme to
have things like label styles, an id on the tr... (which I
--- Jeromy Evans [EMAIL PROTECTED] wrote:
Unfortunately the the cssStyle is applied to the input, not to the label
as well.
On this note I'm wondering if anybody has any desire for the default theme to
have things like label styles, an id on the tr... (which I need for
hiding/showing etc)
Been, there done that. Anything out there with a real example?
-Ryan
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 4:23 PM
To: Struts Users Mailing List
Subject: Re: s:select / and AJAX
start here
Hi,
I am using struts1.1 for my application.
I want to show some links in tree view on JSP page.
How can i do that in JSP pages?
Is there any predefined tag for that?
If possible can any one send me a sample code.
Naveen
Hello,
I seriously doubt it is actually really working like presented in the
Struts doc.
As explained in a previous email today (entitled Unable to make Type
Conversion work in Struts2), I'm currently facing a problem with this
Type Conversion in a very *simple* example...
Greets,
Maxx
49 matches
Mail list logo