2007/7/10, Dave Newton <[EMAIL PROTECTED]>:
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote:
> Is there a good tutorial for the Tiles plugin
> in struts 2?
Not yet; I was going to do that but was waiting for
Tiles 2 to settle in a bit more then I got
sidetracked.
Dave, exactly what are you wait
I tried your suggestions but still the ccsStyle doesn't change the checkbox
label color.
My checkbox is created using an interator and is display into a table.
I tried changing the or the style but nothing
changes.
Please other suggestions! Thanks.
DNewfield wrote:
>
> TonyD wrote:
>> I have
Ken, others,
now for the definitive answer:
There is one instance per interceptor ref, thus interceptor instances
being unique within the scope they are referenced in.
Example:
barfoobar
/index.jsp
ba
Hi All,
I am waiting for your valuable suggestions. Can any one help me in
this
Thanks
Ravi
-Original Message-
From: Jaladanki, Ravi
Sent: Monday, July 09, 2007 5:05 PM
To: user@struts.apache.org
Subject: Help needed in Auto complete tag in Struts2
Hi All,
I want to use the
L.S.,
I'm building a forms-based web application. Most of the times, the data
that was filled in to the form needs to be send into Apache Servicemix
for further processing, so it is best stored in XML format. Is there a
way to use an XML document as the source of data for a Struts 2 form?
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the object,
which has been defined by id in logic:iterate?
Kind regards,
Andreas Hartmann
"Jetzt Handy
Thanks Musachy, I'll try the Dojo forums.
Do you know if the tabbed panels are entirely third party, ie were they
incorporated into S2 without changes from an Ajax or Dojo project?
I was also wondering why would the Dojo forum would be more appropriate than
an Ajax forum?
Thanks a lot for your
Neil:
Your should extend package tiles-default and use tiles result type, as
following:
tiles.definition
Package tiles-default was defined in struts2-tiles-plugin.jar, plz check the
struts-plugin.xml config file.
Best wishes!
Crazyreal
-邮件原件-
发件人:
climbingrose wrote:
The other thing I want to comment on is the use of Dojo as Ajax theme. I
don't have much experience with Dojo apart from a few hours playing around
with it. However, even with the latest version (0.9), Dojo just seems to be
to heavy weight for most purposes. I mean if you onl
Dave:
Thank you for the response.
I am not sure how to tell a struts action to call
a tiles layout.
I added the tiles jars to my lib directory and
then I added the listener to my web.xml:
org.apache.struts2.tiles.StrutsTilesListener
Now, lets take my action for the home page.
I have t
If you want to write portable javascript, learn the language, or at
least learn what makes the language quirky. If you want to do that very
quickly, watch the videos referred to here:
http://jroller.com/page/TedHusted?entry=crockford_clips
-Dale
--
Hi all,
I've been developing Struts 2 webapp for nearly a year now and have a great
deal of experience with it. Personally, the architecture of Struts 2 is much
cleaner than its predecessor. However, recently I converted one of my Struts
2 pages into Servlet + JSP solution and it turns out that S
The red colour doesn't show up in your email Hari, can you highlight the
problem lines in another way?
I normally use document.getElementById("name") which works in most browsers.
The other format document.ChallengeQuestionForm.year might not work in some
browsers.
Instead, give the year field
--- Big Stick <[EMAIL PROTECTED]> wrote:
> I always thought a stack implied levels! Am I
> strange to think maybe the stack search should
> consider this capability?
I think you and Musachy have the right idea with an
#action (or whatever; I'd actually go for something
quicker to type) rather tha
I always thought a stack implied levels! Am I strange to think maybe the stack
search should consider this capability?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I doubt, the reason is, before struts 2, we developed
all portlets using struts-bridge, there the
functionality works fine same container, Due to this
reason I dont think this is a portal container bug.
It looks to me for some reason for previously
minimized portlets in render method it gives as
'
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote:
> Is there a good tutorial for the Tiles plugin
> in struts 2?
Not yet; I was going to do that but was waiting for
Tiles 2 to settle in a bit more then I got
sidetracked.
> I am not seeing anything that gives me enough
> to move forward.
At what point
--- [EMAIL PROTECTED] wrote:
> ... CRAZY!
... STACK!
d.
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invi
The session object is wrapped by a SessionMap, so every time you do a put or
remove, the appropriate underlying method on the session is called.
So, in a nutshell, no, nothing to worry about.
Like most of struts2, it just works :-)
-a
Hoying, Ken-2 wrote:
>
> I am currently utilizing the Se
Hello,
I am trying to configure my struts application to listen to request
without .action or .do
I think it has to do something with the struts.mapper.class but I cannot
seem to make it work, I have tried several approaches but I cannot get
rid of the .action or .do without mapping everything
Hi,
Can anyone tell me the freemarker equivalent of this (in particular
the list with map literal syntax):
I've tried many, many different variations and I'm getting nowhere.
I do NOT understand the difference in attribute syntax in the UI
tags between jsp and freemarker.
Here are a few varia
You can try this,
set the theme of your form to css_xhtml .
If you have any css classe, you can just call them within form elements
like .e.g.
Leena
On 7/9/07, Dale Newfield <[EMAIL PROTECTED]> wrote:
TonyD wrote:
> I have the same problem with a checkbox tag,
> if a use the ccsStyle="colo
TonyD wrote:
I have the same problem with a checkbox tag,
if a use the ccsStyle="color:Green" to change the label color to green,
it doesn't work at run time and the label remains with a black color!
Is it generated by struts and ignored by the browser (if so, maybe
"Green" and "green" are no
Glad you found it.
(*Chris*)
On 7/9/07, Shilpa Kulkarni <[EMAIL PROTECTED]> wrote:
It was not misspellings - but equally silly mistake. My set method
signature
was wrong :( I was cross checking everything but that.
It was not misspellings - but equally silly mistake. My set method signature
was wrong :( I was cross checking everything but that.
The only other thing that comes to mind would be misspellings.
(*Chris*)
On 7/9/07, Shilpa Kulkarni <[EMAIL PROTECTED]> wrote:
Thanks for reply Chris. I am using defaultStack. So no change there.
Hi,
I think you can only have problems with parameter names that has
public getter/setter in you action class.
Il giorno 09/lug/07, alle ore 22:09, Gunnar Hillert ha scritto:
Hi,
Bump...Nobody using the ParameterNameAware interface?
Any responses would be highly appreciated.
Thanks!
Gun
Hi,
Bump...Nobody using the ParameterNameAware interface?
Any responses would be highly appreciated.
Thanks!
Gunnar
Gunnar Hillert wrote:
>
> Hi,
>
> I have a question regarding the ParametersInterceptor, specifically the
> ParameterNameAware interface. Since Struts 2 is typically injecting
Thanks for reply Chris. I am using defaultStack. So no change there.
That's great! I got pretty clear pictures now. Thanks again cilquirm.
cilquirm wrote:
>
>
>
> panpan wrote:
>>
>> The session is open, why do I need to reattach them?
>>
>
> You wouldn't need to if you loaded and discarded your objects in a single
> request, but let's say you have objects
Hello:
Is there a good tutorial for the Tiles plugin
in struts 2?
I am not seeing anything that gives me enough
to move forward.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for d
panpan wrote:
>
> The session is open, why do I need to reattach them?
>
You wouldn't need to if you loaded and discarded your objects in a single
request, but let's say you have objects that lived around longer than a
single request ( i.e., a User object in your http session ). You might
h
TonyD wrote:
Well I found out what index is (index=count +1)
Bzzt. Index is a zero-based iteration count, count is a one-based
iteration count, so index+1=count.
but a need something that tells me how much iterations are there
before reaching the end of interation.
That has nothing to d
Thanks brother. This is what I wound up doing, but it sure seemed weird!
Why should properties available to a page somehow be made invisible while
looping?
Parent Id: //works fine here!
//GOOFY!
... CRAZY!
Edit
On 7/9/07, cilquirm <[EMAIL PROTECTED]> wrote:
the eas
Cilquirm. That's really helpful! Thans a lot!
I can understand the most part your post and I still have question for the
last sentense.
"For those that you do, reattach them early on, and watch your transaction
boundaries. "
The session is open, why do I need to reattach them? And could you ple
+1 for that :)
https://issues.apache.org/struts/browse/WW-2034
musachy
On 7/9/07, cilquirm <[EMAIL PROTECTED]> wrote:
technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :
assuming the action is the se
I am currently utilizing the Servlet-Config Interceptor in order to
manage HTTPSession attributes as advised in the following document:
http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.ht
ml
The document states that this is preferred and that:
"Any changes mad
technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :
assuming the action is the second root down.
but i do agree that'd it be nice to stuff the action into #action.
Chris Pratt wrote:
>
> Seems like you
Assuming your S2 actions are 'pathed' differently ( i.e. s2 actions are
mapped to .action , while s1 actions are mapped to .do ), then specifying
the url pattern only for s2 actions ( /*.action ) will have the intended
effect.
As far as side effects go, it's really dependent on your application.
Seems like you should be able to say
But since there's no getAction in the ActionContext, I doubt that will
work. Maybe it should be added?
(*Chris*)
On 7/9/07, cilquirm <[EMAIL PROTECTED]> wrote:
the easiest solution would be to s:set the property name you want to
reference with a differ
Thank you cilquirm. I think i'm a little bit confused and the filter is the
one I needed.
There is one thing which is unclear to me. If I only apply the filter to the
new developed struts2 action, it will not affect the rest existed
application(struts1), right? I saw there are some side effect of
the easiest solution would be to s:set the property name you want to
reference with a different name
and then access it in your loop under the new name.
stanlick wrote:
>
> There is no searching up the stack beyond the top?
>
> On 7/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>>
Did you change the interceptor stack for this action?
(*Chris*)
On 7/9/07, Shilpa Kulkarni <[EMAIL PROTECTED]> wrote:
I am relatively new to Struts. I have a simple form submitting to an
action.
The problem is http://./.action is straight going into
execute method. It is not going into the
I am relatively new to Struts. I have a simple form submitting to an action.
The problem is http://./.action is straight going into
execute method. It is not going into the get/set methods for form
parameters. Can someone please tell what is the common cause of such a
problem? I have written s
There is no searching up the stack beyond the top?
On 7/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Big Stick <[EMAIL PROTECTED]> wrote:
> But it's a property on the Action!
pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but each element
I think you may be confusing Struts2 (S2) interceptors with Spring
Interceptors.
The two are not the same.
S2 interceptors provide some "aop-like" functionality by allowing code to
modify request processing in some fashion; however it's not truly based
around an aop standard ( i.e. aopallliance )
Thank you very much Tony. I'll try to write my own interceptor.
Toni Lyytikäinen wrote:
>
> I took a look at that, but it's not actually written for Struts but for
> WebWork 2.x and the AroundInterceptor class it extends is not included in
> Struts 2. I don't know what that page is doing in St
Hello!
I took the source code an implemented the missing attribute myself.
Kind regards,
Andreas Hartmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I took a look at that, but it's not actually written for Struts but for
WebWork 2.x and the AroundInterceptor class it extends is not included in
Struts 2. I don't know what that page is doing in Struts documentation,
since it won't even compile with vanilla Struts 2.
On 7/9/07, panpan <[EMAIL PR
Thank you a lot! Toni. That answer cleared my question.
Have you noticed there is Non-IoC version of OpenSessionInViewInterceptor in
the Apache Struts 2 Documents. Please click the below link:
http://struts.apache.org/2.x/docs/non-ioc-version-of-opensessioninviewinterceptor.html
I don't know if
Can someone provide a definitive answer on this then? It is obviously a
key infrastructure and implementation issue.
Thank you!
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007 11:30 AM
To: Struts Users Mailing List
Subject: Re: [S2] Interce
Cary, you are confusing attributes and parameters. Attributes are internal
data points about the request, while parameters are external data points. If
you want to retain data you have two choices:
1) Add parameters to the redirect
2) Store data in the session
Paul
On 7/9/07, Cary Ho <[EMAIL PRO
Sorry, I must have read the post too quickly and assumed you were talking
about the filter, because I haven't really seen a working OSIV interceptor
for Struts 2. If you want to use an interceptor, you'll probably have to
write one yourself for Struts 2. I don't think the one in Spring can be
conf
Thank you Toni for your example.
I'm just wondering about the OpenViewInSessionInterceptor. Don't know how to
configure it in struts2.
Thanks again!
Toni Lyytikäinen wrote:
>
> I can't really say about Spring 1.2.8 because I've only ever used 2.0, but
> here's what I did:
>
> in web.xml:
>
Is there a way to redirect, send them to a different page, but keep
information in the request so the jsp its forwarded to can use
information passed in the request attributes?
Paul Benedict wrote:
Cary,
A redirect causes a second request. You're putting data in the first
request, redirectin
I can't really say about Spring 1.2.8 because I've only ever used 2.0, but
here's what I did:
in web.xml:
OSIVFilter
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
...
OSIVFilter
/*
struts2
/*
org.springframework.web.context.ContextLoaderListener
contextC
Uahhh,
thanks for pointing out this information, I was way to fast to reply on
the said question - I recalled it wrong. Indeed documentation is right
here, they need to be thread safe - sorry for causing misunderstanding
here.
Anyway, this does not answer the question if interceptor parameters
in
If that's right then I've been wrong for a long time :). I think that
interceptor instances are reused between requests. On
DefaultActionProxy:prepare:
config = configuration.getRuntimeConfiguration().getActionConfig(namespace,
actionName);
that configuration is not instantiated on each request.
I'm new to Spring and Struts2 and currently working on an existing
project(Spring 1.2.8+ struts+hibernate 3) which is upgrading to struts2.
Need to add OpenViewInSessionInterceptor to the project to enalbe the lazy
loaing in the presentation layor. I've searched the forum and didn't get the
answer
--- Big Stick <[EMAIL PROTECTED]> wrote:
> But it's a property on the Action!
pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but each element of the iteration.
d.
__
Yep, that's exactly right!
I suspect moving from Struts 1 I hadn't explored the namespace config!
I did want the same action name to be used across directories and
"namespace" was the missing piece :)
Thanks for your prompt response.
Ant
Wesley Wannemacher wrote:
>
> Maybe I am reading your
Anyone know what the "name" attribute of
tag in the Struts 2 configuration
file is used for?
The doc at the following page doesn't mention it.
http://struts.apache.org/2.0.8/docs/exception-configuration.html
-Bill
___
According to the following page in the Struts 2 docs,
package inheritance only includes interceptor,
interceptor-stack, and action configurations.
http://struts.apache.org/2.0.8/docs/package-configuration.html
Is this true? I would like to know if
, , and
also get inherited when
extending a pack
Have you tryed #yourproperty ?
If that doesn't work, can you send your code ?
Ezequiel.
-Message d'origine-
De : Big Stick [mailto:[EMAIL PROTECTED]
Envoyé : lundi 9 juillet 2007 15:05
À : Struts Users Mailing List
Objet : RE: RE : Orthognal OGNL!
But it's a property on the Action!
-
Maybe I am reading your question wrong, but I can't see why you would
want to do that... Struts2 will have to pick one or the other. Perhaps
maybe you are looking for the "namespace" attribute?
http://struts.apache.org/2.x/docs/namespace-configuration.html
-Wes
--
Discussion of Struts2, Spring,
You can build the json string instead of returning the hardcoded one, you
can use FreeMarker, JSP, Velocity, to generate it. You can also use the json
plugin:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Look at the examples in showcase, there is one that builds the json result
using Free
Did you try asking on the Dojo forums? You'd probably have a better chance
there.
regards
musachy
On 7/9/07, Jason Wyatt <[EMAIL PROTECTED]> wrote:
I've got an ajax tabbedpanel with six tabs. When I click on the tabs in
rapid sequence, it often causes IE to crash.
It seems to happen if I clic
Thanks, Rene!
Someone might want to update the documentation to make this clearer.
The following document seems to indicate otherwise:
http://struts.apache.org/2.x/docs/writing-interceptors.html
Thread Safety
Interceptors must be thread-safe!
A Struts 2 Action instance is created for ev
But it's a property on the Action!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes,
Just try:
value="#parameters.yourproperty"
and if you want to know why that works, check:
http://struts.apache.org/2.x/docs/ognl.html
Ezequiel
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 9 juillet 2007 13:44
À : Struts Users Mailing List
I have a property that I cannot access while inside an yet I
can access it before and/or after the loop! It is as though the collection
I'm iterating over has the same property which is causing an overshadowing.
However, the collection does *not* contain the property! Is it possible to
access p
I have the same problem with a checkbox tag,
if a use the ccsStyle="color:Green" to change the label color to green,
it doesn't work at run time and the label remains with a black color!
It's a serious problem. I think Hubert Hers wrote for the same thing.
Could someone help us!
Thanks!
La
Hi All,
I want to use the Struts autocompleter tag as mentioned below.
It is working fine if I give the result type is
hardcoded JavaScript file.
But I don't want to hard code the JavaScript file and I want to get the
response based upon the my user input like Google suggest.
Basically I
Well I found out what index is (index=count +1), but a need something that
tells me how much iterations are there before reaching the end of
interation.
Example:
Emplooyes: 2350 (I need to know this value before iterations)
Emplooyes data 1
Emplooyes data 2
.
Emplooye
Hello!
I'm missing the textarea wrap attribute in struts 1.2.8. I can't use the
workaround with the hard coded , because I need the value
of the textarea later on in the application.
I read about the possibility to extend existing tags - but I didn't found any
information about how to do it.
Since you're using the servlet and not the listener, have you added the
servlet mapping like the following?
Easy to overlook!
tiles
/*
The listener is a good (and seemingly better option):
org.apache.tiles.impl.BasicTilesContainer.DEFINI
OK. Maybe I'm expecting too much or haven't come across the right Struts
property but...
In the following snippet, I'm not expecting the 1st 'list' action to be
overridden by the 2nd. But that's what is happening.
detail.layout
de
Hi all,
I use link to open a popup, in this popup i have a list of cars with radio
button.
So if the user choose a car, i want to do:
1-get the idcar and affect it to ActionForm.
2-close the popup.
3- refresh the parent window and show the car selected(if possible the id
car must be in a hidden).
I've got an ajax tabbedpanel with six tabs. When I click on the tabs in
rapid sequence, it often causes IE to crash.
It seems to happen if I click on a tab while one or two others are still
loading.
Some times IE locks up, and other times it gets the standard error message
"Internet Explorer has
Hi Adrian,
Yeah, that's like I am looking for. Thanks a lot!
Hubert
-Ursprüngliche Nachricht-
Von: Rios, Adrian [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 8. Juli 2007 19:42
An: Struts Users Mailing List
Betreff: RE: How suppress the HTML INPUT from Struts2 Combobox?
Hubert,
Not su
80 matches
Mail list logo