Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Laurie Harper
Scott Van Wart wrote: Frank W. Zammetti wrote: Hi Scott... have a look at the ResponseHelpers class in Java Web Parts: http://javawebparts.sourceforge.net More precisely: http://javawebparts.sourceforge.net/javadocs/index.html The encodeEntities() method should do the trick. Ahh... that cl

Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Scott Van Wart
Frank W. Zammetti wrote: Hi Scott... have a look at the ResponseHelpers class in Java Web Parts: http://javawebparts.sourceforge.net More precisely: http://javawebparts.sourceforge.net/javadocs/index.html The encodeEntities() method should do the trick. Ahh... that class name you mentioned

Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Frank W. Zammetti
Hi Scott... have a look at the ResponseHelpers class in Java Web Parts: http://javawebparts.sourceforge.net More precisely: http://javawebparts.sourceforge.net/javadocs/index.html The encodeEntities() method should do the trick. Frank -- Frank W. Zammetti Founder and Chief Software Architect

Re: Struts2

2006-08-17 Thread Ted Husted
On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote: Hi, I am trying to get started on Struts2 using the nightly build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started with the very basic example from 'http://cwiki.apache.org/WW/hello-world.html' There were several problems with the code o

Re: Question about Lookup dispatch action

2006-08-17 Thread Scott Van Wart
Christopher Goldman wrote: On Thu, 2006-08-17 at 14:26 -0700, mosho wrote: Hi All, I have multiple buttons on my form and I am using LookUpDistpatchAction to submit the form depending on which button is clicked. I have another requirement now, I have multiple images that are going to be lin

Re: Question about Lookup dispatch action

2006-08-17 Thread Christopher Goldman
On Thu, 2006-08-17 at 14:26 -0700, mosho wrote: > Hi All, > > I have multiple buttons on my form and I am using LookUpDistpatchAction to > submit the form depending on which button is clicked. > > I have another requirement now, I have multiple images that are going to be > links. I need to submi

RE: RE: Struts2

2006-08-17 Thread David Friedman
In your web.xml file, what are you servlet mappings and the URLs they are mapped to? Are you sure it is not /helloWorld.action that you need to reach over the web? WW (Struts2's core code) used to have the *.action convention instead of *.do for servlet mapping. Again, your web.xml file should h

Question about Lookup dispatch action

2006-08-17 Thread mosho
Hi All, I have multiple buttons on my form and I am using LookUpDistpatchAction to submit the form depending on which button is clicked. I have another requirement now, I have multiple images that are going to be links. I need to submit the form using onclick. So in my javascript, I will have t

Re: Struts2

2006-08-17 Thread Ted Husted
The default extension for Struts2 is "action". The default makes it easier to use both Struts 1 and Struts 2 in the same web applications. To change the default to ".do", add a "struts.properties" file under classes with the line struts.action.extension = do A good starting point is the Struts

Re: Auto render form bean as hidden fields

2006-08-17 Thread Scott Van Wart
Laurie Harper wrote: Scott Van Wart wrote: We have a requirement that the user be prompted if any changes have been made on a form, and they try to navigate away. I've divided this up Firstly, is the requirement to detect changes to the form compared to how it was last rendered, or compared

RE: Re: Forwards between webapps

2006-08-17 Thread Mulligan, Scott H
I worked on a project a couple of years ago where I had the need to forward between different web apps. Thanks to Craig McClanahan's advise I was able to extend the RequestProcessor to do this. This was done in Struts 1.1. Basically I set up specific forward name prefixes to indicate when to switch

Ready-made function somewhere to escape HTML?

2006-08-17 Thread Scott Van Wart
Hello, I have user-entered input managed by a few custom tags (Java classes, not tag files), and I need to encode this stuff to escape any special HTML characters the user might type. Is there a special one in Struts I can/should use, or should I write my own? (Struts 1.2.9, Tomcat 5.5.17)

Re: Struts 2.0 GA Production Ready Release

2006-08-17 Thread Ted Husted
Right now, some people are already using Struts 2 in production. The code itself is sound and feature-complete. We mainly need to mop up some infrastructure issues with the documentation, and a few loose ends with the packaging. If anyone is eager to get started, my best advice is to go with WebW

Struts 2.0 GA Production Ready Release

2006-08-17 Thread Garner Shawn
When is there going to be a Struts 2.0 GA Production Ready Release? I was looking over it and it looks pretty cool. Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Auto render form bean as hidden fields

2006-08-17 Thread Laurie Harper
Scott Van Wart wrote: We have a requirement that the user be prompted if any changes have been made on a form, and they try to navigate away. I've divided this up Firstly, is the requirement to detect changes to the form compared to how it was last rendered, or compared to how it was *origin

Re: Forwards between webapps

2006-08-17 Thread Laurie Harper
Scott Van Wart wrote: Saeed, Rada wrote: Forwards between webapps are not supported, cuz both have different contexts, this's what I got from running this : Is there any other way to achieve this forward between different web applications ? I think the class 'org.apache.struts.actions.Switch

Re: what's the c.tld in struts-el designed for?

2006-08-17 Thread Laurie Harper
Michael Cheung wrote: Hi, all; c.tld in struts-el is not support rtexprssion. So every flag should be set via action. I don't think it can finish any job in this style. What's the taglib designed for? Should I use c-rt.tld as default? The 'rt' stands for 'runtime expression' (i.e. <%expr%>).

Re: RE: Struts2

2006-08-17 Thread Monkeyden
Hmmm, looks like that has changed in Struts2. I don't know much about it as of yet. That error message says it's not defined in the DTD. I'll shut my big mouth now. On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote: If I set the path, I get the following message in the browser: file:/C:/tom

Re: RE: Struts2

2006-08-17 Thread Peter Steil
If I set the path, I get the following message in the browser: file:/C:/tomcat-5.5.17/webapps/mystruts/WEB-INF/classes/struts.xml:9:72 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:678) com.opensymphony.xwork

