Take a look at this JIRA issue:
https://issues.apache.org/struts/browse/WW-2132
I'm working on adding JSP 2.0's dynamic attributes functionality to Struts
2.1.
James
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 30, 2007 1:34 AM
To: Struts
Yes. Thats right.
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Benedict
Gesendet: Mittwoch, 29. August 2007 23:05
An: Struts Users Mailing List
Betreff: Re: STRUTS 1.3.8 Validator ist destroying my SessionToken
Are you saying the
Excellent! Interesting history. Hopefully the resistance to dynamic
attributes is now well overtaken by events.
James Holmes wrote:
Take a look at this JIRA issue:
https://issues.apache.org/struts/browse/WW-2132
I'm working on adding JSP 2.0's dynamic attributes functionality to Struts
Pedro Herrera wrote:
What´s the meaning o s:head. In wich cases I use it ??
http://struts.apache.org/2.x/docs/head.html
Basically, the tag will render appropriate HTML for the page's theme to
include resources such as style sheets, javascript and do forth. The
best way to see what it's
Hi, I got a strange validation problem with the list which I retrieved from
an action:
the following form works perfectly fine without using validation,
s:form action=saveClub method=post
s:textfield label=Club name name=club.clubName
value=%{club.clubName}/s:textfield
s:action
FYI,
http://fmpp.sourceforge.net/freemarker/versions_2_3.html
gotten by searching for freemarker +r prefix. Search
for raw once you're there.
d.
--- Dave Newton [EMAIL PROTECTED] wrote:
I'd probably try asking this on a FreeMarker list
since the exception after removing the r came from
How to use enum correctly in s:if test statement.
Currently I am doing:
s:if test=searchType = @[EMAIL PROTECTED]
where SearchType is enum, but this does not work :(
Hi all,
Can someone knows when struts 2.1 version will be released.
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 interdite. Si vous n'etes pas
I would also like to know how to achieve the same functionality in Struts2!
Adrian Ost wrote:
Hi all,
can I still use the logic-taglib in struts 2? or is there any other way
to ask for the correct role?
logic:present role=someRole
... some context
/logic
thanks in
I'm trying struts 2, and using velocity 1.4 and velocity-tools 1.3 (for some
cool stuff like struts-menu). i18n in struts 2 is quite simple and straight
forward. I put struts.custom.i18n.resources = ... in struts.properties,
and it worked perfectly.
However, I couldn't figure out how to do i18n
Hi all,
I've got a problem, and I really don't know how to solve it. I'm using
Liferay Portal 4.2.2 and Struts 2.0.9
I've got 2 portlet in the window. The one above is showing a table of
authors, and clicking one row the bottom portlet shows its detail. Inside
the author's detail there's a
Hi!
The use of maximize only changes the size of the window, it
shouldn't really change the state of your application. The back
button as you describe means restore the window size. It does not
change the window content. If you want to override this, you should
create your own back link, with
In Strut 2, calling any method on a class is directly supported.
Essentially, execute is just the default. We can also specify
another mapping or method to call from a button on a form, meaning
that the same form can submit to different methods on the same class,
or a different mapping. Struts 2
Hi,
I have a struts div-Tag with:
This refreshes a jsp when the refreshSelectedCustomer topic is published. If
this happens the sessionContext Action is called (As far as I understand it)
In the selectedCustomer.jsp I have a href where I call a javascript which
publishes the topic as well as a
I am trying to use continuations with struts 2 on a weblogic server and
so far as I can tell everything is set up properly, however, every time
I try and access a page I get the following error:
Root cause of ServletException.
java.lang.NullPointerException
at
Struts 2 uses a hierarchical approach to validation which could be
used to support a multi-page workflow. (Struts 1 simulates a hierarchy
by using the page property on the ActionForm.) The validation follows
the Java class, not the action mapping. If class2 extends class1, then
when class2 is
Hi I have a question about this s:form validate=true attribute. So when
I put it in s:form it says its only useful with xhtml or ajax themes. Why. I
read the documentation on that thing it says that this is only javascript
thing. What I don't understand is that it still says to have xml file or
Hi all! I need to paginate some things and it would be useful to have the
number of the pages like that:
[first/previous] 1,2,3,_4_, 5, 6 [next/last]
The _4_ is the actual_page.
Yeah, is like the display:table of displaytag but made by myself. I've the
stuff between the [] made, and I only
Struts 2 uses a hierarchical approach to validation which could be
used to support a multi-page workflow. (Struts 1 simulates a hierarchy
by using the page property on the ActionForm.) The validation follows
the Java class, not the action mapping. If class2 extends class1, then
when class2 is
fergunet wrote:
Hi all! I need to paginate some things and it would be useful to have the
number of the pages like that:
[first/previous] 1,2,3,_4_, 5, 6 [next/last]
The _4_ is the actual_page.
Yeah, is like the display:table of displaytag but made by myself. I've the
stuff between the []
No one actually knows. Our releases are driven by peer-review and take
an indeterminate amount of time. We may start rolling test
distributions of Struts 2.1 soon, but it usually takes four to six of
those before we have one ready to distribute to the general public,
and we haven't even done one
Hi does anyone know as to when Tiles2 release will become available. I know
there is beta right now but I was wondering as to first release. Thanks.
--
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]:
Hi does anyone know as to when Tiles2 release will become available. I
know
there is beta right now but I was wondering as to first release. Thanks.
This question should be definitely asked to Tiles 2 mailing list:
I thought the 2 lists were shared.
On 8/30/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]:
Hi does anyone know as to when Tiles2 release will become available. I
know
there is beta right now but I was wondering as to first release. Thanks.
I forgot to say it is the Tiles 2 USERS mailing list (just to be sure :-) )
Antonio
2007/8/30, Antonio Petrelli [EMAIL PROTECTED]:
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]:
Hi does anyone know as to when Tiles2 release will become available. I
know
there is beta right now but I
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]:
I thought the 2 lists were shared.
Nope...
Oops, I missed that you are using Struts 1. I believe that you can
use the format attribute of the bean:write tag:
http://struts.apache.org/1.1/userGuide/struts-bean.html#write to
specify a format string as described on:
http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
Josh
try to make a file download action without opening the file.
I try the showcase file download example. change contentType to
application/x-download in struts.xml
lt;param name=contentTypegt;application/x-downloadlt;/paramgt;
with firefox it works fine. with IE, it still open the gif in browser.
Hi,
I have a problem while passing some data from my JSP to Action action class.
I have a JSP in which I have a text field. Whwn I submit the page, I need to
get the text entered in the JSP into Action. I read in a article that if i
implement ParameterAware interface to my action class and
IE6 displays the image inline because it recognises the extension of the
file in preference to the mime type.
The stream result allows you to set the Content-Disposition header, as
you have already done in your JSP code.
param name=contentDispositionattachment; filename=${fileName}/param
Any idea what event is referring to?
musachy
On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote:
Hi,
I have a struts div-Tag with:
This refreshes a jsp when the refreshSelectedCustomer topic is published. If
this happens the sessionContext Action is called (As far as I understand it)
In the
Shaik,
Assuming you are using Struts1, you need to define your data in a struts
ActionForm class. Make sure that the name of your variable is the same in
the ActionForm as in the jsp control, and then you will be able to access
it using the form object from within the execute method of your
2007/8/30, Musachy Barroso [EMAIL PROTECTED]:
Any idea what event is referring to?
musachy
No not really. How can I find out, which event is used? The dojo.js is not
really human readable...
Hi there!
I'm new to struts and need some help, hope anybody has a clue:
I've got an object DayTimeLocation with strings day, time and location.
In my form I create a collection with initially one of these objects (more to
follow):
public class DayTimeLocationForm extends ActionForm{
Thanks so much. was missing attachment; in param contentDisposition
(both examples in showcase do not have this)
regarding exception in jsp, I just put the streaming stuff to action (return
null result). thats fine.
Thank you very much.
Jeromy Evans - Blue Sky Minds wrote:
IE6 displays
Hi,
I am trying to identify whether a button has been clicked or not in my
jsp.
The way I do this or is trying to do this is to access the request object
and then check in that for the button name. The code is as shown below
The button which was clicked is coded as shown below
s:submit
Well, it is on search.js line 206 ;)
musachy
On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote:
2007/8/30, Musachy Barroso [EMAIL PROTECTED]:
Any idea what event is referring to?
musachy
No not really. How can I find out, which event is used? The dojo.js is not
really human
if validate=true , js function (pure client side) onsubmit is invoked on the
form in xhtml theme ; and in ajax theme it adds and onblur validate() to
every field element and validates it using ajax. Both of these use the rules
defined in your validation xml file.
So setting validate=true is for
2007/8/30, Musachy Barroso [EMAIL PROTECTED]:
Well, it is on search.js line 206 ;)
musachy
Ah, sometimes I'm blind. Firebug hide this info and I didn't take a closer
look at my pastet content :-)
On line 206 is this:
// prevent refreshSelectedCustomer AJAX requests, if IpNbr is empty
Greetings to all,
i am trying to upgrade to struts2.09 but i am getting this error when an
action has validation :
2007-08-30 17:55:23,062 [ERROR] util.DomHelper - Document is invalid: no
grammar found. at (null:1:12)
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
I know that i am replying to myself ;) but the solution is to add :
!DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator
Config 1.0//EN
http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd;
to the top of validators.xml file.
Leonidas
Leonidas Papadakis wrote:
If you need to prevent the request you would need it. Topics have
changed quite a bit between releases, if you are using 2.0.9, then the
topic takes 3 parameters, and it is published before the request,
after the request and when there is an error.
http://struts.apache.org/2.x/docs/ajax-tags.html
Hi guys.
I can't work out via the Struts 2 documentation how to make a radio
button have a separate value and label from a given Map.
I'm trying:
s:radio list=%{options} name=questionOne theme=simple /
Where 'options' is a HashMapInteger, String
What I get out on the JSP is one
Hi Folks
We are using Struts 2.0.6. We have a header.jsp which is included in each
of our jsp pages.
The header is tied to an action class to retrieve a name etc to display (
which changes depending on the login).
However, the problem we are having is the information retrieved in the
--- nmall [EMAIL PROTECTED] wrote:
We are using Struts 2.0.6. We have a header.jsp
which is included in each of our jsp pages.
The header is tied to an action class to retrieve a
name etc to display (which changes depending on the
login).
How is it tied to an action class? How are you
Well as usual, although I spent a couple of hours trying to get it work,
as soon as I post to a mailing list I discover the answer
So here is how I got it to work for future reference.
Created an Object like so:
public class RadioModel
{
private int name;
private String
If you just need access to the Request Attributes, try implementing
RequestAware in your action. If you need access to other, more
Servlet specific, parts of the Request, you'll have tto implement
ServletRequestAware. Similarly for Sessions, if you just need the
attributes, implement
On 8/30/07, afp wrote:
I am trying to identify whether a button has
been clicked or not in my **jsp**.
Emphasis mine.
The real question is why is that being done in the JSP
directly from the request parameters when it would
probably be better to set a flag based on whatever
business logic
Hi guys, I'm having a problem with Struts 1.2 and a IAS environment, the
problem is as follow:
The application use Struts 1.2 and Hibernate 3 and OraclaeAS 10g (10.1.0.2).
The Application works very well in the developer OAS, but doesn't in the
production's OAS (two servers).
The
Use JSTL: ${requestContext.currentSection}.
The same applies for session: ${sessionContext. ...}
Alvaro.
On 8/30/07, Chris Pratt [EMAIL PROTECTED] wrote:
If you just need access to the Request Attributes, try implementing
RequestAware in your action. If you need access to other, more
Hil,
Can someone knows when struts 2.0.10 version will be released.
Herrera
--
View this message in context:
http://www.nabble.com/Struts-2.0.10-release-availlability-tf4355471.html#a12411278
Sent from the Struts - User mailing list archive at Nabble.com.
header is simply a jsp page called header.jsp. There are tabs in the header
page and that is being displayed correctly. This is our header page ( i have
attached header1.jsp)
%@ taglib prefix=s uri=/struts-tags %
html
head http://www.nabble.com/file/p12411297/header1.jsp header1.jsp
I guess I could do that by having a flag for that in the action and then
using that in the jsp but really tat doesn't quite answer the question. In
general how do we access the request or session in the jsp?
Will what I have given below work or what shud I be doing to make it work!
Is it that I
All you're doing is including a JSP via a standard JSP
directive; no action is being executed.
You might want to look at the s:action.../ tag [1].
d.
[1] http://struts.apache.org/2.x/docs/action.html
--- nmall [EMAIL PROTECTED] wrote:
header is simply a jsp page called header.jsp. There
By implementing the interfaces I will have access to Request and session
objects in action class alone or also in the jsp's and that too in struts2
tags only and not using scriptlets?
To make it more clear will
s:property value=#request['abc']/ print xyz if the url for the page
was
That's good, thanks. So I need specify the action tag inside the included
file header.jsp??
Also, we want to simply store and get attributes from the session instead of
executing an action each time for this header. We tried doing
#session.blah but it doesn't work in the header, although it
--- afp [EMAIL PROTECTED] wrote:
[...] but really tat doesn't quite answer the
question. In general how do we access the request or
session in the jsp?
http://struts.apache.org/2.x/docs/ognl.html
Will what I have given below work
Does it work?
or what shud I be doing to make it work!
OK, sorry, I thought you were talking about the action. If you want
at the attributes you can use ${requestScope.attributename} or
${sessionScope.attributename} and if you need to get at the actual
accessors you can use ${pageContext.request.contextPath}
(*Chris*)
On 8/30/07, Dave Newton
Hi,
Is role attribute supported in Struts 2? It was supported in Struts version
1.x. ( I would assume that Struts 2 is backward compatible)
If it is supported how to use it? Is there any example or documentation related
to this.
Thanks,
-Akash
-
--- akash agrawal wrote:
(I would assume that Struts 2 is backward
compatible)
S2 is a *completely* different architecture and has
(essentially) nothing to do with S1.
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Whoops; wrong button.
IIRC a simplistic roles interceptor [1] was added
(possibly even at my request, but it was awhile ago)
which had functionality similar to S1.
d.
[1]
http://struts.apache.org/2.x/docs/roles-interceptor.html
(Doesn't seem to be displaying properly at the moment,
though?)
[...] but really tat doesn't quite answer the
question. In general how do we access the request or
session in the jsp?
http://struts.apache.org/2.x/docs/ognl.html
Tried what is given there and it was not working which was why I put in
the post :(
Will what I have given below work
We're having a problem with Struts2 running under Jrun.
The 'web application class loader' in Jrun is not finding struts.xml in
WEB-INF/classes.
We can put struts.xml in the overall classpath of the Java application
server, but then that means only one per Java app server.
1. Has anyone else
Hi
This error is in Identity.jsp
, which is part of weblogic console application, and not my application,
so i dont have the source of this jsp
On 8/30/07, vamsi [EMAIL PROTECTED] wrote:
Can you look at this
input must be followed by either attribute specifications, or
/.
at
-
np chris!
Is tat using JSTL? I am not using JSTL in my app. How can I get it working
in/using struts2 tags s:tags / ??
Arup
Chris Pratt wrote:
OK, sorry, I thought you were talking about the action. If you want
at the attributes you can use ${requestScope.attributename} or
Dave,
Thanks for the reply. The link you mentioned does not have much detail in it.
Although, How would interceptor would solve the definition of roles information
for each action in an application? If you use this interceptor you mentioned,
where would you put roles information for each
We're working on it. Almost everything is ready to go, and it's basically
down to a matter of rolling the release.
As you may know, all of the plans for upcoming releases, etc. are discussed
openly on the [EMAIL PROTECTED] mailing list.
James
-Original Message-
From: Pedro Herrera
Hi,
Where is DTD/schema for struts.xml located in S2?
I would like to check it DTD to find out what kind of tags are supported by S2.
Thanks,
-Akash
-
Pinpoint customers who are looking for what you sell.
http://struts.apache.org/dtds/struts-2.0.dtd
-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 30, 2007 2:04 PM
To: Struts Users Mailing List
Subject: location of DTD/schema for struts.xml Struts 2.0.9?
Hi,
Where is DTD/schema for struts.xml
The struts.configuration.files property in struts.properties at the
root of your classpath can specify struts configuration files using a
comma separated list, by default this property is set to:
struts.configuration.files=struts-default.xml,struts-plugin.xml,struts.xml
You can change it if you
Pedro Herrera wrote:
Hil,
Can someone knows when struts 2.0.10 version will be released.
To quote Ted's excellent reply to the same question earlier today:
No one actually knows. Our releases are driven by peer-review and take
an indeterminate amount of time. We may start rolling test
Hello kind person,
I have a struts application that was working fine, but when I tried to move it
to another server it started throwing the below error messages. Why is it
trying to pull the DTD remotely? How can I fix?
Thanks for any and all help
Ed
struts-config_1_2.dtd
Aug 30, 2007
Just create a mutator in your action and Struts will populate the
value for you automatically. I use this to set the Role into my base
action
action name=myaction
param name=roleadmin/param
/action
(*Chris*)
On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote:
Hi,
Can someone explain me
Hi,
Thanks for the reply Chris.
Do you mean providing a setter like setRole(String role) or setRoles(String
role) would do?
When would this setter be called? If I define an interceptor, Can I check for
this property inside interceptor before my execute() is called?
Thanks,
-Akash
Chris
Yes, setRole(String role) for my example.
(*Chris*)
On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote:
Hi,
Thanks for the reply Chris.
Do you mean providing a setter like setRole(String role) or setRoles(String
role) would do?
When would this setter be called? If I define an
Chris,
When would this setter be called? Can I access this property inside an
interceptor (custom interceptor/pre-packaged interceptor)? (This would help to
check it before execute is called)
Thanks.
Chris Pratt [EMAIL PROTECTED] wrote: Yes, setRole(String role) for my example.
(*Chris*)
When would this setter be called? Can I access this property inside an
interceptor (custom interceptor/pre-packaged interceptor)? (This would help
to check it before execute is called)
I believe it is called by the ParamInterceptor, so as long as your
interceptor is later in the stack, the
Ted,
Regarding field validations, can you provide any reason why the validwhen
validator is not provided in Struts 2? . I think this is a step backwards
from Struts 1 where we could easily manage conditional validation (validate
fieldb only if fielda fieldc meet some condition)
Also, the
Greetings to all,
can anyone suggest to me please how do i change the velocity file
extension from .vm to .shtml ?
Thank very much
Leonidas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
It looks like the FilterDispatcher supports a config init-parameter as
well. However, I tried setting it to /WEB-INF/struts.xml and it didn't work
for me.
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html
Matt
Zarar Siddiqi wrote:
The
Hey,
Some have the sources .png or any source of the images of the tabbepanel
tab's. I have my applications but the people that I'm working for, want
another color in that tabs... someone made this change before???... is
not something Struts 2 issue, but the problem is people only cares
Mistype on the subject , i mean struts2
Leonidas
Leonidas Papadakis wrote:
Greetings to all,
can anyone suggest to me please how do i change the velocity file
extension from .vm to .shtml ?
Thank very much
Leonidas
-
To
If you find things that are documented to work and don't, please open JIRA
issues and we'll get them fixed.
James
-Original Message-
From: mraible [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 30, 2007 4:37 PM
To: user@struts.apache.org
Subject: Re: Can you specify the name of
Hi guys, I’m having a problem with Struts 1.2 and a IAS environment, the
problem is as follow:
The application use Struts 1.2 and Hibernate 3 and OraclaeAS 10g (10.1.0.2).
The Application works very well in the developer OAS, but doesn't in the
production's OAS (two servers).
The problems
On 8/30/07, j alex [EMAIL PROTECTED] wrote:
Regarding field validations, can you provide any reason why the validwhen
validator is not provided in Struts 2? . I think this is a step backwards
from Struts 1 where we could easily manage conditional validation (validate
fieldb only if fielda
I'm using using struts 2.0.9 with springframework 2.0.6 and i want to
use tiles as a template engine. Now in struts1 i would use
org.apache.struts.tiles.xmlDefinition.I18nFactorySet to initialize the
org.springframework.web.servlet.view.tiles.TilesConfigurer but there's
no such class in
Hi Manuel,
You'll need to extract the images directory into the same path where your
custom templateCssPath is, then change the images.
For example, I had a tabbed panel like such:
s:tabbedPanel id=NcrTabbedPanel name=NcrTabbedPanel
selectedTab=%{currentTab} theme=ajax requiredposition=left
Just add the tile listener in the web.xml file of your application and set a
tiles result type in the struts.xml file.
On 8/31/07, Eugen Stoianovici [EMAIL PROTECTED] wrote:
I'm using using struts 2.0.9 with springframework 2.0.6 and i want to
use tiles as a template engine. Now in struts1 i
wouldn't this affect the spring listener?
George Dadulescu wrote:
Just add the tile listener in the web.xml file of your application and set a
tiles result type in the struts.xml file.
On 8/31/07, Eugen Stoianovici [EMAIL PROTECTED] wrote:
I'm using using struts 2.0.9 with springframework
Hayrol,
You've posted this problem about 4 times now. :-) If no one is responding,
it won't help a fifth time, I am sorry to say. Let's continue tracking this
in JIRA.
https://issues.apache.org/struts/browse/STR-3089
Paul
On 8/30/07, Hayrol Reyes Mejía [EMAIL PROTECTED] wrote:
Hi guys, I'm
My recommendation is to remove the use of modules. You can do this instead:
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-a.xml,/WEB-INF/struts-b.xml/param-value
/init-param
Paul
This is only possible if your input attribute species another action.
Paul
On 8/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Yes. Thats right.
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Paul Benedict
Gesendet: Mittwoch, 29.
Sounds like the problem is WebLogic, not Struts. You should bug them if they
have a problem with using Struts.
Paul
On 8/30/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
Hi
This error is in Identity.jsp
, which is part of weblogic console application, and not my application,
so i dont have
Hi,
I understand the problem. I am using the s:url action=xyzClick here
/s:url for making the action and I dont have form defined in my JSP. If
we use like this, we may not receive the parameters in the current form to
be transfered to our Action class by using ParameterAware features. Hence,
94 matches
Mail list logo