Re: Struts2 on Websphere portal 6.1.0.0

2008-07-31 Thread Nils-Helge Garli Hegvik
Thanks for the summary, although I disagree with your conclusion ;) Nils-H On Fri, Aug 1, 2008 at 2:21 AM, Struts Two <[EMAIL PROTECTED]> wrote: > I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE PORTAL. > You need to keep the followings in mind: > 1- You need to have at least

[S2] problem still with "actionRedirect" and "redirect" results (Struts2.1.2)

2008-07-31 Thread Pierre Thibaudeau
I have read a number of reports spanning the last year and describing the problem of wanting to attach parameters to an actionRedirect, as in the following example: myAction 23 This issue has been raised a number of times, I believe, but I

Re: Strange Behaviour in FireFox3

2008-07-31 Thread nauke .
Hi, This is how I fixed it: 1. open the struts2-core-2.0.11.jar file 2. extract template\simple\head.ftl 3. edit it and set the debugAtAllCosts attribute to false 4. replace that file in the jar Thanks Markus! Nicole On Thu, Jul 31, 2008 at 5:03 PM, nauke. <[EMAIL PROTECTED]> wrote: > ohh tha

Re: Struts2 on Websphere portal 6.1.0.0

2008-07-31 Thread Struts Two
I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE PORTAL. You need to keep the followings in mind: 1- You need to have at least fixpack 13 or 15 ( I am not sure which one, otherwise you CAN NOT RUN STRUTS 2 ON WAS) 2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is

