Phil404 wrote:
I don't think this is the problem since if I view source the generate code
says:
--img
src='/surveytortoise-main/piechart.action?visual=10amp;auditory=15amp;kinesthetic=20'
/
So, the code seems to be correct. Why are these parameters not being set by
Struts2? Please help!
Better a late replay than none at all :)
Is JAAS the best way to go, or there are better alternates?
'JAAS' encompasses a lot of stuff, so it depends what you are trying to
do...
Let me assume for the minute that you are talking about
login/authentication...
In this case, it depends
Please, can anybody help me? I know it´s not pretty code, but it´s just
a test to know what´s not working ok...
Pablo Vázquez Blázquez escribió:
Hello,
I have a very strange problem. I can´t specify if it is an Struts 2
problem, a Javascript problem, a Dojo problem,...
The scenario is
2007/9/22, Arunkumar Balasubramanian [EMAIL PROTECTED]:
While I do this, I am not getting part page after tiles insert. The page
remains cutted off and nothing displays after tiles:insert part.
Usually this happens when an exception happened during the rendering of the
page.
Check if you
OK..thanks so much
cilquirm wrote:
You can also map each method to a name in your struts.xml by using the
method attribute of the action tag.
action name=test class=mypackage.MyAction method=test/
Ganebnyi Genadii wrote:
Requesting action like
Hello!
I have a problem when i want to start my project in NetBeans he show me
next thing:
Starting server Bundled Tomcat (5.5.17)
Starting of Tomcat failed, the server port 8084 is already in use.
C:\Program
Guillaume,
I don't see a Food getter and setter on your action.
Guillaume Bilodeau on 23/09/07 18:48, wrote:
Hi all,
I'm quite new to Struts2 and so far I love what I see. Currently I'm having
a problem trying to map a checkboxlist based on a set of enums to a model
object nested in my
I'm not sure what you want to do with the FreemarkerManager instance
but if you're looking to do things like build results
programmatically, my posting where I answered my own question on the
Freemarker User list might be helpful:
http://www.nabble.com/forum/ViewPost.jtp?post=12740736framed=y
If
On 9/23/07, Musachy Barroso [EMAIL PROTECTED] wrote:
Both will get submitted when the form is posted.
... only if the value is manually selected. If the autocompleter is
preloaded with an option selected, it's key will not be submitted.
https://issues.apache.org/struts/browse/WW-2126
Alvaro
I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp
body).
In my Tiles1+Struts1 application the way I achieved this was like:
1) Create a dummy welcome.jsp file
2) Have a WelcomeServlet to listnen to that page
3) Make the servlet forward the request to a welcome.do action
2007/9/24, wild_oscar [EMAIL PROTECTED]:
I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp
body).
In my Tiles1+Struts1 application the way I achieved this was like:
1) Create a dummy welcome.jsp file
2) Have a WelcomeServlet to listnen to that page
3) Make the
Which is, in fact, easier!
Thank you, Antonio!
Off-topic: everytime I read your name I remember the brothers from Heroes!
Antonio Petrelli-3 wrote:
2007/9/24, wild_oscar [EMAIL PROTECTED]:
I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp
body).
In my
In the web app I'm currently developing (which uses JAAS authentication),
I've done the following:
1) Create an HttpServletRequestWrapper to override the isUserInRole method
2) Create an AnnotationRoles class to annotate my actions if they require
particular roles
3) Create an
2007/9/24, wild_oscar [EMAIL PROTECTED]:
Off-topic: everytime I read your name I remember the brothers from
Heroes!
LOL! I have no relatives with my surname in USA. Anyway I think I can fly
:-P
Antonio
Hi, you are welcome, i am glad it works for you too.
About it being a bug... it is strange noone else (except us) is writing in
this topic so i am not sure if it is a bug or not but i don't know what else
it could be, i tried and tried again and i don't think my code has something
wrong but...
I know a few developers who are fundamentally broken. I'm suggesting the S2
bean creation happens if(model==null) in the same fashion it does
ordinarily. Otherwise, perhaps an exception should be thrown? What I
witnessed was voodoo logic.
Scott
On 9/23/07, Dave Newton [EMAIL PROTECTED] wrote:
I am porting a WebWork application over to Struts2. I have added a
dependency to struts2-core to my Maven POM.
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-core/artifactId
version2.0.9/version
/dependency
In my struts.xml I extend struts-default. When I try and start my
The problem is that the container is out of memory. There are a number of
different ways to either up the memory for the container, but it might be
easier to just kill the embedded tomcat process and then redeploy the app
inside of netbeans.
Thanks,
Cory
On 9/24/07, kushi [EMAIL PROTECTED]
Hi Kushi,
Try to change the server port to 8085 or another number.
Select Runtime Servers right button and select properties.
On tab Connection Change the Server Port and restart the Bundled
Tomcat or try to start.
Vinicius
kushi wrote:
Hello!
I have a problem when i want to start my
Cory D. Wiles [EMAIL PROTECTED] wrote:
On 9/24/07, kushi [EMAIL PROTECTED] wrote:
Starting of Tomcat failed, the server port 8084 is
already in use.
The problem is that the container is out of memory.
I could be way off-base here (not using NetBeans or
TC6) but isn't it likely that there's
--- [EMAIL PROTECTED] wrote:
I'm suggesting the S2 bean creation happens
if (model == null) in the same fashion it does
ordinarily. Otherwise, perhaps an exception should
be thrown?
I'd suggest filing a JIRA enhancement request; seems
like a reasonable idea.
d.
Hi Adam,
The action has a
SimpleFoodCreationRequest getModel()
method which should expose the request object to the JSP. However you are
right that it doesn't have any setter, but is it really necessary since all
bindings are done on the nested request object?
Thanks,
GB
Adam Hardy-3
It is a dojo/browser thing. All we can do is done already, if you set
cache=true Struts 2 will use a custom build where only one file
(which will be cached) will be used.
musachy
On 9/24/07, Don Brown [EMAIL PROTECTED] wrote:
Oh damn, why is that? Cache is critical here.
Don
On 9/24/07,
--- Guillaume Bilodeau [EMAIL PROTECTED] wrote:
The action has a SimpleFoodCreationRequest
getModel()
method which should expose the request object to
the JSP.
The Action code you posted does not implement
ModelDriven; was that a deliberate omission?
Action:
public class
Yes it was deliberate. I'm not sure I see the advantages of flattening my
action *and* my request object, for now I'd rather keep this nested as it
currently is. Of course I'll change my mind if given the right
counter-arguments :)
newton.dave wrote:
--- Guillaume Bilodeau [EMAIL PROTECTED]
--- Guillaume Bilodeau [EMAIL PROTECTED] wrote:
Yes it was deliberate. I'm not sure I see the
advantages of flattening my action *and* my request
object, for now I'd rather keep this nested as it
currently is. Of course I'll change my mind if
given the right counter-arguments :)
The most
You can find the key features of acegi here -
http://www.acegisecurity.org/.
I see the advantages as being able to customize the authentication and
authorization from within the scope of the web application, and not
external configuration via an app server. But then, this also depends
on
This is the fundamental way the value stack works - if it can't evaluate
an expression at the topmost level, it starts to work it's way down
until the expression can be evaluated.
I guess my question really is why are you trying to set value on a null
object? It sounds to be like you need
Ok, as I said I'm new to Struts2 so maybe I made some wrong assumptions.
Please correct me if I'm wrong:
1- I'm using food.name as the text field key - not as its name - so a
localized label will be shown next to it.
2- I thought the action itself was pushed on the value stack and that one
could
Whoops!
Guillaume Bilodeau wrote:
1- I'm using food.name as the text field key - not
as its name - so a localized label will be shown
next
to it.
You're right; I didn't even see that.
2- I thought the action itself was pushed on the
value stack and that one could reference and bind
Hey no problem, I'm kind of sluggish also :) It's true that I could use a
different method name to expose the nested object, it does bring some
confusion.
Somehow the group converter seems to work fine, so I don't understand why
the nutrients doesn't. I'm knee-deep in OGNL code to see exactly
Hello list.
Is anybody successfully using struts-menu with Struts2?
Thank you.
--
Robi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi there,
i had to do the following things in order to add full velocity support.
The issue is that in struts2 even if you have to parse a velocity file,
it has to be a result of an action. So in order to be able to parse
velocity files even if they are not result of an action :
Add the
Yes.
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL PROTECTED]
Sent: 24 September 2007 15:24
To: Struts Users Mailing List
Subject: Struts 2 and struts-menu
Hello list.
Is anybody successfully using struts-menu with Struts2?
Thank you.
--
Robi
Hi Al.
Thank you for your time.
Glad to hear that ;) ..So here are a few more targeted questions:
1) how do you integrate? Using Spring or MenuContextListener or else?
2) is there a way to modify the menu links or add/set parameters to the
menu links at runtime?
Thank you again.
Al Sutton
1) I use the MenuContextListener
2) I use static menus, but I believe there is something in the struts-menu
FAQ that will help you.
Regards,
Al.
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL PROTECTED]
Sent: 24 September 2007 15:52
To: Struts Users Mailing List
Subject: Re:
Hi, I set an attribute in the request in the action code, and I want to
use it in the struts.xml (see below). How can I reference it at the
place marked by ***?
action name=actionname class=classname
result type=redirect
param
Great. Thank you again, Al. :)
Best regards.
--
Robi
Al Sutton wrote:
1) I use the MenuContextListener
2) I use static menus, but I believe there is something in the struts-menu
FAQ that will help you.
Regards,
Al.
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL
Xibin Liu wrote:
Hi, I set an attribute in the request in the action
code, and I want to use it in the struts.xml (see
below). How can I reference it at the place marked
by
***?
action name=actionname class=classname
result type=redirect
param name=location***/param
param
Hi Leon,
Sorry I think I wasn't clear. I do not wish to use Velocity, all my
views are Freemarker or JSP based. I have found that it seems to be the
Struts2 Sitemesh plugin that causes problems. As soon as I declare it
then I get NoClassDefFound problems until I manually add the Velocity
Mark Menard's excellent Struts 2 Cookbook shows you how to do this.
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
If you've never seen his Cookbook, I definitely recommend taking a
look. It's got some great tips.
On Sep 24, 2007, at 11:02 AM, Xibin Liu wrote:
Hi, I set
Hi all,
I would like to build the struts 2.1 dev version.
Can someone tells where I could find it.
thank in advance.
Meissa
L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut
etre tenu responsable de son contenu. Toute utilisation ou diffusion non
autorisee est
[EMAIL PROTECTED] wrote:
I would like to build the struts 2.1 dev version.
Can someone tells where I could find it.
http://people.apache.org/builds/struts/nightlies/2.x/
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
is the following correct?
if i add a actionErrorMessage in one Action and call in the jsp-File
another action, that the execute-method of the second Action is not
executed?
greetings
Patrick
--
Diplom-Informatiker Patrick Hesse
E-Mail: [EMAIL PROTECTED]
Web: http://www.patrick-hesse.de
I think the OP's issue is that there's a difference
between XWork object creation (it will create an
Action property if configured to) and ModelDriven
(won't).
d.
--- Ian Roughley [EMAIL PROTECTED] wrote:
This is the fundamental way the value stack works -
if it can't evaluate
an expression
Yikes, what if getModel() is doing actual work, you're
calling it twice for no apparent reason. Wouldn't it be
significantly safer to:
public String intercept(ActionInvocation invocation) throws
Exception {
Object action = invocation.getAction();
if (action instanceof
I created a property for the attribute, then reference it by $propName,
and it works. Thanks Dave!
Also thanks Jim for pointing me to the struts 2 cookbook. That is a
great resource!
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, September 24, 2007 11:08
I agree that MenuContextListener is the best way to use Struts Menu in a
non-Struts 1.x environment.
Matt
Lead (and only) developer on Struts Menu ;-)
Al Sutton-4 wrote:
1) I use the MenuContextListener
2) I use static menus, but I believe there is something in the struts-menu
FAQ that
Starting server Bundled Tomcat (5.5.17)
Starting of Tomcat failed, the server port 8084 is already in use.
...
please give me suggestions,how i can run my program.
If there are errors when running tomcat (eg. not enough PermGen space / Out of
Memory) netbeans 5.5.x cannot control it anymore.
Hi all,
New to Struts2 (2.0.9) and testing out the Struts2 + Spring 2 + JPA +
AJAX tutorial found here:
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
I got it to work just fine out of the box but then I tried to add
localization to it by adding the intereceptor-ref tag
--- [EMAIL PROTECTED] wrote:
s:textfield id=firstName
label=%{getText('firstname')}
name=person.firstName/
And the only thing that comes up is 'firstname' when
in fact the value should be 'First Name' as it is in
the appropriate properties file which resides in
Hi Dave,
The action is a Spring bean (implementing
com.opensymphony.xwork2.Preparable) and the struts.objectFactory constant
is set to spring. Is there a way to have Spring use ActionSupport for
the execution of these classes so that getText becomes available? Also,
would Struts2 AJAX Themes
--- [EMAIL PROTECTED] wrote:
The action is a Spring bean (implementing
com.opensymphony.xwork2.Preparable) and the
struts.objectFactory constant is set to spring. Is
there a way to have Spring use ActionSupport for
the execution of these classes so that getText
becomes available?
Your
I remember a J1 session on WebWork a couple years back where a command window
was opened and commands were being entered to set/get values from the value
stack as pages were transitioned. Does anyone know if this utility is still
available in S2? It would sure be handy to have visual access to
http://struts.apache.org/2.x/docs/debugginginterceptor.html
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.html
--- stanlick [EMAIL PROTECTED] wrote:
I remember a J1 session on WebWork a couple years
back where a command window
Scott,
Are you looking for the debug console?
Try adding ?debug=console to your request.
-Wes
-Original Message-
From: stanlick [mailto:[EMAIL PROTECTED]
Sent: Monday, September 24, 2007 2:55 PM
To: user@struts.apache.org
Subject: OGNL runtime viewer
I remember a J1
Hi,
Using a Spring JDBC Template in struts 2 is fairly simple. You can take a
look at this article,
http://cwiki.apache.org/WW/spring.html
and also,
Part-3 Ch.11 of Spring Reference manual.
I have used it and I like it because you really don't have to worry about
DB
by the way, there is a new option to the debug interceptor. If you set
debug=browser (by default the root object will be #context, which can
be changed setting object=value) you will be able to browse the
values in the context. (again, 2.1 only)
musachy
On 9/24/07, Wesley Wannemacher [EMAIL
OK, I've extended my action class with ActionSupport...still does not
work. Does that mean I can't have my action class be a simple POJO wired
using Spring and use Struts2 i18n features?
I'm also curious as to why the addition of interceptor-ref name=i18n/
in the action mapping would cause the
What is considered the best practice for accessing request parameters inside
of an action?
For example if I have a URL: steptwo.action?previousaction=index.action then
how do I access previous action?
Thanks,
Cory
--- [EMAIL PROTECTED] wrote:
OK, I've extended my action class with
ActionSupport...still does not work.
Not sure why that wouldn't work, and can't test now :/
I'd double-check my property files first, though.
Does that mean I can't have my action class be a
simple POJO wired using Spring
Make sure that the class that you have mapped to 'steptwo' has a
getter/setter for previousaction
Then, in your execute method (or whichever method you may have mapped in
your struts.xml file), you should be able to retrieve the values because
the setter(s) are called beforehand.
There are a
I am writing a Breadcrumbs utility and have a question about how to easily
get the current request in a format that could be wrapped in an URL. Is
there a quick way to do this given a TilesRequestContext reference?
Scott
--
View this message in context:
Thank you for the quick response.
What is the purpose of implementing the Parameters Interceptor then?
http://struts.apache.org/2.x/docs/how-can-we-access-request-parameters-passed-into-an-action.html
Map parameters = this.getParameters();
Thanks,
Cory
On 9/24/07, Wesley Wannemacher [EMAIL
We are getting warm! I am now seeing the Welcome to the OGNL console! window
but do not see any way to enter commands. Come to think of it, I'm not sure
what command I would send it if it were input capable!
Scott
newton.dave wrote:
I haven't used it, so I could be wrong, but I would imagine that there
are instances where you don't want to have a getter/setter for each
parameter. Such as when you may be creating parameters on the fly based
on some other criteria. Most of the time, you should be able to stick to
the
That sounds pretty logical.
Thanks for the tip.
-Cory
On 9/24/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:
I haven't used it, so I could be wrong, but I would imagine that there
are instances where you don't want to have a getter/setter for each
parameter. Such as when you may be
I think I found the source of this issue. The struts-plugin.xml for the
JFreeChart plugin is as follows:
struts
package name=jfreechart-default
result-types
result-type name=chart
class=org.apache.struts2.dispatcher.ChartResult
150
Hi,
I have two select boxes and I was wondering if anyone has a working
example of populating a second select box from the selection of the
first using AJAX?
Thanks in advance!
-Grant
Notice Regarding Confidentiality
This email, including any and all attachments, (this Email) is
Hello,
May I know how to give style such as border color, bgcolor to
s:optiontransferselect, s:form tags please?
Thanks a lot!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
in the older versions 1.0 - 1.2.8 (i think), there was a security
issue with the cancel key request parameter being able to be spoofed.
I'm not sure I understand how this works, so please correct me if i'm
wrong. Say you have a page with a single field and submit, if you set
the cancel
Is there a struts2 non-OGNL equivalent to the old html:img taglib?
Or do I have to use c:url with pure HTML?
c:url var=folder_shut value=/images/folder_shut.png/
img src=${folder_shut} alt=alt text/
-
To unsubscribe, e-mail:
There is one example on the showcase application, on the
ajax-autocompleter section.
regards
musachy
On 9/24/07, Hodgins, Grant [EMAIL PROTECTED] wrote:
Hi,
I have two select boxes and I was wondering if anyone has a working
example of populating a second select box from the selection of
http://www.omnytex.com/articles/xhrstruts/
M-
- Original Message -
From: Hodgins, Grant [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, September 24, 2007 4:38 PM
Subject: [S2] - How to populate select box contents from initial selection?
Hi,
I have
That is correct!
On 9/24/07, Dave Newton [EMAIL PROTECTED] wrote:
I think the OP's issue is that there's a difference
between XWork object creation (it will create an
Action property if configured to) and ModelDriven
(won't).
d.
--- Ian Roughley [EMAIL PROTECTED] wrote:
This is the
Went live today with a Japanese translation of the site. Thanks to the
struts and tiles developers for making it so easy!
I have some questions though:
1. I have found that using struts tags in error.jsp or error404.jsp in
tomcat does not work because the value stack is not initialized so I
Hi,
I am using struts1.3.8
I just want when the user click in a link (SurveyAction.do) , he will be
presented with a form :
ID Title -- O smal O medium O hight
ID Title -- O smal O medium O hight
That's sounds great Musachy, where would I put this setting?
Also, what version of Struts is this available in?
It would be great if it was mentioned in the Performance Tuning page.
http://cwiki.apache.org/WW/performance-tuning.html
Thanks,
Jason
-Original Message-
From: Musachy
--- A. Lotfi [EMAIL PROTECTED] wrote:
1) How to create the data radio buttons in the
database table?
Are you asking what SQL to use to create the column
that represents the radio button choice?
d.
-
To unsubscribe, e-mail:
what I am asking is :
ID is a number.
Title is a string.
How about the group radio buttons ?
Dave Newton [EMAIL PROTECTED] wrote:
--- A. Lotfi wrote:
1) How to create the data radio buttons in the
database table?
Are you asking what SQL to use to create the column
that
Hmm...more info can be found here: http://dojo.jot.com/FAQ#Performance
I wonder if we should require the cache=true flag when not in devmode,
or at least throw all sorts of warnings in the logs. We should do
everything possible to help the user avoid huge performance problems,
and I'd certainly
Where is this cache=true flag documented? Does it require a
manually-build dojo file? If so, could we automate that somehow? We
could do something like keep track of what dojo tags have been used,
then build a new single dojo file as needed.
Don
On 9/24/07, Musachy Barroso [EMAIL PROTECTED]
+1
-Original Message-
From: Don Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, September 24, 2007 9:39 PM
To: Struts Users Mailing List
Subject: Re: [s2] Struts head tag KILLS ( 10s) page load time
Hmm...more info can be found here: http://dojo.jot.com/FAQ#Performance
I wonder if we
--- A. Lotfi [EMAIL PROTECTED] wrote:
what I am asking is :
ID is a number.
Title is a string.
How about the group radio buttons ?
Whatever you want them to be, and it can depend on
what DB you're using.
d.
-
To
Yes, you need to use pure HTML.
You can use jsp tag file to create something similar to html:img (this is
what i did).
Adam Hardy-3 wrote:
Is there a struts2 non-OGNL equivalent to the old html:img taglib?
Or do I have to use c:url with pure HTML?
c:url var=folder_shut
You can set the attribute cssClass, cssStyle, doubleCssClass,
doubleCssStyle which is equivalent to html class and style attributes
to control the style.
Example:
style
.mystyle {
background-color: #00F;
}
/style
s:form cssStyle=border: 1px solid #F00 cssClass=mystyle
Emi Lu-2 wrote:
The cache attribute is available on 2.1, and is documented on the head tag:
http://struts.apache.org/2.x/docs/dojo-head.html
We could definitely make it a default, which it isn't now.
The issue to automate the custom profile build is here:
https://issues.apache.org/struts/browse/WW-2131
right
Oh, ok, so this is something that we can do once and every user
doesn't have to do it manually for their application? Then yes, let's
make the cache flag true by default. If the user wants to trim down
the profile, they can, but at least they'll get way better performance
out of the box.
Don
88 matches
Mail list logo