Good Morning
I have an Action called SomeAction
it has a field called someInt
public class SomeAction extends ActionSupport{
private int someInt;
public int getSomeInt(){return someInt;}
public void setSomeInt(int someInt){this.someInt = someInt;}
}
when this action is invoked from a
O.K. Chris, thank!
But, do I need this invalidation ? What is its purpose ?
--
Thx, Milan
Chris Pratt wrote:
Yes, that's exactly what that does. It invalidates the session and
removes
all the data.
(*Chris*)
On Thu, Jul 31, 2008 at 3:27 PM, Milan Milanovic
[EMAIL
Hi,
We have two applications and need to periodically synchronize data from
one to another. One is the master (source) and other is the destination.
The applications are running on tomcat servers on separate linux boxes.
I thought of using a JMS based asynchronous queue for the data
Wow, a problem that doesn't mention struts anywhere and isn't even about
web frameworks, there's OT and way-OT.
I think you need to find a list more in tune with your problem.
Al.
Janesh Subrahmanyan wrote:
Hi,
We have two applications and need to periodically synchronize data
from one to
Hi All,
While developing an application in struts2 i am facing a strange problem
with one of my action namely RegsitrationAction.
i have a jsp page for user registration where there are certain fields for
the user to be filled for the registration purpose.
i have created a UserProfile bean class
Hi Al,
Both the applications are Struts2 applications and I also want to know if
there is a struts way of doing this handshake. That is why I posted in this
forum. Any suggestion/pointer would help. Thanks.
Thanks,
Jan
Al Sutton wrote:
Wow, a problem that doesn't mention struts anywhere
If you want less boilerplate code you should consider using Groovy for your
actions.
On Fri, Aug 1, 2008 at 2:55 AM, Lyallex [EMAIL PROTECTED] wrote:
Good Morning
I have an Action called SomeAction
it has a field called someInt
public class SomeAction extends ActionSupport{
private int
Hi,
you use the same action to render the welcome screen and Registrer.jsp.
So this means that when you display the welcome screen execute() is
called and when you display the Registrer.jsp page.
Either use two separate actions or just return null in execute and have
another action method
Is there any design reason why staticParams is not called before prepare in
the paramsPrepareParams stack?
Also, in a potential RFE sort of vein, would there be any support for a
request for a way of making staticParams non-overwritable? (i.e. the params
defined in the action configuration XML
Although I agree that less code is good, there gets to be a point of
terseness that you should be wary of. I would suggest keeping getters
and setters on your struts 2 actions for a few reasons. First, Struts
2 Actions are simple POJOs for the most part, and by following the
JavaBeans conventions
--- On Thu, 7/31/08, Milan Milanovic wrote:
((org.apache.struts2.dispatcher.SessionMap)session ).invalidate();
[...]
Is this possible to erase session ?
You're asking if session.invalidate() will erase the session? Really?
Here's the thought process I'd use to figure that out, step-by-step.
As you can see, I've read it, conclude it and write here, if I didn't I'll
still have a problem, isn't it ?!
I have asked in which cases this method should be used ?
--
Milan
newton.dave wrote:
--- On Thu, 7/31/08, Milan Milanovic wrote:
((org.apache.struts2.dispatcher.SessionMap)session
--- On Fri, 8/1/08, Milan Milanovic wrote:
I have asked in which cases this method should be used?
It should be used when you want to invalidate the session and remove all
objects in the session.
Dave
-
To unsubscribe,
O.K. Thanks.
One more question, is it possible that my session variable is erased when I
redirect
to another action/namespace, like this:
action name=show class=mySecondAction
!-- Redirect to another namespace --
result type=redirect-action
show
--- On Fri, 8/1/08, Milan Milanovic wrote:
One more question, is it possible that my session variable
is erased when I redirect to another action/namespace, like this:
action name=show
class=mySecondAction
!-- Redirect to another namespace --
result type=redirect-action
Yes, I understand. But I don't remove session variable or call invalidate
anymore, and when my variable is stored during the whole scenario and when I
click to this redirect I get lost of my variable.
--
Milan
newton.dave wrote:
--- On Fri, 8/1/08, Milan Milanovic wrote:
One more
--- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote:
Yes, I understand. But I don't remove session variable
or call invalidate anymore, and when my variable is stored
during the whole scenario and when I click to this redirect
I get lost of my variable.
Then provide the artifacts I
Dave,
Repeat after me;
It's Friday. It's nearly the weekend. And if they don't give me what I
want I'm going to take my toys away and stop playing :).
Al.
Dave Newton wrote:
--- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote:
Yes, I understand. But I don't remove session
Pierre Thibaudeau [mailto:[EMAIL PROTECTED] wrote:
The JIRA tracker lists the following issues:
https://issues.apache.org/struts/browse/WW-1714
as fixed in version 2.0.8, but it certainly doesn't work in 2.1.2.
have you tried Struts 2.0.11.2?
You may already know it, but Struts 2.1.2 is still
Al ?!
Dave, I cannot give you all that info, because of two things, first my
classes
and jsp-s are pretty complex, and not in english! So, I narrowed my scenario
to this, my variable is in session - when redirect action is clicked, there
is no
variable in session any more! It's seems like that
I already gave you my action configuration:
action name=show class=mySecondAction
!-- Redirect to another namespace --
result type=redirect-action
show
/actions
true
${id}
/result
/action
and here it is
It's seems like that redirect action doesn't
pass
or set session to another action class.
If you can't give us the code, we aren't able to help you.
Session's don't need to be passed between actions. They are managed by the
servlet container. But it is pretty safe to assume that Struts2 is
Just making sure hurricane Dave doesn't blow through the list.
If you ask for help, and someone offers, give them what they ask for.
They can always ask for a translation of bits that may be critical, but
unless you've rewritten large chunks of the JVM and Struts your tags and
code will still
O.K. My 5 jsp which are used and two action classes have 5000+k lines of
code, should I send them here ?
--
Milan
Al Sutton wrote:
Just making sure hurricane Dave doesn't blow through the list.
If you ask for help, and someone offers, give them what they ask for.
They can always ask
Hi Piero,
O.K. Basically I'm just asking one simple question, is it possible that
redirect action delete session or variables in it or maybe not pass some,
because they after redirecting I don't have that variable in session ?
--
Regards, Milan
Piero Sartini-3 wrote:
It's seems like that
:O imho first stop would be someone who will refactor them.
5 jsps and 2 classes with 5K lines of code is not a healthy program.
Once they have been refactored you may find it easier to find the problem.
Al.
Milan Milanovic wrote:
O.K. My 5 jsp which are used and two action classes have
Answer : No
Only your code and your site design will affect the session variables
you have set and whether they are accessible.
Milan Milanovic wrote:
Hi Piero,
O.K. Basically I'm just asking one simple question, is it possible that
redirect action delete session or variables in it or maybe
If your artifacts are that big, I suggest that you create a minimal
example that reproduces your error and then provide us with those as
examples. Otherwise, it's impossible to help. And who knows, maybe the
little example works, and then we can rule out Struts 2 in the
equation.
Nils-H
On Fri,
Thanks. How do I set classpath on jboss so that classes/files from outside the
war file can be loaded by my web application?
Pranav
- Original Message
From: Chris Pratt [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 31, 2008 4:50:30 PM
Hello Pierre,
I am also desperately waiting for version 2.1.3 since it seems to be
fixed there[1]. I cannot downgrade to 2.0.x, since I am using the no
.action extension feature of 2.1.x
CU
~Andreas
[1] https://issues.apache.org/struts/browse/WW-2676
Pierre Thibaudeau schrieb:
The JIRA
O.K. Thanks.
I must see why my session is deleted when redirect action is called :-(. I
checked everything 10 times, and I don't anything with session, so it is
very wierd to me why it is removed after just one click.
--
Regards, Milan
Al Sutton wrote:
Answer : No
Only your code and
Seriously, refactor your code. 5K lines of code in 7 files could hide
all manner of nasties.
Milan Milanovic wrote:
O.K. Thanks.
I must see why my session is deleted when redirect action is called :-(. I
checked everything 10 times, and I don't anything with session, so it is
very wierd to me
--- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote:
O.K. Basically I'm just asking one simple question, is
it possible that redirect action delete session or variables
in it or maybe not pass some, because they after redirecting
I don't have that variable in session ?
NO.
There is
Thhhaaa she blows!! (I use she in the shipping sense of the
word... i.e. everythings a she when you're at sea for that long and it's
all blokes).
Dave Newton wrote:
--- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote:
O.K. Basically I'm just asking one simple question, is
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote:
Thhhaaa she blows!!
*lol*
Tropical Depression Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Seriously, refactor your code. 5K lines of code in 7 files
could hide all manner of nasties.
We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines, mostly
if-elseif.
It broke our cyclometric complexity meter, had to put in a bigger fuse. It
makes Eclipse cry. It makes *me*
Thanks huricane Dave ;-).
O.K. I'll check everything one more time. I'm using only default stack and
it worked until now good. And I fixed that invalidate problem, so I don't
invalidate nor clear session anywhere in my project.
--
Regards, Milan
newton.dave wrote:
--- On Fri, 8/1/08, Milan
Don't worry, I've just written a rant about not relying on dirty reads
and had to re-word it to include the footnote This discussion is about
the SQL JDBC Drivers and is not about porn.
Dave Newton wrote:
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote:
Thhhaaa she blows!!
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote:
Don't worry, I've just written a rant about not relying on dirty
reads and had to re-word it to include the footnote This
discussion is about the SQL JDBC Drivers and is not about porn.
Well, they're both just as exciting.
Right?
Captin... The cyclometric complexity meter is at max... I canne give it
any more.
Reflection can seriously help with big else-ifs. If your switching on a
variable use the variable name and value as part of the class name and
then do;
Class blahHandlerClass = Class.forName(
So you'd choose JDBC driver source code over porn and you called me
wierd :).
Dave Newton wrote:
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote:
Don't worry, I've just written a rant about not relying on dirty
reads and had to re-word it to include the footnote This
discussion
I believe Struts doesn't provide any help for integrating applications
with an MQ server. You need to program against the JMS API (a driver
which your MQ server vendor must provide.) but this is not related to
Struts.
2008/8/1 Janesh S [EMAIL PROTECTED]:
Hi Al,
Both the applications are
Hi Dave,
one short question, don't be angry ;-).
The link which when clicked action class lost its session looks like this:
http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324id=4
Is it possible that session is not passed through this link ?
--
Regards, Milan
Milan,
Please read up on how sessions work. They are NOT passed via URLs unless
you have cookies disabled, URL rewriting enabled on your appserver, and
a very sick sense of what a normal configuration is.
Al.
Milan Milanovic wrote:
Hi Dave,
one short question, don't be angry ;-).
The
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote:
It splits your code into more manageable chunks, [...]
You're right, it does split *my* code. Unfortunately (well... fortunately,
really) that code isn't mine and I'm forbidden from even looking at it.
Dave
--- On Fri, 8/1/08, Al Sutton wrote:
So you'd choose JDBC driver source code over porn
And it's not filtered at work! Win-win!
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Ya might have to Google that one, I don't use jBoss myself.
(*Chris*)
On Fri, Aug 1, 2008 at 8:53 AM, Pranav [EMAIL PROTECTED] wrote:
Thanks. How do I set classpath on jboss so that classes/files from outside
the war file can be loaded by my web application?
Pranav
- Original
Thank you Andreas and Brad. I too shall be impatiently looking forward to
2.1.3!
And I'd rather not backtrack to 2.0.11 as I want Ajax/dojo as a plugin and
not as a theme.
2008/8/1 Andreas Mähler [EMAIL PROTECTED]
I am also desperately waiting for version 2.1.3 since it seems to be fixed
A Medusa code. So named because anyone who looks at it gets so
petrified they turn to freeze up and turn to stone.
I once worked for a company where one of their classes was about 200K in
size, the reason was the developer thought that in every you needed to
catch every exception thrown,
Tonight on the Struts 2 comedy channel; How your employer is ensuring
you enjoy your day by only filtering out the boring websites to avoid
you having to waste time checking them out :).
Dave Newton wrote:
--- On Fri, 8/1/08, Al Sutton wrote:
So you'd choose JDBC driver source code over
I know that they are passed through serlvet, I'm just wondering if struts
makes some error there.
Could you be positive that Struts 2.0.11.1 doesn't do anything with session,
i.e., session remains
intact and session is set for folowing action in case of redirect action ?
--
Regards, Milan
Al
staticParams provide some sort of default parameter injection when you
declare an action in your struts.xml, but it should be ok to override
this value if it came as a parameter. If the interceptor order would
be the opposite, then static parameters would take precedence over
regular parameters.
we have successfully deployed a struts2 portlet that used a jndi
datasource in WAS.
our EAR file had the portlet as one of it's module.
we had issues with the jndi datasource when we added another struts2 portlet.
anybody here who encountered the same problem and found a solution?
thanks,
/kits
--- On Fri, 8/1/08, Milan Milanovic wrote:
Could you be positive that Struts 2.0.11.1 doesn't
do anything with session, i.e., session remains intact
and session is set for folowing action in case of
redirect action?
Session handling is no different for a redirectAction than any other
i agree with Wes
I've seen many implementations with decorators which are ok as long as packages
and version are known
e.g. @Decorator could be referencing any one of a number of interfaces
(personally I prefer implements interface as there is no ambiguity which
package interface you are
I refer you to the answer on sessions I gave you some emails ago.
You **REALLY** should read how session work. They are not passed through
a servlet.
Al.
Milan Milanovic wrote:
I know that they are passed through serlvet, I'm just wondering if struts
makes some error there.
Could you be
Hey Shoib,
I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me anywhere..
I did not see the ajax behavior. Did you get it to work. Canyou post some
sample code.
Shoaib Gauhar wrote:
Hello,
Has anyone tried AjaxAnywhere with Struts 2.1? My action class is never
called.
I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me anywhere..
that a great one-liner
--
Hey you! Would you help me to carry the stone? Pink Floyd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
Am facing the same problem, can you help me out in Creating a Report Using
pentaho Struts.
Thanks
Vicky
soum wrote:
hi,
sorry for sending this message again-since i didnt get nay reply and its
urgent
on my project i have to creat a Report using Pentaho and struts2. Without
Why don't you just build a url with the parameters, and show it in
your page? Or a form?
musachy
On Fri, Aug 1, 2008 at 4:45 PM, VICKY K [EMAIL PROTECTED] wrote:
Hi,
Am facing the same problem, can you help me out in Creating a Report Using
pentaho Struts.
Thanks
Vicky
soum wrote:
Johannes Geppert wrote:
since using struts 2.1.2 my actions was three times
executed when i submit a form with dojo and sx:submit
Is this a bug, or a configuration error?
How would we know without seeing any of your code or configuration?
L.
Is it possible you have the server session-time-to-live set to a very small
duration of time? This might explain why the sessions are disappearing.
On Fri, Aug 1, 2008 at 11:47 AM, Milan Milanovic
[EMAIL PROTECTED]wrote:
I know that they are passed through serlvet, I'm just wondering if
Hi all,
converting big S1 application and run into this problem.
Even though form is being validated in S1 version by validator.xml
there is an user field which was validated on focus lost by asynch call using
Ajax - to find found if by user chosen
user name is still available. Call is then
hi to all,
i am using ubuntu OS and recently i installed tomcat and starting developing
struts applications. in order to compile my own servlet classes it is
required to set classpath. i am failing to set classpath becoz i am new to
UBUNTU. can any one resolve my problem. waiting for you people's
64 matches
Mail list logo