Re: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread Chris Pratt
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 PROTECTED]>wrote: > > Hi Dave, > > excuse me for disturbing this list or you personally, I asked for this in > Spring forum ( > http://for

Re: Is there any way I can put package.properties file outside war file?

2008-07-31 Thread Chris Pratt
Basically Struts just loads the properties from the classpath, so anywhere on the classpath should work. (*Chris*) On Thu, Jul 31, 2008 at 4:18 PM, Pranav <[EMAIL PROTECTED]> wrote: > Hi, > > In our application, currently package.properties is packaged inside the war > file at \web-inf\classes

Is there any way I can put package.properties file outside war file?

2008-07-31 Thread Pranav
Hi, In our application, currently package.properties is packaged inside the war file at \web-inf\classes directory. But we would like to move it out to a directory like /server/default/conf inside the jboss. Is there anyway this can be done? If yes, can someone please guide me with step-by-step

RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
Hi Dave, excuse me for disturbing this list or you personally, I asked for this in Spring forum ( http://forum.springframework.org/showthread.php?p=194333#post194333 http://forum.springframework.org/showthread.php?p=194333#post194333 ). I figured out what I do in those method with session which f

Re: Struts2 on Websphere portal 6.1.0.0

2008-07-31 Thread Dinesh Narayanan
That was the issue. I did not include *struts-portlet-default.xml* in struts.xml. Thanks a lot for your help. Dinesh On Thu, Jul 31, 2008 at 12:55 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>wrote: > Did you in your struts.xml? > > On Thu, Jul 31, 2008 at 9:26 PM, Dinesh Narayanan <[EMAIL PR

Re: Struts2 on Websphere portal 6.1.0.0

2008-07-31 Thread Nils-Helge Garli Hegvik
Did you in your struts.xml? On Thu, Jul 31, 2008 at 9:26 PM, Dinesh Narayanan <[EMAIL PROTECTED]> wrote: > Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0.0? I > am running into issues when I tried a very simple JSR168 example. Any help > would be appreciated. Is there so

Struts2 on Websphere portal 6.1.0.0

2008-07-31 Thread Dinesh Narayanan
Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0.0? I am running into issues when I tried a very simple JSR168 example. Any help would be appreciated. Is there some example of struts2 sample in websphere portal 6.1? A) My portlet.xml contains the following entries

S2: struts.xml includes not actually loaded in order?

2008-07-31 Thread Becky . L . O'Sullivan
Hi everyone, Our struts.xml file is getting beastly, so I attempted to break it down into multiple files. I read this page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-strutsxml-file-into-smaller-pieces.html Specifically: "You can use elements in your struts.xml interchangeably wit

RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread [EMAIL PROTECTED]
I already told you I don't know and you continue to refuse to provide the information I've asked for. You also added new information about Acegi, which I responded to by saying that yes, if you're getting logged out it's unlikely you'd keep the same session, as that would somewhat defeat the pur

RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
Dear Dave, O.K. But when you look at this scenario: MyFirstActionClass -> show first.jsp -> user click on link -> MyFirstActionClass.method where I set session variable (getSession().put("variable", new Boolean(true)); -> show second.jsp (here I see my variable) -> user click on some link -> MyS

Re: Stuts 2 and Custom TextProvider

2008-07-31 Thread ayavorskiy
Yes, I tried this. Unfortunately, the minute I include below in struts.xml Struts complains on startup that bean with the same name has already been defined. Additionally, stepping through struts validation code, I can see that it is not even using this "bean" definition, but instead, proceeds

RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread [EMAIL PROTECTED]
I didn't say it wouldn't work. I, and the Sun documentation I quoted, said it was a known bad programming practice. Dave Milan Milanovic wrote: > Hi Dave, > no, I think that this is not an issue. I tried with Boolean.TRUE and it is > the same, but I earlier used new Boolean(true) and that worked

RE: Re: [S2] Testing if session variable is present

2008-07-31 Thread [EMAIL PROTECTED]
Sure it's possible. Milan Milanovic wrote: > Hi Dave, > one question, is it possible that Acegi security remove my session variable, > because it sometimes ask to login between actions ? But, I'm not sure for > this. > -- > Regards, Milan > newton.dave wrote: >> >> --- On Thu, 7/31/08, Milan Mila

Re: Struts 2 And JFreeChart

2008-07-31 Thread dynamicd
I am having a similar issue. I am using Ajax and I want to update the div with an image but it renders it in byte code.. since the div does not know that its an image. I am not sure how to handle this either. I am thinking one way is to use the ChartUtils and write an image on the filesystem and

Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
Hi Dave, no, I think that this is not an issue. I tried with Boolean.TRUE and it is the same, but I earlier used new Boolean(true) and that worked. -- Milan newton.dave wrote: > > --- On Thu, 7/31/08, Milan Milanovic wrote: >> (getSession().put("variable", new Boolean(true)); > > Use Boolean

[OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic wrote: > (getSession().put("variable", new Boolean(true)); Use Boolean.TRUE rather than instantiating a new object. Note also that the Javadocs for Boolean state in big bold letters: "Note: It is rarely appropriate to use this constructor. Unless a new instan

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
Hi Dave, one question, is it possible that Acegi security remove my session variable, because it sometimes ask to login between actions ? But, I'm not sure for this. -- Regards, Milan newton.dave wrote: > > --- On Thu, 7/31/08, Milan Milanovic wrote: >> I think that you didn't understand what

Re:

2008-07-31 Thread holod
Dave thanks again for your help. I will watch these three videos. Early I've used Google Web Toolkit for making complicated WEB UI My brain will blow up If there would appear another version of docs for struts2. I've googled all around, but I didn't find fact about two invocations. newton.dav

Re: [S2] Testing if session variable is present

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic wrote: > I think that you didn't understand what is my scenario. I'm reasonably certain that I did. > What is the problem ? I still don't know, because you still didn't include the code I asked for. That would have saved at least one posting (this one). I d

Re: [S2] Testing if session variable is present

2008-07-31 Thread Piero Sartini
> No one have any idea how to access session variable in jsp in this kind of > simple scenario ? You may access your session variable just like you would do without S2. There is no difference. Then use either the s:test tag from struts or c:if from the standard tag library. Piero

RE: Re: Wierd Validation

2008-07-31 Thread Gundersen, Richard
Hi Laurie Thanks for the reply. I finally figured it out. Removing the visitorFields pattern fixed the problem. I'm guessing my combination of annotations is incorrect. So I had CLASS LEVEL --- @Validation Execute() method: @Validations(visi

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
It seems that my session variable is deleted somehow when first action method of the second Action class is called: MyFirstActionClass -> show first.jsp -> user click on link -> MyFirstActionClass.method where I set session variable (getSession().put("variable", new Boolean(true)); -> show second

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
Hi Dave, newton.dave wrote: > > --- On Thu, 7/31/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> No one have any idea how to access session variable in jsp >> in this kind of simple scenario ? > > That's one explanation. > >>> So, scenario is like this: >>> [...] > > I am unable to duplica

Re: Struts 2 And JFreeChart

2008-07-31 Thread Randy Burgess
I don't use the Ajax theme or any of the Dojo integration but I assumed that if theme=ajax on the submit button that it would be using Ajax. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: Laurie Harper <[EMAIL

My Action was three times executed

2008-07-31 Thread Johannes Geppert
since using struts 2.1.2 my actions was three times executed when i submit a form with dojo and Is this a bug, or a configuration error? -- View this message in context: http://www.nabble.com/My-Action-was-three-times-executed-tp18755679p18755679.html Sent from the Struts - User mailing list

Re: S2: possibly strange namespace use case

2008-07-31 Thread Andy Law
Jeromy Evans - Blue Sky Minds wrote: > > > True. The Struts 2 in Action book goes into the next level detail: > > http://www.manning.com/dbrown/excerpt_contents.html > > but still doesn't cover exactly what you're trying to do. I know others > works are in progress but not the details or sc

Re: Stuts 2 and Custom TextProvider

2008-07-31 Thread stanlick
Did you substitute your custom provider in the xml declaration? The default from struts-default.xml is: so you will need to plug your implementation. Peace, Scott ayavorskiy wrote: > > Hi, > Is there a way to substitute default, bundle-based TextProvider in Struts > 2 with a custom

Re: namespace question

2008-07-31 Thread Kibo
Yes. I started my project with Tomcat in Netbeans and I have not set context. The url look like: http://localhost:8080/index.action When I set namespace : namespace="/manager" the url look like: http://localhost:8080/manager/indet.action and the server return me HTTP Status 404. Then I set cont

Browser url & parameters

2008-07-31 Thread Pascal Lalonde
Hi guys, I am wondering if it's possible to modify the url format to get an url of file format. Current pattern: www.myfunnyurl.com/namespace/actionname.action?param1=value1¶m2=value2 I am looking for something like this: www.myfunnyurl.com/namespace/actionname/value1/value2 Thanks, --

Re: Create multiple struts configuration file problem

2008-07-31 Thread Dave Newton
Are you deliberately using modules (if so, I have no idea--I always found them more trouble than they're worth)? If not you can just use a comma-separated list. Dave --- On Thu, 7/31/08, angelwei <[EMAIL PROTECTED]> wrote: > From: angelwei <[EMAIL PROTECTED]> > Subject: Create multiple struts

Re: [S2] Testing if session variable is present

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > No one have any idea how to access session variable in jsp > in this kind of simple scenario ? That's one explanation. >> So, scenario is like this: >> [...] I am unable to duplicate the inability to test session variables for no

Re: S2: possibly strange namespace use case

2008-07-31 Thread Jeromy Evans
Andy Law wrote: There's nothing better than a good book though. That's agreed! What do you recommend? I have Kurniawan's "Struts 2 Design and Programming" and Roughley's "Practical Apache Struts2 Web 2.0 projects" and "Starting Struts 2". None of them go into any kind of detail about th

Re: Redirect after stream result

2008-07-31 Thread ManiKanta G
Hi, I m using Struts2 (S2), not Struts1. In S2 there is a standard result called 'stream' for downloading files. I m using that only. Thanks any way. Regards, ManiKanta Martin wrote: URL url=new URL(http://www.fubar.com); string encoded_url = httpServletReponse.encodeRedirectURL(url); http

Re: Redirect after stream result

2008-07-31 Thread Martin
URL url=new URL(http://www.fubar.com); string encoded_url = httpServletReponse.encodeRedirectURL(url); httpServletResponse.sendRedirect(encoded_url); Is there a reason why you would'nt want to use Struts prescribed method of that is return a valid ActionForward via findMapping from execute() meth

Re: Struts 2 And JFreeChart

2008-07-31 Thread Martin
it does sound like a caching issue.. try this directive before your <% response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1 response.setHeader("Pragma", "no-cache"); //HTTP 1.0 response.setDateHeader("Expires", 0); //prevents caching at the proxy server %> ? Martin - Origin

Re:

2008-07-31 Thread Dave Newton
Another option is to read the documentation, which indicates that the JavaScript function will be called twice (although it's better-stated in the 2.1 docs), once getting the id, and then again on success or error, with the HTML result. http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTa

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
No one have any idea how to access session variable in jsp in this kind of simple scenario ? -- Milan Milan Milanovic wrote: > > So, scenario is like this: > > MyFirstAction.method1 [put session variable] -> show first.jsp -> user > click on link in first.jsp page -> show second.jsp -> user c

Re: S2: possibly strange namespace use case

2008-07-31 Thread Andy Law
Jeromy Evans - Blue Sky Minds wrote: > > >> A short follow-up. Can you point me towards a description of where/when >> the >> Action object gets created and where Interceptors fit into the process. >> > > The architect's guide is a good place to start. > > http://struts.apache.org/2.0.11.2/d

Re: Is it a bug in Struts 1.2 that you can't iterate through a java.util.Set?

2008-07-31 Thread Ylva Degerfeldt
Thank you, Laurie! But I'm going to switch to Struts 2 now so that issue is not so important anymore. Thanks anyway! /Ylva On Wed, Jul 30, 2008 at 11:11 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Ylva Degerfeldt wrote: >> >> Hi everyone, >> >> I'm using Struts 1.2 (bundled with NetBeans 5.5.

user@struts.apache.org

2008-07-31 Thread holod
And I will explain why. If I make any mistakes, please, tell me. This is my struts2 tag: Click me! this is my JS code: dojo.event.topic.subscribe("/afterDeleteLaw", _listeners, "test1"); var _listeners = { test1: function(sourceId){ alert("sourceId"); } };

Re: Strange Behaviour in FireFox3

2008-07-31 Thread nauke .
ohh thank you thank you sooo much! I'm about to go home now but I'll try it out first thing tomorrow and let you all know how it went! thanks again, nicole On Thu, Jul 31, 2008 at 4:57 PM, Markus Stauffer <[EMAIL PROTECTED]>wrote: > I had the exact same problem. > > Turns out it is a problem in

Re: Strange Behaviour in FireFox3

2008-07-31 Thread Markus Stauffer
I had the exact same problem. Turns out it is a problem in dojo 0.4.0 that is shipped with struts2. I include my own build of dojo to solve the problem. kind regards -- Markus Stauffer On 7/31/08, nauke. <[EMAIL PROTECTED]> wrote: > Hi all, > > Was really not sure which mailing list to post to

Regarding Struts 1.3 and Eclipse 3.3

2008-07-31 Thread bhba
HI, How to configure struts 1.3 with eclipse 3.3.please help me regarding this,it's little bit urgent. I am using following software's Jdk1.6 Eclipse3.3 Tomcat6.0 or is there any related stuff please post me. Thanks in Advance BHBA -- View this message in context: http://www.nabble.com/