Re: Struts2 and PlugIn interface

2010-02-18 Thread Maciej Radochonski
Thanks for the answer. Maciej On Fri, Feb 19, 2010 at 2:53 PM, Lukasz Lenart wrote: > 2010/2/19 Maciej Radochonski : > > Currently I am migration one of my applications from Struts1 onto > Struts2. I > > am using several Struts1 PlugIn's (mainly for data source configuration) > > that are loade

Re: Struts2 and PlugIn interface

2010-02-18 Thread Lukasz Lenart
2010/2/19 Maciej Radochonski : > Currently I am migration one of my applications from Struts1 onto Struts2. I > am using several Struts1 PlugIn's (mainly for data source configuration) > that are loaded on start up of the app. Could someone advise me if such a > functionality, or similar, is availa

Struts2 and PlugIn interface

2010-02-18 Thread Maciej Radochonski
Hi All, Currently I am migration one of my applications from Struts1 onto Struts2. I am using several Struts1 PlugIn's (mainly for data source configuration) that are loaded on start up of the app. Could someone advise me if such a functionality, or similar, is available in Struts2? Thank you. -

Re: how to eliminate time in

2010-02-18 Thread Brian Thompson
Just add a getter to your "train" object that translates the startDate into the format you'd like. Use a DateFormat object. -Brian On Thu, Feb 18, 2010 at 5:07 PM, fireapple wrote: > > Dear all, I'm using > > > where startDate is a java.util.Date field of an object train. > > The output is

how to eliminate time in

2010-02-18 Thread fireapple
Dear all, I'm using where startDate is a java.util.Date field of an object train. The output is something like this: http://old.nabble.com/file/p27647328/date.png How can I eliminate the 12:00:00 in the textfield? Thanks! -- View this message in context: http://old.nabble.com/how-to-elimin

XSS vulnerability with

2010-02-18 Thread John Orr
This is my first posting to this list, so excuse me if this is an issue that's already been addressed. My concern is with the XSS vulnerability in the following use case: It seems (Struts 2.1.8.1) that there is no mechanism in s:text or s:param to do HTML escaping. If param1 contains user i

RE: [Q] executeScripts

2010-02-18 Thread Hoying, Ken
The problem is definitely with "djConfig.searchIds.push("${parameters.id?html}");". If I place this anywhere in my code then anything dojo related seems to come to a halt. Am I doing something wrong? Am I missing something? Where does Freemarker get the parameters.pushId from? Thanks, Ken

RE: [Q] executeScripts

2010-02-18 Thread Hoying, Ken
As a followup, the problem does not seem to be with the script tag being there but the javascript call itself. If I replace the javascript: "djConfig.searchIds.push("${parameters.id?html}");" with some other code, all works fine. Not sure if this is throwing some error that is getting swallowe

[Q] executeScripts

2010-02-18 Thread Hoying, Ken
I have a tabbed panel that contains a div which loads its content via ajax. Very standard. The ajax content includes javascript that I want to be executed so I have set the executeScripts parameter to "true" for the div. This all worked fantastic prior to upgrading to Struts 2.1.8.1 from 2.0.

Re: Any way to load resources in java.util.ResourceBundle

2010-02-18 Thread roman danilin
Struts2 used com.opensymphony.xwork2.util.LocalizedTextUtil class for managing Resource Bundles. Maybe this scenario will help you: - Create custom ServletContextListener for your webapp; - Override contextInitialized method like this (change bundle name): public void contextInitialized(ServletC

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-18 Thread Cimballi
>From the servlet specifications A special directory exists within the application hierarchy named “WEB-INF”. This directory contains all things related to the application that aren’t in the document root of the application. The WEB-INF node is not part of the public document tree of the applicati

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-18 Thread Greg Lindholm
Using a security constraint is the better way to go. Here is a slightly different configuration we use because there are some jsp files that are not part of the struts app portion which we want to allow access. What we do is put all out struts jsp's in to folder /struts then use this /struts/* in

Spring Session Scoping

2010-02-18 Thread Obinna
I'm looking into options to use the Spring's session scoping mechanism with struts2 to take advantage of Springs scoping abstraction and integration with session clustering solutions (ex: terracotta). I found a link to " http://struts.apache.org/2.1.8.1/docs/spring-session-components-workarounds.ht

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-18 Thread wild_oscar
Put them under WEB-INF. CS Wong wrote: > > Hi, > > I've had a pen test finding where our JSP files, which are in the public > directories of our web app can be opened directly as long as the user > knows > the name of the JSP file. This is a site where a login is mandatory to > access any cont

Old versions of Struts

2010-02-18 Thread RogerV
Hi I've been tasked with debugging a mis-behaving app based on struts 2.0.12 with a WEB-INF/lib list of dependant jars that would make you weep. Rather than trying to fight this, I thought I'd try the easy approach first. So, where can I find either a config-browser plugin jar that's compatible

I added Facebook Connect into the mix

2010-02-18 Thread Saeed Iqbal
My Demo Application now has Facebook Connect too http://code.google.com/p/remove-registration/ Now doing the same in PHP before moving forward in Java. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer http://iqbalconsulting.com

Re: Failed while destroying filter during shutdown

2010-02-18 Thread nani2ratna
http://nani2ratna.wordpress.com/2010/02/18/solution-java-lang-noclassdeffounderror-orgapachestruts2utilobjectfactorydestroyable/ check this if it helps you. Thanks RS totojack wrote: > > Updated struts from 2.0.6 to 2.0.8 (that fixed "FilterDispatcher not > cleaning up correctly") but nothing

RE: NoClassDefFoundError

2010-02-18 Thread nani2ratna
http://nani2ratna.wordpress.com/2010/02/18/solution-java-lang-noclassdeffounderror-orgapachestruts2utilobjectfactorydestroyable/ check this if it helps you. Thanks RS raryal wrote: > > Thanks for the quick reply. > > I am trying to deploy the application on Tomcat 6.x. I get the error > logg

Re: Looping problem

2010-02-18 Thread nani2ratna
http://nani2ratna.wordpress.com/2010/02/18/solution-java-lang-noclassdeffounderror-orgapachestruts2utilobjectfactorydestroyable/ check this if it helps you. Thanks RS tobias.schoessler wrote: > > I get this same phenomenon. running tomcat6. > > Is there any solution to this problem? > > Thi

RE: struts2 on jboss java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2010-02-18 Thread nani2ratna
http://nani2ratna.wordpress.com/2010/02/18/solution-java-lang-noclassdeffounderror-orgapachestruts2utilobjectfactorydestroyable/ check this if it helps you. Thanks RS Jon Pearson wrote: > > Well, I got past my problem by providing the name of the action to > execute, instead of relying on To