Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
magic. Nevertheless, Struts 2 has a lot of sweet spots even over Spring MVC, as to my opinion as a user of both :) Cheers, - René Am 14.08.12 15:46, schrieb Struts Two: > What people are missing here is that using filters and deviating from the > spec as front controller would cause

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
What people are missing here is that using filters and deviating from the spec as front controller would cause quite a few issues when some applications servers are used. I quite clearly remember that I went through hell to deploy my applications on WebSphere applications with an Http server as

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Thank you very much for your reply. Your suggestion worked though in IE the file is opened in a new tab as opposed to save but it works on Firefox. - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File do

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
The fact is that I set content disposition programatically in the following line getServletResponse().setHeader("Content-Disposition",                 ("attachment;filename=\"" + attachment.getName().trim().replaceAll(" ", "_") + "\"")); in the action as opposed to configuration. I was working wi

File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Hi everyone: I have an application in Struts 2.1.8 that has been running for the past two years with no issue. However; recently I have noticed the all file downloads on Firefox and Chrome fails while IE is okay. I know it has something with content-dispositon but  I have not been able to fix i

Re: struts2 in weblogic 10.3

2011-11-01 Thread Struts Two
Hi: I know based on my experience that I had quite some trouble running struts 2 on WebSphere which led to opening quite a few PMRS with IBM. And in many occasions it happened to be the issue with existing struts 2 design that breaks the Spec such as  using filters to server resources and etc a

Re: Migration from 2.1.8 to 2.2.1.1

2011-03-30 Thread Struts Two
companies may deem it otherwise to avoid lawsuits, etc. - Original Message From: Dave Newton To: Struts Users Mailing List Sent: Wed, March 30, 2011 9:29:48 AM Subject: Re: Migration from 2.1.8 to 2.2.1.1 What about the MPL concerns you? On Wednesday, March 30, 2011, Struts Two wrote

Re: Migration from 2.1.8 to 2.2.1.1

2011-03-30 Thread Struts Two
;t running your application on JBoss you must add Javassist library as a dependency Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/3/29 Struts Two : > Hello All: > > is Migration from 2.1.8 to 2.2.1.1 straig

Migration from 2.1.8 to 2.2.1.1

2011-03-29 Thread Struts Two
Hello All: is Migration from 2.1.8 to 2.2.1.1 straightforward involving only jar files replacement or there is more to it? I remember when I migrated from 2.0.14 to 2.1.8 I had to go through a wiki page for migration to work, is there such WIKI page? I am only using tiles plugin and no other pl

Re: Mix SpringMVC 3.0 with Struts2

2010-07-30 Thread Struts Two
And why do you want to mix Struts 2 with Spring 3.0MVC? It is understandable if you want to use Spring DI with struts 2, however; if you already have Spring 3MVC, I think you should stick to it. - Original Message From: Frans Thamura To: Struts Users Mailing List Sent: Thu, July 29

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Struts Two
What is meant is do not use "struts dojo plugin". However, you can use dojo framework (which is a great framework) with struts 2 - Original Message From: Dale Newfield To: Struts Users Mailing List Cc: john.vargh...@smartonline.com Sent: Tue, June 29, 2010 10:36:08 AM Subject: Re: St

Re: Upgrade from 1.2 to 1.3x

2010-05-25 Thread Struts Two
Look at the following page for migration from 1.2 to 1.3: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 - Original Message From: Søren Blidorf To: struts-u...@jakarta.apache.org Sent: Tue, May 25, 2010 6:23:51 AM Subject: Upgrade from 1.2 to 1.3x Hi. I am upgrading my str

Re: Websphere/Struts issue with form based authentication

