Vote for Java runtime for Google App Engine

2008-04-16 Thread Van Riper
If you have not heard about the recent launch of Google App Engine, I blogged about it here with links to more information and video recorded at the official launch event on April 7th: http://weblogs.java.net/blog/van_riper/archive/2008/04/google_app_engi_1.html It is a free (up to a fair amount

Re: Overriding subset of interceptor params

2008-04-16 Thread Jon Wilmoth
Thanks for the response. The issue I'm seeing isn't with overriding parameters all parameters available, but rather just one or two out of all the interceptor params Doesn't work: actionSpecificValue Works: defaultValueA defaultValueB actionSpecificV

datetimepicker doesn't show up

2008-04-16 Thread tristan_colson
I am trying to use s:datetimepicker. I have the in my section. I have like this: to The html renders like this: // Dojo configuration djConfig = { baseRelativePath: "/struts/dojo", isDebug: false, bindEncoding: "UTF-8", debugAtAllCosts: true // no

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread ryan webb
Dear Randy, Thank you very much for your kind reply..your method is very good. I will note your reply. =) Is it possible to transfer query string using this method? although i am not quite sure yet that this will work. I will get parameter in my action class using * request.getParameter("orderNum

Re: Overriding subset of interceptor params

2008-04-16 Thread Gabriel Belingueres
Seems OK to me (according to the current documentation.) I've only overriden interceptor parameters in the declaration of a new stack, and it is working OK: true ERROR my.package.here Try to create a new stack for your action

Ajax components inside a tabbed panel

2008-04-16 Thread Márcio Gurgel
I'm having lots of problems with components inside tabbedPanels... For example: This example from show case works outside a tabbed panel: 2. Attach to "onmouseover", and "onclick" event on Area below and update content of Div1, highlight targets with green color Mouse Over or

Re: ParameterAware Arrays

2008-04-16 Thread Gabriel Belingueres
You can of course set up instance variables in your action class with identical names as the parameters you intend to use. 2008/4/16, Dustin S. <[EMAIL PROTECTED]>: > I noticed the the map for setParameters is . If I > intend to always only use [0], is there any easy way to accomplish > this witho

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Parker Grimes
Thanks for your help I had an "ah ha" moment. I know I read that the stack gets passed through twice, once down the stack and then back up but I had forgotten that. That was my problem. The exception was being thrown on the way back up the stack and being caught by the default ExceptionMappingInter

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Nils-Helge Garli Hegvik
The default ExceptionMappingInterceptor is "closer" to the error (as it is configured by default), so it will intercept it first (on the way out... [1]). If you already have configured exception mappings for that interceptor, it will never reach your interceptor. It might be better for you to repla

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread Randy Burgess
You can pass a query string to the popup window. Here is an example. And then in the popup window to get the orderNumber param passed in above: Reference Number: ${param.orderNumber} You might want to change the href to # and put the window.open code in the onclick event but other than that

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Parker Grimes
My interceptor is being called, but it appears that com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor is still being called before my interceptor, despite having my interceptor declared first in the stack. As you can tell my interceptor is handed the "error" result rather than catchin

Overriding subset of interceptor params

2008-04-16 Thread Jon Wilmoth
I'm trying to override one of three interceptor parameters in an action specific config using method #2 described in http://struts.apache.org/2.0.11.1/docs/interceptors.html#Interceptors-InterceptorParameterOverriding. Unfortunately the other two parameters that I'm not overriding are not being

Re: Text formatting

2008-04-16 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Adam Gordon <[EMAIL PROTECTED]> wrote: > > I'm sure this was totally unintentional and you did it to simply get the > > email address of the mailing list, but thread hijacking is generally > > frowned upon in support mailing lists. > > He started

Re: Text formatting

2008-04-16 Thread Dave Newton
--- Adam Gordon <[EMAIL PROTECTED]> wrote: > I'm sure this was totally unintentional and you did it to simply get the > email address of the mailing list, but thread hijacking is generally > frowned upon in support mailing lists. He started the thread, and it's about formatting (via the tag).

Eclipse plugins to verify xml/jsp at compile time?

2008-04-16 Thread Michael Gagnon
Is there any plugin support for eclipse that can help validate struts2 configuration? So if I have a struts.xml mapping like: ... Then some build-time plugin might check and see the userAccounts.action.LoginUserAction class does not exist Or perhaps a struts tag in a JSP might look like: ...

Re: Text formatting

2008-04-16 Thread Adam Gordon
James- I'm sure this was totally unintentional and you did it to simply get the email address of the mailing list, but thread hijacking is generally frowned upon in support mailing lists. --adam Hartrich, James CTR USTRANSCOM J6 wrote: Struts2.0.9 Has anyone successfully formatted a number

Re: Validation of Struts XML files

2008-04-16 Thread Adam Gordon
Well, the DTD files are identical, only the URLs are different so I don't expect the outcome to be any different And it turns out it's not. Changing the URL does not prevent Tomcat from going out and trying to retrieve the DTD even though I've added it to the JAR file. Any other ideas?

ParameterAware Arrays

2008-04-16 Thread Dustin S.
I noticed the the map for setParameters is . If I intend to always only use [0], is there any easy way to accomplish this without having to do [0] everytime I get() a parameter from the map? I noticed there is SingleValueMap in webwork for this purpose. Does something exist like this in Struts 2 or

Re: datetimepicker on 2.1.1-SNAPSHOT

2008-04-16 Thread Dave Newton
--- D�cio Heinzelmann Luckow <[EMAIL PROTECTED]> wrote: > The ajax tags was moved to another package or plugin? Plugin. > Is there an release notes to 2.1.1? http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html http://struts.apache.org/2.0.11.1/docs/versio

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Nils-Helge Garli Hegvik
I did some testing locally, and it looks to me like exceptions should be propagated properly. Are you sure that the exception is not handled somewhere else? From your logs, it appears that "error" is returned somewhere along the chain. Nils-H On Wed, Apr 16, 2008 at 12:46 AM, Parker Grimes <[EMAI

Re: Text formatting

2008-04-16 Thread Dave Newton
--- "Hartrich, James CTR USTRANSCOM J6" wrote: > Has anyone successfully formatted a number 555 into 555-. > > MyAction.properties: format.telephone={0,number,###-} > > My.jsp: > > > > > The only output render

Re: Validation of Struts XML files

2008-04-16 Thread Dave Newton
Does it work if you use the DTD it says to use? http://struts.apache.org/dtds/struts-config_1_3.dtd";> Dave --- Adam Gordon <[EMAIL PROTECTED]> wrote: > Last night, our company had a maintenance window whereby Internet access > was shut off from our office to the outside world. During that ti

datetimepicker on 2.1.1-SNAPSHOT

2008-04-16 Thread Décio Heinzelmann Luckow
Hi all, I was testing an master-detail screen with When I update the struts version to 2.1.1 a give this message: java.lang.NoClassDefFoundError: org/apache/struts2/views/jsp/ui/DateTimePickerTag at org.apache.jsp.cre_jsp._jspx_meth_s_005fdatetimepicker_005f0(* cre_jsp.java:466*) at org.apache.

Text formatting

2008-04-16 Thread Hartrich, James CTR USTRANSCOM J6
Struts2.0.9 Has anyone successfully formatted a number 555 into 555-. MyAction.properties: format.telephone={0,number,###-} My.jsp: The only output rendered to the jsp page after numerous attempts is the st

Validation of Struts XML files

2008-04-16 Thread Adam Gordon
Last night, our company had a maintenance window whereby Internet access was shut off from our office to the outside world. During that time I was doing development and attempted to start up our web app in a development environment. I've not seen this error in almost 2 years but it's apparent

Re: dinamically parameters

2008-04-16 Thread Antonio Petrelli
Please write in English. This is an English speaking mailing list. Antonio 2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Sto facendo un motore di ricerca di news. > Inizialmente ho una pagina html che mostra le news piu aggiornate e fino > qui nessun problema. > Il fatto è che per ogni ne

Re: dinamically parameters

2008-04-16 Thread [EMAIL PROTECTED]
Sto facendo un motore di ricerca di news. Inizialmente ho una pagina html che mostra le news piu aggiornate e fino qui nessun problema. Il fatto è che per ogni news mostrata ho un link del tipo "altre n news simili" dove si accede alle notizie simili per quella particolare news. Visto che io ho

Re: dinamically parameters

2008-04-16 Thread Antonio Petrelli
2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I have an Object List of objects News and when a user click on a link of the > interfece i have to pass this parameter to the correspondent action. > But this parameter is setted only at run time, so i have to pass it > dinamically. > > Can I

Re:

2008-04-16 Thread JRD
I can't use ${x} because I am not always looking for x. The basics of what I am doing is building a tile that will print out any property in my action/form. So I have some JSP #1 that says ... And for each definition it inserts JSP #2 that looks like... I just can't figure ou

Re: Problem with Select tag

2008-04-16 Thread Milan Milanovic
Yes, I understand. But if you read my post, EVERYTHING works fine, but when I add namespace to package in struts.xml (and in /pages/administration/list.jsp /pages/administration/list.jsp ... UserAction.java: -- public class UserAction exte

RE: ServletRedirectActionResult - is there a way to set parameters?

2008-04-16 Thread Brad A Cupit
> I need to tag along a request paramter. So my annotation looks > like this: > > @Result(name="enterNewContactInfo",value="enterNewContactInfo", > type=ServletActionRedirectResult.class,params={"country","AUT"}) > > I get a nasty NPE if I add the params. If I remove it everything works fine.

dinamically parameters

2008-04-16 Thread [EMAIL PROTECTED]
I have an Object List of objects News and when a user click on a link of the interfece i have to pass this parameter to the correspondent action. But this parameter is setted only at run time, so i have to pass it dinamically. Can I pass an Object list to an other action??? How I can do It??? I'

Re: Advantage of prepare()?

2008-04-16 Thread Dave Newton
--- Michael Gagnon <[EMAIL PROTECTED]> wrote: > I've been working with struts2 for about 2 months and so far I've been > using the preparable interface to populate any data the resulting page > wants to display. I've used the execute method to do non-visible work > and determine a result (which c

Re: Advantage of prepare()?

2008-04-16 Thread Jukka Välimaa
With preparable, you can load the objects you need in prepare() method, and do whatever specific you want in the actual called method. In CRUD actions, it is very handy to use prepare and paramsPrepareParams to first load the stuff you want, and after prepare all the parameters are inserted automat

RE: Problem with Select tag

2008-04-16 Thread Michael Gagnon
Can you show your struts xml, calling java action, and resulting jsp code? I've noticed error messages like that whenever ANYTHING was wrong on a page with a select box -- completely independent of anything to do with the select box. So I think whatever you changed MAY have broken something else an

Re: Problem with Select tag

2008-04-16 Thread Milan Milanovic
Nobody has an answer to this simple question ? As I asked, there is with select's tag "list" attribute, when namespace is added to the package and to the form tag. It doesn't recognize given array from the action class anymore. Do I miss something or this is a serious error in Struts 2 ? -- T

Advantage of prepare()?

2008-04-16 Thread Michael Gagnon
I've been working with struts2 for about 2 months and so far I've been using the preparable interface to populate any data the resulting page wants to display. I've used the execute method to do non-visible work and determine a result (which controls flow). I'm wondering if this is the intended

Re: tiles problem

2008-04-16 Thread Antonio Petrelli
2008/4/16, Chris Pat <[EMAIL PROTECTED]>: > > In 5.0.28 it says the action is not available and the only difference is > that it is not loading that Factory. It must something subtle but > deterministic. Any ideas what could be different? I have looked and they > seem identical in server.xml and

Re: tiles problem

2008-04-16 Thread Chris Pat
Hi Antonio Thanks, however it is very consistent. In 5.0.28 it says the action is not available and the only difference is that it is not loading that Factory. It must something subtle but deterministic. Any ideas what could be different? I have looked and they seem identical in server.x

Re: tiles problem

2008-04-16 Thread Antonio Petrelli
2008/4/16, Chris Pat <[EMAIL PROTECTED]>: > > I two different deployment of Tomcat with an app that work fine in 5.0.27 > but fails in 5.0.28. Looking at the startup the only difference I can see > this time is that the 5.0.27 loads this: > org.apache.struts.tiles.TilesPlugin initDefinitionsFactor

tiles problem

2008-04-16 Thread Chris Pat
Hello I two different deployment of Tomcat with an app that work fine in 5.0.27 but fails in 5.0.28. Looking at the startup the only difference I can see this time is that the 5.0.27 loads this: org.apache.struts.tiles.TilesPlugin initDefinitionsFactory and the 5.0.28 does not. Is there a way

Re: action with dynamic parameter

2008-04-16 Thread Martin Gainty
implement ParameterAware and then call getParameters method to obtain the map e.g. Map parameters = this.getParameters(); http://struts.apache.org/2.0.11.1/docs/how-can-we-access-request-parameters- passed-into-an-action.html Martin- Original Message - From: <[EMAIL PROTECTED]> To: "struts

action with dynamic parameter

2008-04-16 Thread [EMAIL PROTECTED]
Hi, when a link i clicked I would pass a parameter to an Action.This parameter is an object list, but i can't to define the action with tag

Re: [S2] Selecting value in radio elements

2008-04-16 Thread Lukasz Lenart
Hi, After some experiments, I found the solution: N Just look into riadiomap.ftl template and everything will be clear (especially for Freemarker developers ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart --

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread Antonio Petrelli
2008/4/16, ryan webb <[EMAIL PROTECTED]>: > > I am having trouble with it..I created a pop up window using javascript > and > i cant pass query string on new window. > when i clicked a I pass a paramId and paramProperty and I cant > make it appear to new window. > > I have an action class that has

[S2] Selecting value in radio elements

2008-04-16 Thread Ramanathan RV
Hello, In this list, how do I preselect "No"? -- Thanks Ram

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread ryan webb
Antonio, >1) What Struts? Struts 1.2.9 (Netbeans bundle) >2) You can still do it in Javascript. I see.. I just want to know if you do it with struts. I am having trouble with it..I created a pop up window using javascript and i cant pass query string on new window. when i clicked a I pass a para

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread Antonio Petrelli
2008/4/16, ryan webb <[EMAIL PROTECTED]>: > Is it possible to make a window pop up using struts? > usually this can be done in Javascript.. 1) What Struts? 2) You can still do it in Javascript Antonio - To unsubscribe, e-mail:

Trouble executing scripts in returned ajax content

2008-04-16 Thread Jukka Välimaa
Hi everyone, I'm using Struts 2.1's ajax tags to replace content in a section of my page. I have this section enclosed in sx:div tags, like so: .. I change the div content by editing its href with javascript and then publishing the topic it's listening to: function reloadContentSection(url)

Is it possible to make a pop up window using Struts?

2008-04-16 Thread ryan webb
Hi, Is it possible to make a window pop up using struts? usually this can be done in Javascript.. God bless, Ryan Webb

Re: ServletRedirectActionResult - is there a way to set parameters?

2008-04-16 Thread Alex Shneyderman
Hmm, it appears that disabling zero config and codebehind and supplying the struts.xml of the equvalent config works just fine. I am having way too many problems with this zero config/codebehind. Nice idea crappy implementation :-( Alex. On Wed, Apr 16, 2008 at 8:33 AM, Alex Shneyderman <[EMAIL P

Re: [OT] Scheduled DB clean up service with Spring

2008-04-16 Thread Peter Theissen
Hi, many thanks to you! I was really making things more complicated then it was neccessary: Adding the quartz.jar to the runtime classpath was enough to fix the problem. Have a nice day Peter Hi Peter, Please try adding the quartz.jar or spring-quartz.jar to your classpath. You can check ou