Hi,
I have the following code...
Question
Here, 'Questions' is a class that contains 'questionID' as a field. And this
returns 'List' over here. When i am iter
Hi,
I understand the problem. I am using the Click here
for making the action and I dont have 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,
keep the fields with in tags
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
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, 2
My recommendation is to remove the use of modules. You can do this instead:
config/WEB-INF/struts-a.xml,/WEB-INF/struts-b.xml
Paul
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,
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
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 struts
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:
The TabContainer.css is in the includes directory:
web/includes/TabContainer.css
The tabbed panel border colour
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 struts
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
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 occ
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 struts.
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 u
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 about
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
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
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 valida
> 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, t
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*)
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 i
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 Pratt
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
admin
(*Chris*)
On 8/30/07, akash agrawal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can someone explain me the usage of element under element?
> How
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
Hi,
Can someone explain me the usage of element under element? How
to access it property inside java action?
Is this a valid config?
xyz, abc1, abc2
How to access roles property in an action class?
Thanks,
-Akash
-
Shape Yahoo! in your own image.
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
distr
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 l
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 locate
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.
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 [mailt
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 action
np chris!
Is tat using JSTL? I am not using JSTL in my app. How can I get it working
in/using struts2 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
> ${sessionScope.att
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
> "/>".
> >
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 exp
> [...] 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 wor
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?)
--
--- 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 additi
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
-
Pinpoin
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 <[EMAI
--- 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 w
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. but it doesn't work in the header, although it works i
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
print "xyz" if the url for the page
was *.action?abc=xyz
Is the syntax that I used
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 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
> are tabs
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
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" %>
http://www.nabble.com/file/p12411297/header1.jsp header1.jsp
Header
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.
---
I´ve submitted a jira(improvement) to use validation with simple theme. I´ve
suggested use alert instead.
Herrera
strutstwouser wrote:
>
> 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() t
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
> Se
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, 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
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 SessionAware
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 answer
--- 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
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
action
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:
Where 'options' is a HashMap
What I get out on the JSP is one radio button only, with the following
text as the label:
{1=Yes, 2=No, 3
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
I know that i am replying to myself ;) but the solution is to add :
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:
Greetings to all,
i am trying to upgrade to struts2.09 but i am get
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.
a
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 e
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 i
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
> r
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
The piece of
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 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{
Col
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...
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 st
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)
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.
attachment; filename=${fileName}
This disposition will ensure the file
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 overr
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
application/x-download
with firefox it works fine. with IE, it still open the gif in browser.
anyon
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
2007/8/30, Pavel Sapozhnikov <[EMAIL PROTECTED]>:
>
> I thought the 2 lists were shared.
Nope...
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 righ
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 relea
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:
http://tiles.apache.org
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]
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 y
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 [] made
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 valid
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 need
Hi I have a question about this 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
validate() method. But
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 valid
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
org.apache.struts2.continuations.C
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 c
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!
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,
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 li
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 i18
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?
>
>... some context
>
>
> thanks in advance
>
>
> -
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 destinata
How to use enum correctly in test statement.
Currently I am doing:
where SearchType is enum, but this does not work :(
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
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,
..
..
but after adding ClubAction-validation.xml, I got this error while
submitting the form: tag 'select', fiel
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 going
94 matches
Mail list logo