Re: RE: Struts2

2006-08-17 Thread Monkeyden
you need a path attribute for the action mapping. On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote: The exact same thing happens. I give you some more information. You know how my web.xml looks like. Here are the other files: struts.xml: http://struts.apache.org/dtds/struts-2.

Re: RE: Struts2

2006-08-17 Thread Peter Steil
The exact same thing happens. I give you some more information. You know how my web.xml looks like. Here are the other files: struts.xml: http://struts.apache.org/dtds/struts-2.0.dtd";> helloWorld.jsp helloWorld.jsp: --- <%@ tag

RE: Struts2

2006-08-17 Thread George.Dinwiddie
It looks like you're requesting a page with suffix mapping ("helloWorld.do") but you've configured struts to use prefix mapping ("/*"). What happens if you change to "*.do"? - George http://www.idiacomputing.com/ > -Original Message- > From: Peter Steil [mailto:[EMAIL PROTECTED]

Re: Struts and Jsessionid control

2006-08-17 Thread Michael Rush
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html says: Set to true if you want cookies to be used for session identifier communication if supported by the client (this is the default). Set to false if you want to disable the use of cookies for session identifier communication, an

Struts2

2006-08-17 Thread Peter Steil
Hi, I am trying to get started on Struts2 using the nightly build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started with the very basic example from 'http://cwiki.apache.org/WW/hello-world.html' and I still get the message 'The requested resource (/mystruts/helloWorld.do) is not available.'

Re: RE : Page contentType

2006-08-17 Thread Monkeyden
So ignore it in the JSP and set the HTTP Header conditionally in the Action. You have the response object available. The ultimate goal, after all, is for the JSP to be a passive actor. The generated JSPs make no assumptions about content type, so it will be whatever you say it is. On 8/17/06,

RE: What's the difference between struts-base and struts-el?

2006-08-17 Thread Karr, David
One comment inline. > -Original Message- > From: Scott Van Wart [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 16, 2006 5:53 PM > To: Struts Users Mailing List > Subject: Re: What's the difference between struts-base and struts-el? > > Michael Cheung wrote: > > Hi, all; > > > > Wha

RE : Page contentType

2006-08-17 Thread Jean-Marie Pitre
Thanks, my application is struts based. -Message d'origine- De : Monkeyden [mailto:[EMAIL PROTECTED] Envoyé : jeudi 17 août 2006 17:08 À : Struts Users Mailing List Objet : Re: Page contentType Sure, flatter us so we don't notice you're breaking a rule. Is it a straight JSP application

Re: Page contentType

2006-08-17 Thread Monkeyden
Sure, flatter us so we don't notice you're breaking a rule. Is it a straight JSP application or do you have a controller? On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, Excuse-me, I know it is not the right forum to ask this question but there are the best developper registered

Page contentType

2006-08-17 Thread Jean-Marie Pitre
Hi, Excuse-me, I know it is not the right forum to ask this question but there are the best developper registered on this mailing list ... ;-) My web application has to use 2 differents content type according to user language. I would like to change dynamically the <[EMAIL PROTECTED] contentType

Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Rahul Akolkar
On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote: How to Reload Message resources i.e Resource Bundles in struts 1.1??? Create a "reloadable" message resources factory, see factory attribute [1] of -Rahul [1] http://struts.apache.org/1.x/userGuide/configuration.html#resources_config ---

Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Monkeyden
I usually just touch the web.xml, to redeploy the app, but this isn't always feasible in production. On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote: How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gupta Software Engin

RE: retrieve image from database

2006-08-17 Thread George.Dinwiddie
Your image is probably being cached in the browser. > -Original Message- > From: Gomathi [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 9:41 AM > To: Struts Users Mailing List > Subject: retrieve image from database > > > hai, > thanks in advance. > when we edit image l

retrieve image from database

2006-08-17 Thread Gomathi
hai, thanks in advance. when we edit image logo we are not getting newly uploaded image.But it is perfectly stored in the database(the path of the image). whenever we add new image to db.its perfectly working. But when we go for edit its not working properly(ie) we not getting the newly edite

RE: Hi

2006-08-17 Thread Medicherla Lakshmi
Thank you for the information. Lakshmi. David Friedman <[EMAIL PROTECTED]> wrote: What is wrong with the documentation information at: http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html#param Which shows you can override the url and parameters if you have problems by setting t