2010-05-15 Thread Struts Two
The problem should be due to the fact struts two breaks Servelt 2.4 spec by using a filter to access resources as opposed to servlet. I had a similar issue. Search for posting with title There is no Action mapped for namespace / and action name j_security_check I think I should have mentioned

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-22 Thread Struts Two
Set the the following properties in custom properties of your Websphere application server com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true com.ibm.ws.webcontainer.invokefilterscompatibility = true --- On Thu, 4/22/10, Prabahar wrote: > From: Prabahar > Subject: RE: Struts2

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Struts Two
dress"> >     > > I have a doubt in the requestURI parameter... what exactly > i should give > to that parameter. I have also used requestURIContext as > well, but no > improvement. > > > > Nils-Helge Garli wrote: > > > > Thanks for the summa

Re: Websphere 6.1 and Struts 1.3

2010-04-05 Thread Struts Two
I am running 1.3.10 on WAS 6.1 with no issues. Have installed the latest Websphere fixpacks and test. However; if you struts version is 1.1 or 1.2, you may need to add the following property: prependSlashToResource = true to custom properties of your server. --- On Mon, 4/5/10, Darshan Shroff

Re: drop down list auto suggest feature using Struts1.1/JSP/Javascript

2010-01-11 Thread Struts Two
You can also use Dojo with Struts 1. I am currently using dojo 1.3.2 with struts 1.3.10 with no issues whatsoever. --- On Mon, 1/11/10, Paul Benedict wrote: > From: Paul Benedict > Subject: Re: drop down list auto suggest feature using > Struts1.1/JSP/Javascript > To: "Struts Users Mailing Li

Re: [Struts 2.1.8] Dojo with Tiles: works or not ?

2009-12-17 Thread Struts Two
I am using struts 2.1.8 with Tiles 2.0.5 and Dojo toolkit 1.3.2 [not struts dojo plugin] and I have no problem. --- On Thu, 12/17/09, Celinio Fernandes wrote: > From: Celinio Fernandes > Subject: [Struts 2.1.8] Dojo with Tiles: works or not ? > To: "Struts Users Mailing List" > Received: Thur

Re: RE: Adding Json to existing action

2009-10-27 Thread Struts Two
ot;%{'form_door' + door.id}"/> > > > > > >     name="door_description" value="getText(#foo)"/> > > >     > > >         id="door_url" action="unlock"> > > value="door.id"/> > >

Re: Adding Json to existing action

2009-10-27 Thread Struts Two
You can either use Json plugin or write your own customized result type that return JSON. --- On Tue, 10/27/09, Michael Varlik wrote: > From: Michael Varlik > Subject: Adding Json to existing action > To: user@struts.apache.org > Received: Tuesday, October 27, 2009, 1:07 PM > Hi, > > I need t

Re: Struts2 on Websphere 6.1 : 404 errors

2009-10-16 Thread Struts Two
Yes, it is. If you plan to turn on container security, you need another flag as well. --- On Fri, 10/16/09, Raghuveer.V wrote: > From: Raghuveer.V > Subject: Struts2 on Websphere 6.1 : 404 errors > To: user@struts.apache.org > Received: Friday, October 16, 2009, 1:03 PM > Hi Struts2 Users, >

Re: warning from user@struts.apache.org

2009-10-11 Thread Struts Two
Can anyone says why am I getting this warning? What do you exactly mean "messages from you have been bouncing"? --- On Sun, 10/11/09, user-h...@struts.apache.org wrote: > From: user-h...@struts.apache.org > Subject: warning from user@struts.apache.org > To: struts...@yahoo.ca > Received: Su

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
gt; of mapping > welcome-files to index.action. > > -Wes > > On Thu, Oct 8, 2009 at 8:36 AM, Struts Two > wrote: > > I have mentioned this before in another thread that > Struts2 is breaking Servlet specification 2.4 in this > regard, but have heard no comment o

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
I have mentioned this before in another thread that Struts2 is breaking Servlet specification 2.4 in this regard, but have heard no comment on it which means two things either I have a point or I am way off. In Servlet specification 2.4 filters are not supposed to be accessed directly as a reso

Re: Dojo trouble after upgrade

2009-09-17 Thread Struts Two
Dojo has been moved to a plugin in struts 2.1. There are more information on this on the struts 2 wiki site. You are much better of using dojo natively than the plugin [which you can call it an old hag now :) ] --- On Thu, 9/17/09, Scott Nesbitt wrote: > From: Scott Nesbitt > Subject: Dojo t

