Re: Character encoding...

2007-03-23 Thread Martin Gainty
Riffla- can we see the contents of se.telia.kontaktamig.web.util.CharsetFilter? M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may

Re: Character encoding...

2007-03-23 Thread riffla
Encoding set in: JSP Page directive Content inside Html Meta tag And there is also a charsetFilter class used (see below) Struts-config.xml contains: === === web.xml contains: === Character Encoding se.telia.kontaktamig.web.util.CharsetFilter Character Encoding /* PARAMETER_ENCODING UTF

Re: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Riffla, riffla wrote: > Of course, forgot to mention, mainly I mean as output on a JSP page (both > bean:write and <%=...%>, but also System.out.println() in different places, > always the same result... The method of output is not relevant. Only the

Re: @ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

2007-03-23 Thread Piero Sartini
I see this warning as well when using ajax-validation. It seems ognl expects a .methodName method which is not there in the struts validators. There is another thread regarding this problem with the Topic "Problem with 2.0.6". The warning is there in 2.0.7 as well. Ted suggested to turn off dev

Re: Validator Issue

2007-03-23 Thread stanlick
Thanks Ted! I felt a little queezy about using "requiredstring" but couldn't get Eclipse to reveal a list of valid atrribute values with code assist. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > what about simple type conversion?

Re: Character encoding...

2007-03-23 Thread riffla
Of course, forgot to mention, mainly I mean as output on a JSP page (both bean:write and <%=...%>, but also System.out.println() in different places, always the same result... /Riffla Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Riffla, > > riffla wro

[JAVA] abstractg class calling abstract method in constructor

2007-03-23 Thread temp temp
I have a super class with an abstract method and a non default constructor and it calls this abstract method in its constructor This abstract method is implemented in the base class. First thing base class constructor does is call super() Exa

Re: struts.xml - change default location

2007-03-23 Thread Ted Husted
Put a stub struts.xml on the classpath that loads your working configuration from another location. If the stub is under classes and the one you want is under WEB-INF, try -HTH, Ted On 3/19/07, Bartek <[EMAIL PROTECTED]> wrote: Hi I have to face up the

Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Ted Husted
* http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html The simplest thing would be something like String id = UUID.randomUUID().toString(); -HTH, Ted On 3/23/07, temp temp <[EMAIL PROTECTED]> wrote: I need a object which generates unique identifie

[OT] Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Dave Newton
--- temp temp <[EMAIL PROTECTED]> wrote: > I need a object which generates unique identifiers > for all instances I create how to do this ? Synchronized counter? http://jug.safehaus.org/? http://static.springframework.org/spring-webflow/docs/pr5/api/org/springframework/webflow/util/RandomGuid

[JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread temp temp
I need a object which generates unique identifiers for all instances I create how to do this ? Thanks & Regards - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.

Re: Validator Issue

2007-03-23 Thread Ted Husted
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: what about simple type conversion? How will you ever have non-string coming from html? Does this mean we are back to domain object with only strings? No, it means that we have a special validator for Strings to cover both the notion of be

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > what about simple type conversion? How will you ever > have non-string coming from html? Does this mean we > are back to domain object with only strings? S2 (and others) already do simple type conversion. You will "never" have non-strings coming from the *browser*

Re: Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Piero Sartini
Am Freitag, 23. März 2007 schrieb Dave Newton: > --- Daniel Felix <[EMAIL PROTECTED]> wrote: > > [ the two JAR files ] > > I still think it's the double-JAR problem. yes, looks like that. the error message says it all. struts2-spring-plugin is loaded in 2 places: acnsf/struts2-spring-plugin-2.0.6

Re: Validator Issue

2007-03-23 Thread stanlick
what about simple type conversion? How will you ever have non-string coming from html? Does this mean we are back to domain object with only strings? On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Are you suggesting that we *ARE* back to needing > *DUMB* string

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> I'm looking at the javadoc for this, it doesn't say much. Do I just > create a class scope variable for the session context and then set > that from the argument in the set method? That is exactly how it works. You might want to look at ServletSessionAware, ServletRequestAware, ServletResponseA

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire
Thank you muchly! On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Chris Cheshire <[EMAIL PROTECTED]> wrote: > I'm looking at the javadoc for this, it doesn't say > much. Do I just create a class scope variable for the > session context and then set that from the argument > in the set meth

[S2] struts2-showcase in Websphere 6.1 not picking up static resources

2007-03-23 Thread alkira
I am trying to get Struts2 running on top of Websphere 6.1 and I am having some issues with this. These issues also occur in the Struts2Showcase. To get it running, I am basically deploying the struts2-showcase-2.0.6.war file into the Websphere application server. The application starts up and

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Chris Cheshire <[EMAIL PROTECTED]> wrote: > I'm looking at the javadoc for this, it doesn't say > much. Do I just create a class scope variable for the > session context and then set that from the argument > in the set method? Yep. > Is this set method called automagically by the > framework

Re: Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Dave Newton
--- Daniel Felix <[EMAIL PROTECTED]> wrote: > [ the two JAR files ] I still think it's the double-JAR problem. I personally don't know what to tell you except to make sure you have Glassfish and your EAR properly configured to avoid having the JAR file in two places. Anyone else? d. __

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire
On 3/23/07, Piero Sartini <[EMAIL PROTECTED]> wrote: > However, I am completely lost with Struts 2. Everything servlet > dependent is abstracted away "somewhere". I've been looking at the > tutorials and they don't cover this kind of thing at all. > > How do I go about putting the equivalent in a

Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Daniel Felix
Hi People I'm migrating to 2.0.6 and it occurs this error. I need very much . Any idea ? 2007-03-23 15:24:54,754 INFO (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) - Parsing configuration file [struts-default.xml] 2007-03-23 15:24:54,942 INFO (com.opensy

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> I will create a FAQ entry. good idea. maybe it makes sense to merge it with this one: http://struts.apache.org/2.0.6/docs/how-can-we-access-the-httpservletrequest.html Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

dojo and struts2

2007-03-23 Thread Hartrich, James CTR USTRANSCOM J6
Has anyone experienced a problem with > name="object.property" Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Piero Sartini <[EMAIL PROTECTED]> wrote: > An action class can implement ServletContextAware - > you have to implement a method setServletContext(ServletContext > servletContext) then. > > Another way is to use ServletActionContext.getServletContext(); Definitely use these over what I suggest

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> However, I am completely lost with Struts 2. Everything servlet > dependent is abstracted away "somewhere". I've been looking at the > tutorials and they don't cover this kind of thing at all. > > How do I go about putting the equivalent in an action with Struts 2? An action class can implement

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Chris Cheshire <[EMAIL PROTECTED]> wrote: > How do I go about putting the equivalent in an > action with Struts 2? I don't actually know if this is still valid, and I can't test it at the moment, but: http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html I beli

[s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire
Hi, I'm familiar with Struts 1, looking at Struts 2. The web app I am working on needs to use data sources that are controlled by tomcat connection pooling and accessed through JNDI. For this I need access to the servlet context that the action is running under. Previously I had a base action cl

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Are you suggesting that we *ARE* back to needing > *DUMB* strings in our *RICH* domain models? I > thought the tired old FormBean was a thing of the > past! That's backwards. You were testing an int with a String test and it failed *because* it wasn't viewing every

Re: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Riffla, riffla wrote: > Sending a request form a JSP using ISO-8859-1 with POST method (no problem > using GET method or UTF-8 on origin page) to either a Struts action or > another JSP (with either UTF-8 or ISO-8859-1, tried both) replaces my å,ä > a

Re: Validator Issue

2007-03-23 Thread Ted Husted
There's a different validator for numeric types. * http://struts.apache.org/2.x/docs/required-validator.html On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Oh! It is an int. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Validator Issue

2007-03-23 Thread stanlick
Are you suggesting that we *ARE* back to needing *DUMB* strings in our *RICH* domain models? I thought the tired old FormBean was a thing of the past! On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Oh! It is an int. That could cause a problem :) Probably n

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Oh! It is an int. That could cause a problem :) Probably not a good idea anyway, since you may want to enforce either Zip or Zip+4 and not let people enter "145". d. 8:00? 8:

Re: Validator Issue

2007-03-23 Thread stanlick
Oh! It is an int. Scott On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > What do you mean by target type? What (Java) type is the value you are validating? > > On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > > > Is the target type a String? > > > > On

RES: Major performance issue while displaying data in tabbedPanel

2007-03-23 Thread Daniel Felix
What's the structure of directory web_root\template\ajax ? web_root \template\xhtml Thanks. -Mensagem original- De: Gajbhe, Laxman (Contractor) [mailto:[EMAIL PROTECTED] Enviada em:

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > What do you mean by target type? What (Java) type is the value you are validating? > > On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > > > Is the target type a String? > > > > On 3/23/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Actually, I remove

Re: Akrogen plugin eclipse to generate Struts 2.x components

2007-03-23 Thread Angelo zerr
Sorry for my error, you can find WEB Site at http://akrogen.sourceforge.net/1_0_2/index.html 2007/3/23, Angelo zerr <[EMAIL PROTECTED]>: Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.source

Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Piero Sartini
Thank you Ted, like Harring I also wondered what namespaces are all about and decided they arent that important to me - however, already tried to make action names like "foo/bar". Now I consider namespaces very useful. Maybe this should be included in the wiki somewhere. (Tips & Tricks Corner?)

Akrogen plugin eclipse to generate Struts 2.x components

2007-03-23 Thread Angelo zerr
Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html which is able to generate code. With Akrogen you can write your wizard page with XML. But I'm developping new version

Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Vinny
yes, little tips like this are appreciated. On 3/23/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote: Ted, Thank you so much for sending this out. I was wandering what was the difference between namespace and package. I guess this explain well. Thanks ! hff On 3/23/07, Ted Husted <[EMAIL PR

Re: Validator Issue

2007-03-23 Thread stanlick
What do you mean by target type? On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: Is the target type a String? On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Actually, I removed the js attributes and it behaved the same. ---

Re: Validator Issue

2007-03-23 Thread Ted Husted
Is the target type a String? On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Actually, I removed the js attributes and it behaved the same. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Harring Figueiredo
Ted, Thank you so much for sending this out. I was wandering what was the difference between namespace and package. I guess this explain well. Thanks ! hff On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: Many Struts applications contain hundreds of pages. To help organize large application

Re: Validator Issue

2007-03-23 Thread stanlick
Actually, I removed the js attributes and it behaved the same. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: What happens if the custom JavaScripts are not used, but the validation element is used? If the JavaScript seems to be culprit, then I'd use FireBug or something to watch the reques

RE: Major performance issue while displaying data in tabbedPanel

2007-03-23 Thread Gajbhe, Laxman \(Contractor\)
That worked nicely! Thanks Felipe. Laxman -Original Message- From: Felipe Rodrigues [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 7:08 PM To: user@struts.apache.org Subject: Re: Major performance issue while displaying data in tabbedPanel Copy the template dir under the str

Re: Validator Issue

2007-03-23 Thread Ted Husted
What happens if the custom JavaScripts are not used, but the validation element is used? If the JavaScript seems to be culprit, then I'd use FireBug or something to watch the request, to see if there is something funky going on there. The server-side can only handle what it receives. -Ted. On 3

[S2] - Strange error: "" tag not working for ""

2007-03-23 Thread Monttez
Hi! The url tag: <@s2.url id="urlMenu" namespace="/Menu" action="getTreeMenu"> <@s2.param name="decorate" value="false" /> This tag works properly for a link.. as follows: test Result: "http://localhost:8088/WebStageCMS_v2/Menu/getTreeMenu.action?decorate=false " But the same tag do

Re: Validator Issue

2007-03-23 Thread stanlick
Server side. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: Is it the server-side or client-side validation that is firing when it should not? If it is the client-side, and the custom scripts are based on Prototype, there could be DOM-related issues, since Prototype rewrites the DOM. -Ted.

Re: Java-JSP data sharing mechanisms

2007-03-23 Thread Ted Husted
On 3/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a one-stop grid that identifies what each of these symbols represent and if/when they are even necessary? If there were, I believe it would be here * http://struts.apache.org/2.x/docs/ognl.html I checked WebWork in Action, and

Re: Model getter misfiring

2007-03-23 Thread stanlick
This looks like a much better form! I'll try it once I get booted up and let you know. Scott On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: What happens if the new (and preferred) key form is used instead? -T. On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I discovered som

Re: Validator Issue

2007-03-23 Thread Ted Husted
Is it the server-side or client-side validation that is firing when it should not? If it is the client-side, and the custom scripts are based on Prototype, there could be DOM-related issues, since Prototype rewrites the DOM. -Ted. On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have

Re: Model getter misfiring

2007-03-23 Thread Ted Husted
What happens if the new (and preferred) key form is used instead? -T. On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I discovered something strange today after adding logging to my domain classes. If I have the following text field on my web page: the Zip is being r

[JOB] Full-time Struts 2.0 Position in NYC

2007-03-23 Thread wumic
We are looking for a full-time Java web programmer who is familiar with WebWork/Struts 2.0. Actual WebWork/Struts 2.0 is less important as long as you are smart in Java and are curious about JRuby. If you are interested, drop me an email (michael-a.wu at db dot com) for more details. Thanks, M

Re: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Martin Gainty
I would work with the Websphere DOJO Toolkit by D/Ling Ajax for IBM Websphere Program https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/ibmajaxw/ M-- --- This e-mail message (including attachments, if any) i

RES: Struts 2.0.6 and Spring

2007-03-23 Thread Daniel Felix
Hi, Do you know what I can do to resolve this problem ? I already clean the project and I saw my classpath, but it doesn´t work yet. Any idea ? -Mensagem original- De: Don Brown [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 22 de março de 2007 19:36 Para: Struts Users Mailing

Re: treenode.ftl not found

2007-03-23 Thread Martin Gainty
ajax control freemarker template file specified in default.properties struts.ui.theme=ajax -OR- in jsp HTH, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity

Re: Character encoding...

2007-03-23 Thread riffla
Thanks for the reply Actually, we do use a filter setting the encoding to UTF-8, though I'm not sure if my problem is exactly the same as above. Sending a request form a JSP using ISO-8859-1 with POST method (no problem using GET method or UTF-8 on origin page) to either a Struts action or anoth

Re: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Tapio Holopainen
Not in showcase. - Tapio On Fri, 23 Mar 2007 14:16:53 +0200, Musachy Barroso <[EMAIL PROTECTED]> wrote: Did you try enabling the dojo debug? (/>) musachy On 3/23/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote: Hi, I deployed struts2-showcase-2.0.6.war to Tomcat 5.5. AJAX samples worked

Re: auto-refreshing stock price

2007-03-23 Thread Musachy Barroso
That would be the same thing as the timee on the div tag, DWR has a polling mode, which uses a timer, and another mode(comet? not sure about the name) that keeps an open connection with the client, and "pushes" the data. musachy On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: How abo

[S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Ted Husted
Many Struts applications contain hundreds of pages. To help organize large applications, the Struts configuration is designed around the notions of "packages" and "namespaces". Each package can set its own defaults, including a namespace setting. /example/HelloWorld.jsp

Re: auto-refreshing stock price

2007-03-23 Thread stanlick
How about using Prototype.js? It has a class specifically designed for AJAX "timer" behavior. On 3/23/07, YagNesh <[EMAIL PROTECTED]> wrote: Hi, We have been trying to create a trading portfolio page which lists about 20 stocks with prices. We need that stock price to be refreshed every 20-3

treenode.ftl not found

2007-03-23 Thread manoelp
Hi folks! I have this code below : But, when i execute my application, it happens this exception below : java.io.FileNotFoundException: Template /template/xhtml/treenode.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489)

Re: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Musachy Barroso
Did you try enabling the dojo debug? () musachy On 3/23/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote: Hi, I deployed struts2-showcase-2.0.6.war to Tomcat 5.5. AJAX samples worked just fine. Then I deployed the same .war to Websphere 6.1. None of the AJAX samples worked. Other samples seems

Re: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Riffla, riffla wrote: > And I guess that the form bean attributes is set prior to any code in the > form class, so that you can't set the characterEncoding in the form class > (at, for example, the beginning of initialize() method), or...? Correct. Y

Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-23 Thread Angelo zerr
No problem. I'm happy that JSControlsTags please you. Regards Angelo 2007/3/23, temp temp <[EMAIL PROTECTED]>: It works Thank you very much.Sorry for the complain It was my mistake i just downloaded src after ur reply i downloaded use cases i was able to run the jsp it works. Once aga

Re: auto-refreshing stock price

2007-03-23 Thread Lance
You could use DWR's reverse ajax which allows the server to push data to clients rather than the clients polling which can be inefficient. http://getahead.org/dwr/changelog/dwr20m1 http://getahead.org/dwr/download YagNesh wrote: Hi, We have been trying to create a trading portfolio page which

Re: Character encoding...

2007-03-23 Thread riffla
And I guess that the form bean attributes is set prior to any code in the form class, so that you can't set the characterEncoding in the form class (at, for example, the beginning of initialize() method), or...? Joe Germuska wrote: > >>I had problem with character encoding in my web application.

struts2+spring+hibernate multiple datasources

2007-03-23 Thread Philippe Le Gal
Hi, I'm looking for an example for the access of multiple datasources (mysql) on different mysql servers. Is the solution to put many declarations of in applicationcontext.xml? Thx in advance Philippe - To unsubscribe, e-ma

MySQL under App server 9 with NetBeans 5.5

2007-03-23 Thread Balazs Michnay
Hi, I've been trying to get MySQL working in my Struts app with NetBeans 5.5 and Sun Java System Application Server 9. I think I'm almost there, because NetBeans can succsesfully connect to MySQL, but my app can't. I read tons of posts in the mailing list archive but I couldn't solve the proble

Re: UTF-8 encoding problems

2007-03-23 Thread riffla
Hi I'm having the same problem, seems like putting the strings in a POST request is transforming the characters (in my case the swedish ä, and son forth, is erroneous). I use Struts, Tomcat and Tiles (and Ant to build and distribute) and I have also set the encoding in both JSP's, request object