In your web.xml, you told the system to send ALL requests to the Struts
Filter processor, so it's trying to map EVERYTHING including *.css, *.js
etc. You might want to try explicitly mapping those things to the
dispatcher before mapping the struts filter, that should make them bypass
struts as
Hi All,
In my development, I put a form bean into session scope, when I access
the page in Firefox 3, it is retaining the values of this form bean
even if I log out and login as a different user, when I just wanted to
retain the values in the same login session. This is not the case if I
2008/8/4 Alexis Abdel [EMAIL PROTECTED]:
That exeption in english it is:
The server found an error,and cant fill this requirement.
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16
Can you post the complete stack trace, especially the cause?
Antonio
P.S. I speak also
Hi konference
when I use this:
s:url id=url action=HelloWorld namespace=/example
s:param name=id value=%{'java'} /
/s:url
s:a href=%{url} link/s:a
s:form action=%{url}
Hello all
Say I have a struts2 form:
s:form action=Subscribe_* validate=true
s:textfield key=something/
/s:form
The javascript validation generated for this form is unfortunately
invalid. Firefox complains about the * character.
Is there any way to get around this without turning to server
AFAIK, wildcard mapping has sense only inside struts.xml.
In your form, you must specify exactly which action will be called,
like Subscribe_dosomething
2008/8/5 Markus Stauffer [EMAIL PROTECTED]:
Hello all
Say I have a struts2 form:
s:form action=Subscribe_* validate=true
s:textfield
I have this in my form:
s:form action=Subscription_*
s:textfield key=something/
s:submit value=%{'Submit'} method=execute/
s:submit value=%{'Cancel'} method=cancel/
/s:form
It works like a charm. But if i turn on client side validation there
are warnings/errors.
On 8/5/08, Gabriel
Thanks bro! I generally agree with you, but was curious about the hard/fast
rule. I discovered the dispatcher actually processes only registered
extensions and unfortunately a zero length string was in the list alongside
action. I changed my experimental resource mapping to .fred and all is
You don't need to generate an s:url to construct the action of the form.
The s:form tag has its own action and namespace attributes.
If you need to send extra parameters, like id=java, you could instead
use a s:hidden tag inside the form.
2008/8/5 Kibo [EMAIL PROTECTED]:
Hi konference
when I
Chris Pratt 写道:
In your web.xml, you told the system to send ALL requests to the
Struts Filter processor, so it's trying to map EVERYTHING including
*.css, *.js etc. You might want to try explicitly mapping those things
to the dispatcher before mapping the struts filter, that should make
them
dispatcher will try to find an action mapping for the URL. If it cannot,
it processes the request as a static resource. As you have already
discovered, even though it is mapped in web.xml as /* it will actually
consult with your registered extension(s) in its logic.
Scott
2008/8/5 Chris Pratt
Consider chaining over redirect. However, this does sort of hard wire your
flow!
On Tue, Aug 5, 2008 at 5:33 AM, holod [EMAIL PROTECTED] wrote:
1.I have action PrepareDictionaryAction
it has field String dictionaryId and appropriate getter and setter.
dictionaryid comes from previous jsp.
I have set up a very simple test app that is just spring and struts2. It
works without a problem.
In my main application I have been using a
ClassPathXmlApplicationContext(springBeansDefinitionFile) in order to get
references to my beans. When I comment this out and add my spring-config
file to
It was very silly question! Thanks, result type=chain solves the problem!
stanlick wrote:
Consider chaining over redirect. However, this does sort of hard wire
your
flow!
On Tue, Aug 5, 2008 at 5:33 AM, holod [EMAIL PROTECTED] wrote:
1.I have action PrepareDictionaryAction
it has
1.I have action PrepareDictionaryAction
it has field String dictionaryId and appropriate getter and setter.
dictionaryid comes from previous jsp. (enter.jsp)
action sends user to dictionary.jsp
2.dictionary jsp has hidden field s:hidden name=dictionaryId/. So I will
not be lost.
3.then through
I can't see any reference anywhere that suggests that putting a wildcard in
the form's action attribute will work. Even if it does work with client
side validation turned off, I get the impression -- and I could be wrong --
that you've stumbled into a weird corner case that just happens to work.
thanks, i will give it a try...
On 8/5/08, Jim Kiley [EMAIL PROTECTED] wrote:
I can't see any reference anywhere that suggests that putting a wildcard in
the form's action attribute will work. Even if it does work with client
side validation turned off, I get the impression -- and I could be
I noticed that you have this:
context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/applicationContext-security.xml/param-value
/context-param
but the prosoc-spring-beans.xml is not listed, so Spring won't know to
pick it up. I did see that
It looks like I can use:
WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean(myBean);
in order to get already deployed beans. That clear up the error I was
getting when I started this thread. I am getting another error but I will
spend some time on it first before
Hi,
i am working on portlets and wanted to get the struts sample mentioned
working.
It does work so far (changes to web.xml + dependencies) and it runs with pluto
1.1.5 (tomcat 6.0.16).
However, i can't get the validation example working - reading the docs it
should do - but it won't.
I am not
I didn't see your reply before I sent my last post.
You were absolutely correct and I must say that, looking through that mass
of config, well spotted.
Thanks for your help Bard.
--
View this message in context:
thanks!!!
Gabriel Belingueres-2 wrote:
s:property
2008/8/4 xianwinwin [EMAIL PROTECTED]:
hi there,
say I have an object client and it has firstName and lastName. I wish to
write this on the jsp page:
Dear Mr. XX welcome to
the XX should be substitute with firstName and
You can pass parameters on a redirectAction, I do it all the time
result type=redirectAction
PrepareDictionary
/admin
${dictionaryId}
/result
holod wrote:
1.I have action PrepareDictionaryAction
it has field String dictionaryId and appropriate getter and setter.
dictionaryid
Would really appreciate any help with the following (sent yesterday).
Just a pointer to some good docs would be great
-
Basic question sorry (looked all over but can't find the answer)
1) When validation fails for my 'username' textfield, the error message
is
People, I'm really confused. I'm still haven't found any solution.
Any ideas?
netslow wrote:
I hello experts. I'm quite new in struts2, and I have a question.
I have an action ShowReports which returns two lists of reports: reports
and badReports.
I would like to show these reports bud I
Did you tested with 'not in' instead of '!'?
2008/8/5 netslow [EMAIL PROTECTED]:
People, I'm really confused. I'm still haven't found any solution.
Any ideas?
netslow wrote:
I hello experts. I'm quite new in struts2, and I have a question.
I have an action ShowReports which returns two
Hi, I've searched but maybe I don't have used the right term to this, I'd to
know if is possible to show a Tree, with some specific treenodes already
opened (or expanded) onload of a page in Struts 2 (stable version).
Thanks in advance.
Jack Stuard
1) You can create a new theme and change the look and feel of the form
and of course where the field errors will be displayed. You can create
individual template Freemarker scripts for the textfield tag too.
2) IIRC, this javascript validation bug was resolved in the 2.1.x branch.
2008/8/5
Dear Al,
O.K. You suggest that I have multiple classes in one package/namespace, like
this:
package name=somePackafe namespace=/myNamespace
extends=struts-default
action name=load method=execute class=FirstActionClass
...
/action
...
on August 05, 2008 8:14 AM, doahh [EMAIL PROTECTED] wrote:
I didn't see your reply before I sent my last post.
You were absolutely correct and I must say that, looking
through that mass of config, well spotted.
Thanks for your help Bard.
Terrific!!!
Brad Cupit
Louisiana State University -
Nice one - thanks for the tips Gabriel, much appreciated.
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]
If I don't use a delay the wait.jsp is displayed on my input and success
results.
Because I don't want to display the wait.jsp on my input result I'm using a
delay.
If I use a delay (any length of time) the wait.jsp never displays.
Any ideas would be appreciated! Thank you.
action
nvm - works now, was a packaging issue, the xml file was not in the proper
location.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That will just be a
completely
Hi get a problem with the caption parameter of this example, it is sent and
found by the MultiPartRequest Handler, but it is not set by the
ParametersInterceptor; look at the stacktrace:
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Found item upload
Am Dienstag, 5. August 2008 18:18:51 schrieb Torsten Krah:
Does look like a bug, is it?
https://issues.apache.org/struts/browse/WW-2464
May this be related to this bug?
Can anyone tell me what is/was the fix? Can i use the latestet GA release and
get this working (without patching)?
--
Bitte
More like;
package name=somePackage namespace=/myNamespace extends=struts-default
action name=load method=load
class=FirstObjectManager.../action
action name=save method=save
class=FirstObjectManager.../action
action name=load method=load
Hello,
See if this helps you.
I have a form with remote DIV which displays chart after user clicks on
submit.
Trick here is to generate chart object, store it in session and display it
in separate JSP. Remove the form part if you want to display just the
dynamic-DIV using Chart image.
Thanks Al.
But in this way, how I'll now which load is for which class when defining a
link ?
--
Regards, Milan
Al Sutton wrote:
More like;
package name=somePackage namespace=/myNamespace
extends=struts-default
action name=load method=load
class=FirstObjectManager.../action
You can change the action name to something more explicit so instead of
just load, save, load, save, you could have firstObjectLoad,
firstObjectSave,
You may want to look up RESTful URLs to get some inspiration.
Al.
Milan Milanovic wrote:
Thanks Al.
But in this way, how I'll now which
Sorry, my response got munged by nabble, the param tags disappeared.
So pretend I have angle brackets where you see square brackets below:
[result type=redirectAction]
[param name=actionName]PrepareDictionary[/param]
[param name=namespace]/admin[/param]
[param
I was able to update the href and formId via JavaScript and DOJO as
follows:
dojo.widget.byId('divId').href = 'myUrl';
dojo.widget.byId('divId').formId = 'myFormId';
This works fine as long as the form itself was not loaded infot the DIV
(divId). However, if myFormId is located in divId and
Hi All,
I'm getting below value in req.responseText
{list:{com.beans.ComplaintDO:{first__name:Sharath,last__name:Karnati}}}
which I'm passing for JSON
jsonObject=eval( (+ req.responseText +) );
How to read 'first__name' value from jsonObject?
Thanks,
Sharath.
--- On
jsonObject.list[com.beans.ComplaintDO][first__name]
Not related to struts in anyway btw.
musachy
On Tue, Aug 5, 2008 at 5:09 PM, sharath karnati [EMAIL PROTECTED] wrote:
Hi All,
I'm getting below value in req.responseText
Is Struts 2.1.x still bound to DOJO?
--- On Tue, 8/5/08, [EMAIL PROTECTED] wrote:
Is Struts 2.1.x still bound to DOJO?
S2 Ajax/Dojo is a plugin.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is Struts 2.1.x still bound to DOJO?
It isn't - DOJO is available as a plugin since 2.1.x
But there is no possibility to use the AJAX theme without DOJO right now.
There was an interesting discussion at struts-devel:
-
ya, i want to know how to create different module. this is because my current
work need to do that.
can anybody tell me how to create multiple struts configuration file??
Thanks.
--
View this message in context:
Haulyn R. Jason wrote:
In case it is a, I would try the following settings:
struts.action.extension=,,action
2.If I use Evans' way, it looks worked well but just need a ...Struts
do not have a solution for these?
Thanks
I thought this was supported by this
48 matches
Mail list logo