Re: Intermittent Session Problems in Strut2.

2009-08-23 Thread Struts Two
Do you log in to the system from two different client machines or you log in to both accounts using tabs of a same browser IE or firefox ? --- On Sun, 8/23/09, pankaj semwal wrote: > From: pankaj semwal > Subject: Intermittent Session Problems in Strut2. > To: user@struts.apache.org > Received

Re: s:actionmessage issue after upgrade to 2.1.6 (possible bug)

2009-08-21 Thread Struts Two
lass "alert-go" (or whatever > class name > you're specifying). > > -Wes > > On Fri, Aug 21, 2009 at 3:23 PM, Struts Two > wrote: > > Before I migrate my struts application from 2.0.12 to > 2.1.6 > > > > The following > >

s:actionmessage issue after upgrade to 2.1.6 (possible bug)

2009-08-21 Thread Struts Two
Before I migrate my struts application from 2.0.12 to 2.1.6 The following would generate: You can not change your role to Agent. which would display the message in the appropriate color defined by style sheet class However, after I have migrated my code to 2

Re: Migrating struts2 - Could not find property errors

2009-08-21 Thread Struts Two
Read the following link: http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html --- On Fri, 8/21/09, Raghuveer.V wrote: > From: Raghuveer.V > Subject: Migrating struts2 - Could not find property errors > To: user@struts.apache.org > Received: Friday, August

Re: Why submit didn't support param

2009-08-18 Thread Struts Two
why do n't you define a form and make your . ... in this way, each of your link acts like a submit button that posts a form that includes user's origional selection and any other thing that you want. --- On Wed, 8/19/09, jun hua wrote: > From: jun hua > Subject: Re: Why

Re: Anyone using the Ajaxtags with Struts 2

2009-08-18 Thread Struts Two
I have used it in one my applications. It is pretty simple and straigtforward. However, you are limited to the few tags provided. Not to mention that accessibility is a big issue. I just recently moved a projed to production using native dojo 1.3.2 and struts 2 and it is awesome. I tested it wi

[S2]OgnlValueStack warnings after upgrade struts 2.1.6

2009-08-17 Thread Struts Two
Much has been said about this issue both on Struts 2.1 migration Wiki page and previous emails on this subject on how to turn them off by putting a new limit category in log4j.xml. Some folks ,like me, do not use log4j and use only apache logging [apache-logging-xxx.jar]. Is there any other way

Re: [ S2 Tags ] : Need help - Line breaks etc.

2009-08-01 Thread Struts Two
Use "simple" theme and then you can use html constructs to format you page. --- On Wed, 7/29/09, Mickey Kumra wrote: > From: Mickey Kumra > Subject: [ S2 Tags ] : Need help - Line breaks etc. > To: "user@struts.apache.org" > Received: Wednesday, July 29, 2009, 2:14 PM > Hi > > I am using Str

Re: EJB Injection in Interceptor

2009-07-30 Thread Struts Two
You can either use Spring or implement your own EJB3 interceptor. Though I use my own EJB3 interceptor, I believe the best option is to go with Spring. Google Juice can also be option on the table as well. --- On Thu, 7/30/09, Robin Mannering wrote: > From: Robin Mannering > Subject: Re: E

Re: [S1.3.10] Apache Tiles fail

2009-07-17 Thread Struts Two
nio Petrelli > Subject: Re: [S1.3.10] Apache Tiles fail > To: "Struts Users Mailing List" > Received: Friday, July 17, 2009, 1:03 PM > 2009/7/17 Struts Two : > > > > I have been trying to start a new project using struts > 1.3.10 on Websphere V6.1. However, I ha

[S1.3.10] Apache Tiles fail

2009-07-17 Thread Struts Two
I have been trying to start a new project using struts 1.3.10 on Websphere V6.1. However, I have been unable to make tiles work with struts 1.3 . I get an exception as follows: Stack Dump = java.io.FileNotFoundException: mainPage .. I have downgraded to strtus 1.2.9 and everything is worki

RE: how to configure struts2 for /*.action?

2009-07-16 Thread Struts Two
Let's say you have /*.action as your filter URL and you have Websphere application server and IBM Http server as your webserver. Once you try to generate your plugin file for http server, *.action is not picked up by WAS as filter are ignored [since they are not supposed be accessed directly fo

RE: how to configure struts2 for /*.action?

2009-07-15 Thread Struts Two
Just keep in mind by setting /*.action for your struts filter url, you may cause yourself some problems down the road depending on the app server you use, as struts 2 is not following servlet 2.4 spec in this regard. filters are not supposed to be accessed directly as a resource according to th

Struts1.3.10 and command chains

2009-07-14 Thread Struts Two
Prior to struts 1.3, If I wanted to load my catalog (say catalog.xml) file (which had all the business logic in chains for my app), I had to add the followings to my web.xml: org.apache.commons.chain.CONFIG_CLASS_RESOURCE resources/catalog.xml Chain Listener Chain Listener

Re: Struts FilterDispatcher issue with regard to specification 2.4

2009-06-25 Thread Struts Two
.do This will be ignored during "plugin.xml" file generation as per 2.4 spec filters are not supposed to be accessed directly as a resource. This will result in "Page not found" error in http(s):////*.do. --- On Tue, 6/23/09, Struts Two wrote: > From: Struts Two > Su

Struts FilterDispatcher issue with regard to specification 2.4

2009-06-23 Thread Struts Two
Hello All: In Servlet specification 2.4 filters are not supposed to be accessed directly as a resource. And anything other than a jsp page need to have a Servlet mapping in order to make it accessible (as per specification). Struts 1 had ActionServlet which allowed for servlet mapping of *.act

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-05 Thread Struts Two
: Friday, June 5, 2009, 1:54 PM > Changing my mapping to > *.action broke my > submit buttons. I had to add ".action" to my form action > parameter > (action="myAction.action"). Is there some other setting to > accomplish > the same thing? > >

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-04 Thread Struts Two
I had a PMR open with IBM and L3 support pointed me to the right direction by sifting through the logs. --- On Fri, 6/5/09, Martin Gainty wrote: > From: Martin Gainty > Subject: RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for > namespace / and action name j_security_check > To: "

Re: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-04 Thread Struts Two
Finally, the problem with form based authentication got resovled. However; here is a summary of what happens that we get the error: There is no Action mapped for namespace / and actionName j_security_check With form-based authentication, Websphere authenticates a user by using URI //j_security

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Struts Two
This is weird, as basic authentication works for me and I have got no problem with it. Anyways,Earlier today, I sent my Struts enterprise file to WAS Level 3 support for testing [form based authentication] and I will keep you posted as soon as I hear sth.

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Struts Two
I am running Websphere 6.1.0.23 and Basic authentication works for me with the following two properties set: com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true com.ibm.ws.webcontainer.invokefilterscompatibility = true Can you apply fixpack 23 and test? I had two PMRs clo

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Struts Two
> Can you explain why index.html would work and index.jsp would not? I got > index.html to work Quite frankly, I do not know. I never had this problem when I was using struts 1. I could do something like this in my welcome file [which would invoke an action instead]: index.do and entering htt

Re: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-02 Thread Struts Two
> Typing http://servername/context/ results in "Error 404: There > is no Action mapped for namespace / and action name ." To fix this issue, modify your welcome part of web.xml, index.html create an index.html with the following content: Loading ... Then typing http:/

Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Struts Two
That is why I asked you if you are using "Form-based" authentication or "Basic" authentication. And I got no reply. However, looking at ur logs, esp the message: >>There is no Action mapped for namespace / and action name >>j_security_check Now I know that your are using "Form-based" authentica

RE: Struts 2 dispatcher does not see namespace and action in URL

2009-05-26 Thread Struts Two
Do you have Basic or Form based authentication enabled in your web.xml? --- On Tue, 5/26/09, Mitchell, Steven wrote: > From: Mitchell, Steven > Subject: RE: Struts 2 dispatcher does not see namespace and action in URL > To: "Struts Users Mailing List" > Received: Tuesday, May 26, 2009, 3:33 P

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Struts Two
>what would be nice is some explanation as to how to better configure the >filtering and namespaces in the web and struts xml files. Totally agree, I have struggling with this myself for sometime [extensive googling culminated in no good answer]. --- On Mon, 5/18/09, jesse crossley wrote: > F

Re: Migrate Struts 1.0 app from WebSphere 5.1 to 6.1 - JSP container failed to load the TagExtraInfo

2009-05-13 Thread Struts Two
I know when I migrated my struts 1.1 apps from Websphere 5.1 to Websphere 6.x, I had to add the a property to custom server properties to make it work, Go to : Application servers > [ur server name] > Web container > Custom properties and then add the following property: prependSlashToResource

Re: How do I get a request header

2009-05-12 Thread Struts Two
Here is one way I did to get "Authorization" value in the header: 1- Define an interceptor that retrieves "HttpServletRequest" 2- Define an interface ,say HeaderAware. 3- In your interceptor retrieve related values from Header and then inject it into your action if it implements "HeaderAware. T

Re: Struts 2 and Spring Framework

2009-04-18 Thread Struts Two
Going through Maven xml files in the link you provided to check for spring jar dependencies, I noticed a dependency on spring-web.jar, I was wondering where does it fit. I know that: spring-beans.jar, spring-core.jar, spring-context.jar are required for DI. spring-aop.jar is used for Aspect ori

Struts Filter mapping and namespace

2009-04-17 Thread Struts Two
I have a web application in which I would like to have everything that goes through /web/* to be handled by struts 2 and /rpc/* to be handled by a different framework (IBM RPC adapter). As for the struts 2 part, I have struts 2 filter configured in my web.xml as : struts2 or

Minimum number of jar files for Spring DI

2009-04-16 Thread Struts Two
Hello: I was wondering if anybody has the list of minimum number of jar files required to use only Spring DI [with AOP] in struts 2 as opposed to using spring.jar. __ Looking for the perfect gift? Give the gift of Flickr!

Re: Struts and EJB 3

2009-04-10 Thread Struts Two
@EJB annotation can be used only with container managed components like Servlet and JSF beans. Other than that either you have to use spring or right a customized EJB3 interceptor for struts 2 or modify request processing command chains for struts 1.3 to inject EJB 3 beans. Keep in mind you ca

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Struts Two
/research. > > musachy > > On Thu, Apr 9, 2009 at 11:22 AM, Struts Two > wrote: > > > > For those of you who had problem running Struts 2.1..6 > on WAS 6.1 as reported in [jira] (WW-2642). The problem >  has been resolved. Please refe

[jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Struts Two
For those of you who had problem running Struts 2.1.6 on WAS 6.1 as reported in [jira] (WW-2642). The problem has been resolved. Please refer to the JIRA, I have posted details in there. regards __ Get the name you've alwa

Re: Struts 2 Container Security problem

2009-03-17 Thread Struts Two
;> > >> Just as a reference, there is a ticket open for > this: > >> > >> https://issues.apache.org/struts/browse/WW-2642 > >> > >> musachy > >> > >> On Mon, Mar 16, 2009 at 5:37 PM, Struts Two > wrote: > >>> &g

Re: Problem getting request parameters in HTTP GET in Struts 2

2009-03-17 Thread Struts Two
Why do n't you let your action implement RequestAware interface and then get parameter from the request map. --- On Tue, 3/17/09, Duan, Bin wrote: > From: Duan, Bin > Subject: Problem getting request parameters in HTTP GET in Struts 2 > To: user@struts.apache.org > Received: Tuesday, March 17

Re: Struts 2 Container Security problem

2009-03-17 Thread Struts Two
ources > to secure using > web container authentication. > > > Musachy Barroso wrote: > > > > Just as a reference, there is a ticket open for this: > > > > https://issues.apache.org/struts/browse/WW-2642 > > > > musachy > > > > On Mon, Mar 16, 2

Re: Struts 2 Container Security problem

2009-03-16 Thread Struts Two
There is a problem running Struts 2.1.6 on Websphere when security is enabled. The case happens when url is an action not a resource like jsp or html. Refer to JIRA WW-2642 that I opened almost a year ago. I was hoping that Apache group can get their hands on Websphere to verify the issue but

Re: struts2 and dojo

2009-03-10 Thread Struts Two
I am using dojo 1.2.3 with struts 2. Just copy dojo library to your workspace and then you are set. However, you can not use struts dojo tag lib with it. In other words, you can not use theme="ajax", and you need to code your own javascripts to work with widgets or containers. I think it is wor

Re: Struts 1: Why is ActionServlet unavailable?

2009-03-06 Thread Struts Two
Which version of struts you are running? Running early version of struts like 1.1 on new web containers is problematic. I had the same issue running early version of struts on Websphere V6+. I had to add a custom property "prependSlashToResource = true" to my server make it run. Since you are

Re: [s2] accesing params from s:include tag

2009-02-27 Thread Struts Two
I do not think you will be able to access the param value passed to s:include within struts tag [clearly an obvious shortcoming]. Your best bet is using jsp expression language as the parameter is put in request scope. I was not able to do it, despite trying a million different forms as well as

RE: Problem with file download.

2009-02-27 Thread Struts Two
I had the same problem that I used to get prompted for file save on IE6 but on IE7 the attachment was being displayed in a new pop up browser. and I did the following to resolve it: application/octet-stream Then make ur action class implement "ServletResponseAware" inte

How to initialize a List property through action configuration

2009-02-07 Thread Struts Two
If I have a property such as private List myList; Is there a way that I can initialize the list through action configuration? I have tried the following: #action name="queueContent" class="ccol.action.queue.QueueRead" method="getMyQueueContent"# #param name="myList"#

Re: How to use "s:include" param in s:if

2009-02-07 Thread Struts Two
d time. --- On Fri, 2/6/09, Wes Wannemacher wrote: > From: Wes Wannemacher > Subject: Re: How to use "s:include" param in s:if > To: "Struts Users Mailing List" > Received: Friday, February 6, 2009, 11:48 PM > On Friday 06 February 2009 18:27:18 Struts Two wr

Re: How to use "s:include" param in s:if

2009-02-06 Thread Struts Two
s Wannemacher > Subject: Re: How to use "s:include" param in s:if > To: "Struts Users Mailing List" > Received: Friday, February 6, 2009, 11:07 PM > On Friday 06 February 2009 17:35:56 Struts Two wrote: > > I have run out of options and I was hoping if someone

How to use "s:include" param in s:if

2009-02-06 Thread Struts Two
I have run out of options and I was hoping if someone can help me. I have an include tag as follows: In my tabs.jsp, I tried to do the following: class="on" class="off" > But of no avail. Using ${param.tabId}, I can see the value of tablId. I even tried [crazy ideas like]: class=

Struts 2 and Command chains

2009-01-30 Thread Struts Two
Since I have moved to struts 2, It has been somehow hard for me to forgo the simplicity offered by combining struts 1.2+ and Apache common chains. In a number of projects [medium sized to large] I managed to get away only with ONE single action class for the whole project. Just consider the foll

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Struts Two
Why don't you use dojo famework directly? I am using dojo 1.2.3 with struts 2. You have much much more control and freedom in doing what you want to do. It may only take you a week or two of learining curve if you already do not know about the framework. --- On Thu, 1/29/09, jwl wrote: > Fro

Re: Problem in sending mail to mailing list

2009-01-23 Thread Struts Two
I had this problem before and it was because the email was being sent as Rich Text. change your email option to simple text and you should be fine. --- On Fri, 1/23/09, Dave Newton wrote: > From: Dave Newton > Subject: Re: Problem in sending mail to mailing list > To: "Struts Users Mailing

Re: Struts 2 session problem

2009-01-18 Thread Struts Two
ana wrote: >option 2 and 3 are overheads for a large app, I will check option 3 , >currently I am using glassfish, will check whether option 3 is available >in >gf. Struts Two wrote: > > There are a few solutions to your problem: > > 1- You can serialize your o

Re: Struts 2 session problem

2009-01-17 Thread Struts Two
There are a few solutions to your problem: 1- You can serialize your object as a hidden field and deserialize it on each request if you need it. It serves like a baggage that you carry form page to other. In this way, you avoid putting any object in session scope. Some folks may argue that this

Re: Manage Sessions in Struts

2008-12-01 Thread Struts Two
The following solutions will work: 1- On each request, you serialize your session object into an hidden field instead of ur session, but depending on size and number of your session objects, this can be very expensive as it needs to be submitted with every form and link to be deserialized if ne

Re: Struts2 upload

2008-11-02 Thread Struts Two
I had a similar problem and it used to happen whenever the file uploaded had a size larget than the one specified in struts configuration. Try files of small size first to see if you face the same issue (though your problem may be totally different).     - Original Message From: Nick J

Re: How to run an iterator twice in a page

2008-10-31 Thread Struts Two
Please ignore this topic as the problem was due a typo in my jsp. I apologize for wasting your time on an issue that is not a problem, I should have checked more carefully. regards, - Original Message From: Struts Two <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent:

Re: How to run an iterator twice in a page

2008-10-31 Thread Struts Two
twice in a page It's sort of "hack-ish", but can you make a copy of the list of users in the Java code, and iterate over the copied list for the 2nd set of results? -----Original Message- From: Struts Two [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 1:36 PM To: St

How to run an iterator twice in a page

2008-10-31 Thread Struts Two
I have a list of users and I would like to iterate over this list twice in a page. However in the following code snippet, The list is iterated only once and the second iterator displays nothing. Table 1        user id    user name                               Tab

Re: 404 error in struts 2 blank helloworld example in RAD7

2008-10-17 Thread Struts Two
>>So, I do have a working configuration for tomcat5.5. Now for WebSphere/Rad7. >>WebSphere does not give an error message but does load the .jsp but just not >>the .action. This must be a websphere configuration issue or an issue with >>conflicting .jars. i'll continue to investigate. Before you r

Re: 404 error in struts 2 blank helloworld example in RAD7

2008-10-17 Thread Struts Two
Struts 2.0.11.2 has a known issue for running on websphere. Downgrade to struts 2.0.11.1 [That is the one I am currently using with RAD 7.5 and Websphere 6.1.0.19 and it works perfect] or upgrade to build 2.0.12 which is supposed to have fixed the issue [I have not tried it yet] - Origina

Re: Issue getting autocompleter value in javascript

2008-09-29 Thread Struts Two
autocompleter is a dojo widget, you should try to get its value through dojo api for widgets not dom api. Your javascript will not work (as you have already noticed). regards, - Original Message From: sheva j <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Monday, September 29,

Re: Struts2+dojo+JasonArray

2008-09-16 Thread Struts Two
I am using Dojo 1.1.1[combo box widget and FilterString widget] with struts 2, I esp use extensive use of dojo ItemFileReader and my result type is geared toward Dojo Data reader abstractions. The only thing I have done on the strust part (apart from making sure the Jason string generated can be

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-10 Thread Struts Two
ultActionInvocation.invoke(DefaultActionInvocation.java:221) I guess it is game over until a new working release comes out .... --- On Wed, 9/10/08, Struts Two <[EMAIL PROTECTED]> wrote: From: Struts Two <[EMAIL PROTECTED]> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-10 Thread Struts Two
I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email below: - Original Message From: Rene Gielen <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, July 16, 2008 2:

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-10 Thread Struts Two
Most probably it is an xwork issue, I have been experiencing the same problem for Websphere for 2.0.11.2 and 2.1.2, though 2.0.11.1 works for me. - Original Message From: Bobby Mitch <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 4:41:40 AM Subje

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Struts Two
he mean time, if you or other people have any other suggestion, please don't hesitate. Thanks. --- On Sun, 9/7/08, Struts Two <[EMAIL PROTECTED]> wrote: From: Struts Two <[EMAIL PROTECTED]> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Struts Two
What version of Struts are you using? If you are using struts version 2.0.12, then this is a known issue (for websphere users). From what I understand,The fix for this problem is not included in xwork-2.0.5. However, if you are using struts 2.1.2 you are not supposed to see this error. -

Re: Extending EJBInjection interceptor

2008-08-27 Thread Struts Two
I am currently using my own customized EJB3InjectInterceptor for Websphere application server (It only injects local beans as I do not use remote in my application). Now seeing that Jeromy is working on a new Interceptor, I wonder if all the servers follow the same lookup pattern. I know that in

[S2] Reason for having Prepare interceptor before Param interceptor?

2008-08-25 Thread Struts Two
Is there any reason that "Prepare" interceptor" is called before "Param" interceptor in the default stack, I see numerous occasions, at least in my case, that you want to have prepare() method run based on user selection. I understand that I can build my stack the suits my needs, However; I was

[S2] Checkbox problem

2008-08-20 Thread Struts Two
I have a checkbox as follows in a jsp: Once a user selects the checkbox and submits the form,  ccUpdateFlag is set to true. However, on the database side the value is stored as 'Y' or 'N' . So my getCcUpdateFlag returns 'Y' or 'N' depending on the fact ccUpdateFlag is set to true or false. Now

Re: Get path to the webapp

2008-08-13 Thread Struts Two
Assuming you have a file named "test.txt" at the root of your webapp, you can get the absolute path name to the file with the following code snippet in ur interceptor.     ActionContext context = actionInvocation.getInvocationContext();     HttpServletRequest request = (HttpServletRequest) conte

Re: Simple validation does not work

2008-08-09 Thread Struts Two
xwork2.0.5 is missing a patch for websphere users, use xwork2.0.6. I am also using RAD 7.5 and Was 6.1.0.17 and EJB3 feature pack. When I upgraged to struts 2.0.12, I had problems in running my validations and some more issues, I downgraded to 2.0.11.1 and everything is fine. However, the struts

Re: EJB Injection for Struts 2 Actions

2008-08-03 Thread Struts Two
You can extend the default stack to inject EJB3. I am not sure if the lookups for all the servers are the same, but in my case, I have extended the default stack to inject EJB3 local lookups through an interceptor on Websphere and it is working prettry good. - Original Message From:

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: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Struts Two
What was meant is: Does you applicaiton functionsas expected despite the exception you see on ur console or the exception brings your application (or some functionality) to a halt. - Original Message From: prashanth2 <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Tuesday, July 15,

Where to get latest binaries

2008-07-14 Thread Struts Two
Hi: Can anyone tell me where I can get the latest binaries for struts 2.1..x that contains the fixes since the struts 2.1.2 build release on 02-May-2008. I would like to test JIRA WW-2642 that I opened using 2.1.2 and have the issue closed. All I need is the sample applicaiton{hello world) with b

Re: about security

2008-07-11 Thread Struts Two
Here are my thoughts [based on my experience with Websphere but I hope they can be generalized): 1- Using session for users's authentication is not a very good idea esp if there is a chance that they may have multiple browser or tabs open at the sametime. there is a great chance of session mix-u

  1   2   >