[probably OT] Default locale on login page

2008-02-11 Thread Christopher Loschen
Hi all, My best guess is that this is happening before Struts gets involved, but I wondered if anyone might have some suggestions or places for me to look. I'm having some strange i18n behavior on our initial login page. Our app is still using Struts 1.1 (don't ask..). We're using

Re: [S2] ajax themed submits

2008-02-11 Thread Laurie Harper
Jason Wyatt wrote: I raised a JIRA ticket a while ago ( https://issues.apache.org/struts/browse/WW-1930 WW-1930 ) about the value of a s:submit tag not being set on the Action if the submit was ajax themed... apparently the problem was fixed in Struts2 release 2.1. I'm hoping to get my hands

RE: Basic setup question (tiles 2)

2008-02-11 Thread Allen, Daniel
I replaced the dependency I had before with the dependency you gave, but Maven's generated /lib directory still does not contain tiles-jsp.jar, and the error message has not changed: javax.servlet.ServletException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either

Re: OT: Alternative to html frames

2008-02-11 Thread Laurie Harper
Antonio Petrelli wrote: 2008/2/11, Marc Eckart [EMAIL PROTECTED]: But we are not so happy with this frame aproaches in general. But we don't know how to integrate the different (indepentend) applications transparent to the users without frames. A portlet container? Regular divs loaded via

Re: Interceptor Method Filtering

2008-02-11 Thread stanlick
Thanks Laurie. Actually, I'm looking for a more sensitive Method Filter. I want to be able to include/exclude interception based upon Action symbolic name and the built-in class only allows selection based upon Action class method names. The current implementation does not even allow wild card

Re: [probably OT] Default locale on login page

2008-02-11 Thread Laurie Harper
Christopher Loschen wrote: Hi all, My best guess is that this is happening before Struts gets involved, but I wondered if anyone might have some suggestions or places for me to look. I'm having some strange i18n behavior on our initial login page. Our app is still using Struts 1.1 (don't

Struts 2 equivalents?

2008-02-11 Thread Allen, Daniel
Hey. I have to convert an application written with Struts and Tiles 1 to 2. Could anyone tell me what the Struts2 equivalents for some of the old Struts1 tag libraries are? I'm looking specifically for http://struts.apache.org/tags-html and http://struts.apache.org/tags-logic Unfortunately,

Re: Not escaping '' when passing urls as http params

2008-02-11 Thread Laurie Harper
Srinivas.N. wrote: When I pass URLs as parameters, is there a way to not html escape the '' characters? Example: Lets say I have a JSP where I want to pass a URL as a param within another URL. Example: Some JSP - !-- Get the current URL -- s:url id=currentUrl includeParams=get/ !--

Re: OT: Alternative to html frames

2008-02-11 Thread Frank W. Zammetti
div's aren't equivalent to frames in most cases... the most important difference is that of namespacing... when you use frames, there's no worry of Javascript or DOM element name collisions, which can occur with simple div's. Marc, what aren't you happy about with the frame-based design?

RE: Basic setup question (tiles 2)

2008-02-11 Thread Allen, Daniel
Nevermind, I found the proper XML for the tiles-jsp jar. I'm curious as to what exactly is in the plugin jar that you suggested, though. Is that necessary to use Tiles 2 with Struts 2? ~Dan -Original Message- From: Allen, Daniel Sent: Monday, February 11, 2008 2:53 PM To: Struts Users

Re: CharacterEncoding bug in Struts2?

2008-02-11 Thread Laurie Harper
Asgaut wrote: I have recently been struggling with a utf-8 to ISO-8859-1 problem with Ajax and Struts2. The problem is basically that our application requires iso-8859-1 characters and Ajax is configured to only post utf-8 (ajax is utf-8 either way, can not be changed). So some kind of

RE: Re: [probably OT] Default locale on login page

2008-02-11 Thread Christopher Loschen
Thanks for your reply. I'm using WebLogic 9.2. I'd tell you how the login.jsp is localized, but I haven't been able to figure it out yet. I don't see anything on the page that I'd associate with i18n except that 1. It's already calling tiles custom tags, and 2. There are fmt:message tags on the

RE: Struts 2 equivalents?

2008-02-11 Thread Allen, Daniel
One more specific replacement question. In the Struts 1 app, we had some actions that had no class, but simply forwarded to largely static JSPs: action path=/home forward=/home.jsp /. In my new struts.xml, I tried: action name=home result name=success

RE: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
Actualmente tengo todos los proyectos sobre Jdeveloper 10.1.3, totalmente Cliente Servidor, el problema es que para actualizar un dato siempre tengo que refrescar todo la pantalla, y me gustaria utilizar el Ajax que viene en la Version 2 de Strust, ya he descargado las librerias de 2.0.11 de

Re: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alberto A. Flores
Todo depende de cuanto tiempo (y presupuesto) tengas disponible. Tambien depende de cuanto has escrito hasta el momento. On Feb 11, 2008 4:08 PM, Alvaro Ernesto Gomez Cerna [EMAIL PROTECTED] wrote: Buenas tardes Grupo, actualmente me encuentro desarrollando en Strust bajo JSP, en Jdeveloper,

RE: Struts 2 equivalents?

2008-02-11 Thread Allen, Daniel
Ok, I found some documents that partly answer my question. However, I'm still looking for a Struts2 equivalent to the old logic:messagesPresent tag. Do we just use s:if with some special test code now? -Original Message- From: Allen, Daniel Sent: Monday, February 11, 2008 3:48 PM To:

Re: What cd be wrong?

2008-02-11 Thread Nils-Helge Garli Hegvik
BTW: What timestamp has your struts2-portlet jar snapshot? I made a change on the 7'th of january that you may not have which are causing the error. Have you tried deleting your local snapshot version from the repository? If you have a maven proxy repository, remember to delete it there as well.

RE: Basic setup question (tiles 2)

2008-02-11 Thread Allen, Daniel
No, I hadn't seen that. Thanks for pointing me to a useable tutorial site. You have no idea how hard it is to find Struts 2 or Tiles 2 information in Google, since every Struts 1 and Tiles 1 page on apache.org has a little text link to the new version that make the search think it's relevant to

Re: What cd be wrong?

2008-02-11 Thread Nils-Helge Garli Hegvik
That is odd... I can't reproduce the error... What are the exact steps you're going through to produce this error? I'm trying with the downloaded source. Nils-H On Feb 11, 2008 5:43 PM, Sam Karl [EMAIL PROTECTED] wrote: Yes. I do have that hidden field oldName. I tried with the downloaded prj

RE: Every action is getting called twice

2008-02-11 Thread Charbel Abdul-Massih
Here's a snippet from my struts.xml interceptors interceptor name=login class=com.LoginInterceptor / interceptor-stack name=defaultLoginStack interceptor-ref name=login / !-- Our LoginInterceptor -- interceptor-ref name=paramsPrepareParamsStack /

Re: Basic setup question (tiles 2)

2008-02-11 Thread Lukasz Lenart
Did you follow docs configuration as in http://struts.apache.org/2.x/docs/tiles-plugin.html ? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Every action is getting called twice

2008-02-11 Thread Charbel Abdul-Massih
What am I doing wrong? Every request to an action goes into the actions' execute method twice... I am sure that I am returning SUCCESS from the action, and is mapped to a valid JSP. Thanks, Charbel

Update Strust 1.0 to Strust 2 Ajax

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
Updating developing in Jdeveloper 10.1.3 in Windows low Strust 1.0, it's necesary use Ajax, the listen in Strust 2.0 user Ajax, when implements Ajax en Strust 1. One Examples - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
Buenas tardes Grupo, actualmente me encuentro desarrollando en Strust bajo JSP, en Jdeveloper, me gustaria actualizarlo a la Version Strust 2, pues quiero utilizar Ajax que tiene integrado, alguien me podria ayudar como hacerlo. -Mensaje original- De: Allen, Daniel [mailto:[EMAIL

Re: Interceptor Method Filtering

2008-02-11 Thread Laurie Harper
stanlick wrote: I would like to add more granular interceptor filtering that is sensitive to the package and name elements but do not want to violate the DRY principle. Does anyone know if there is such a capability either in 2.0.11 or slated for 2.1? You can specify interceptors or

Re: [OT] Re: Javascript problem

2008-02-11 Thread Laurie Harper
addOnLoad() should cause the function to be executed as soon as the DOM is complete, which may be before the page has finished loading and rendering. However, since the DOM will be fully constructed, getElementById() should work properly at that point. I'd go with Dave's advice and confirm

Not escaping '' when passing urls as http params

2008-02-11 Thread Srinivas.N.
When I pass URLs as parameters, is there a way to not html escape the '' characters? Example: Lets say I have a JSP where I want to pass a URL as a param within another URL. Example: Some JSP - !-- Get the current URL -- s:url id=currentUrl includeParams=get/ !-- Construct a new url

Interceptor Method Filtering

2008-02-11 Thread stanlick
I would like to add more granular interceptor filtering that is sensitive to the package and name elements but do not want to violate the DRY principle. Does anyone know if there is such a capability either in 2.0.11 or slated for 2.1? Thanks, Scott -- View this message in context:

Re: Basic setup question (tiles 2)

2008-02-11 Thread Lukasz Lenart
It is better to add dependency for Tiles plugin, it will download all needed jars for you: dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version2.0.9/version /dependency Regards -- Lukasz

Re: [OT] Re: Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
If I use a hidden iframe to do the same, it works. I didn´t put the script tag in the head. I don´t understand why I should do it... I´m using Tiles and my header is reused in several pages, and this script is only valid for few ones. Thanks. Dave Newton escribió: --- Pablo Vázquez Blázquez

RE: Struts 2 equivalents?

2008-02-11 Thread Dave Newton
Check out ActionSupport's [1] implementation of ValidationAware [2], specifically the methods for checking if there are errors. Dave [1] ActionSupport: http://struts.apache.org/2.0.11/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html [2] ValidationAware:

Re: What cd be wrong?

2008-02-11 Thread Sam Karl
Yes. I do have that hidden field oldName. I tried with the downloaded prj too. Didn't work for me. I'm not sure what I'm missing. Thx. for the reply. Sam On Feb 9, 2008 12:26 PM, Nils-Helge Garli Hegvik [EMAIL PROTECTED] wrote: Have you remembered the oldName hidden field in the edit form? And

Re: [OT] Re: Javascript problem

2008-02-11 Thread Dave Newton
--- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: script type=text/javascript function init() { alert(document.getElementById('name[0]')); } dojo.addOnLoad(init); /script It is the same as: script type=text/javascript

[ANN] Struts2 Workshop: April 28-30, Sunnyvale CA

2008-02-11 Thread Ian Roughley
We are pleased to announce a Struts2 workshop, from April 28-30 in Sunnyvale, CA. Join us the week before JavaOne to learn about the next generation of evolution of the Struts web framework. In this three day workshop-style training course you'll learn everything you need to know to

Re: [OT] Re: Javascript problem

2008-02-11 Thread Lukasz Lenart
Did you put such code inside page header's tags? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Re: Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
script type=text/javascript function init() { alert(document.getElementById('name[0]')); } dojo.addOnLoad(init); /script It is the same as: script type=text/javascript alert(document.getElementById('name[0]')); /script It is executed before the page loads. Dave

Re: sending param as part of action

2008-02-11 Thread Dave Newton
--- Anubhav Gupta [EMAIL PROTECTED] wrote: I get Servlet Exception: equal symbol expected on that line. Right; it's not valid XML. Dave On Feb 11, 2008, at 8:06 AM, Dave Newton wrote: --- Anubhav Gupta [EMAIL PROTECTED] wrote: But passing property as value to s:param does not work. In

Re: sending param as part of action

2008-02-11 Thread Anubhav Gupta
I get Servlet Exception: equal symbol expected on that line. On Feb 11, 2008, at 8:06 AM, Dave Newton wrote: --- Anubhav Gupta [EMAIL PROTECTED] wrote: But passing property as value to s:param does not work. In general, it's a good idea to give more of a hint than it doesn't work.

Re: Populating dropdown

2008-02-11 Thread Roger Varley
On Monday 11 February 2008 12:01, Jayaveeran wrote: Hi all, I am populating a dropdown in my jsp which has more than 10,000 elements in it. Since the record size is very huge the time taken for the JSP to load is very high. I am using the folowing snippet to populate the dropdown. I am using

Re: Populating dropdown

2008-02-11 Thread Dave Newton
--- Jayaveeran [EMAIL PROTECTED] wrote: I am populating a dropdown in my jsp which has more than 10,000 elements in it. That's your first problem. Since the record size is very huge the time taken for the JSP to load is very high. I am using the folowing snippet to populate the dropdown.

Re: sending param as part of action

2008-02-11 Thread Dave Newton
--- Anubhav Gupta [EMAIL PROTECTED] wrote: But passing property as value to s:param does not work. In general, it's a good idea to give more of a hint than it doesn't work. s:param name=id value=s:property value=id// That's not valid XML. Dave

Re: Populating dropdown

2008-02-11 Thread Rushikesh Thakkar
Better option would be: using *autocompleter* instead of select. On Feb 11, 2008 3:01 PM, Jayaveeran [EMAIL PROTECTED] wrote: Hi all, I am populating a dropdown in my jsp which has more than 10,000 elements in it. Since the record size is very huge the time taken for the JSP to load is

html:select takes more time for populating values.

2008-02-11 Thread Jayaveeran
Hi all, I am populating a dropdown in my jsp which has more than 10,000 elements in it. Since the record size is very huge the time taken for the JSP to load is very high. I am using the folowing snippet to populate the dropdown. I am using struts framework. Is there any other way that I can

[SOLVED] Re: How to iterate session variable

2008-02-11 Thread Rushikesh Thakkar
This code is just fine. I made a mistake in selecting session variable for iteration. Kindly excuse me.. On Feb 11, 2008 1:50 PM, Rushikesh Thakkar [EMAIL PROTECTED] wrote: Hi all, I am trying to iterate the a session variable of type HashMapString, List using the following code:

sending param as part of action

2008-02-11 Thread Anubhav Gupta
Hi, I am very new to Struts 2. I am trying to do this: listOfRestaurantsByDeliveryPin will give list of Restaurant object, which have name and id properties. I want to display the name of restaurants as a link, and when user clicks it, go to the action with restaurant id as request param.

Setup Strust 2 in Jdeveloper

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
When Installer Strust 2 in Jdeveloper 10.1.3 only reference u url for view. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Not escaping '' when passing urls as http params

2008-02-11 Thread Srinivas.N.
You are right. In my JSP for newUrl in my example, I was using s:property value=#parameters.backLink/ and that was escaping th '' once again I think. Now, I changed that to s:property value=#parameters.backLink escape=false/ and that works. Thanks! - SN Laurie Harper wrote: Srinivas.N.

Re: Every action is getting called twice

2008-02-11 Thread Dave Newton
--- Charbel Abdul-Massih [EMAIL PROTECTED] wrote: What am I doing wrong? Every request to an action goes into the actions' execute method twice... I am sure that I am returning SUCCESS from the action, and is mapped to a valid JSP. You are not providing enough information for anybody to

Re: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Al Sutton
No apology needed, If you're helping someone out, then any language is good, and since Alvaro's English isn't that great then it's the only way to go. As for translation, it's probably only worth giving an overview of the problem (e.g. Alvaro had a problem with X and Y), that way if anyone

Re: YUI and S2 : problem in rendering date component

2008-02-11 Thread Jeromy Evans
The issue is that *something* needs to call the code to instantiate the datetimepicker after the html is added to the DOM. What library are you using to asynchronously load the fragment that contains the datetimepicker? And where is the script that instantiates the datetimepicker widget?

Re: Every action is getting called twice

2008-02-11 Thread Prajapati Manish
HI, Charbel In your problem, please make sure that your deployed application context is loaded only once. Because here,the problem might be related with it. Try it first and see what happens. Manish - Original Message - From: Charbel Abdul-Massih [EMAIL PROTECTED] To:

RE: Struts 2 onchange event to get values from databases

2008-02-11 Thread V K Kashyap
Hi every one see the below link which demonstrate it with example http://javachamp.blogspot.com/ http://javachamp.blogspot.com/ - :working: Vinod -- View this message in context: http://www.nabble.com/Struts-2-onchange-event-to-get-values-from-databases-tp15182158p15426116.html Sent

YUI and S2 : problem in rendering date component

2008-02-11 Thread ravi_eze
hi, i am using YUI tabs to display the form which contains a datetimepicker. But the component is not being rendered. I amusing tiles to hold the tabs component and doing tiles insert the URL which makes a new call to the servr and get the page to be displayed under it. When i display the page

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
labels:text name=label.welcomes:paramJohn/s:param/s:text/label This one works! label.welcome = Welcome {name} s:label key=label.welcome s:param name=nameJohn/s:param /s:label This one doesn't work, it displayed a colon : instead of the message from the i18n properties file. label.welcome

Re: validation for s:select tag

2008-02-11 Thread Raghuveer Rawat
Thanks Jeromy, Sorry, I did not provide enough detail. Only Header Key value is numeric '-1' so first option can be ruled out for me. For rest of the values Key is ISO Code e.g. USA and Value is Country Name e.g. 'United States' Below expression is not working for me. param

Basic setup question (tiles 2)

2008-02-11 Thread Allen, Daniel
Hi. I'm completely new at Struts and Tiles, but was given the task of converting an app that relied on the first versions of those to the the newer version. We build with Maven 2, and as instructed by the documentation at http://tiles.apache.org/dev/snapshots.html, I added

Re: Controller Configuration

2008-02-11 Thread tjahfe
I initially tried: controller processorClass=org.apache.struts.tiles.TilesRequestProcessor nocache=true/ controller maxFileSize=2G/ which gave me a compilation error, but still let me run the application... and that's why I wasnt sure and asked to confirm. Ok, thanks a lot for your help :)

Re: Controller Configuration

2008-02-11 Thread Laurie Harper
tjahfe wrote: Hi, Is it possible to have more than one controller configuration definition in struts-config.xml? No, the DTD for struts-config.xml specifies only one is allowed. Currently, I have the following definition: controller

Re: Every action is getting called twice

2008-02-11 Thread Laurie Harper
Another simple sanity check would be to delete the content of your JSP (not the JSP itself, just make it an empty file). If that solves the problem, you have an img tag with an empty 'src' attribute or something similar that's causing the browser to issue another request to the same URL. L.

[OT] Re: Javascript problem

2008-02-11 Thread Jeromy Evans
Just one minor clarification that hasn't been mentioned elsewhere in this thread. If your HTML fragment is being loaded via XHR with Dojo, then Dojo itself is responsible for parsing the html for scripts and then executing them. This is because inserting html into the DOM via innerHTML does

Re: Every action is getting called twice

2008-02-11 Thread Van Riper
On 2/11/08, Charbel Abdul-Massih [EMAIL PROTECTED] wrote: What am I doing wrong? Every request to an action goes into the actions' execute method twice... This is going to sound unrelated, but, do you use Firefox browser with Firebug enabled to test your code. I ran into one weird problem

Re: validation for s:select tag

2008-02-11 Thread Jeromy Evans
I'd look closer at your expression as it doesn't seem valid: param name=expression![CDATA[user.country == '-1']]/param If it's always returning true, that implies the expression inside the CDATA section is always false. First I'd put the ! operand inside the CDATA section and use string

Re: Not escaping '' when passing urls as http params

2008-02-11 Thread Jeromy Evans
s:url/ has an attribute called escapeAmp (default = true) that may assist you. http://struts.apache.org/2.0.11/docs/url.html Srinivas.N. wrote: When I pass URLs as parameters, is there a way to not html escape the '' characters? Example: Lets say I have a JSP where I want to pass a URL as

Re: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alberto A. Flores
BTW, I would like to apologize in advance to the forum for posting in Spanish only. I can only imagine this may be somewhat disrespectful to some. I'll try to translate any response as to not exclude anyone from what is mentioned here. Best Regards, Alberto Alvaro Ernesto Gomez Cerna

Re: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alberto A. Flores
Para comenzar, necesitas como minimo 4 jars: * struts-core-xxx.jar * xwork-xxx.jar * ognl-xxx.jar * freemarker-xxx.jar Si utilizas maven, hacer este cambio seria mas facil. Sino, Ant tambien te puede ayudar, pero dependiendo como es que mantienes tus dependencias, seria un poco mas

Re: sending param as part of action

2008-02-11 Thread Anubhav Gupta
Oh, got it. thanks. On Feb 11, 2008 8:35 AM, Dave Newton [EMAIL PROTECTED] wrote: --- Anubhav Gupta [EMAIL PROTECTED] wrote: I get Servlet Exception: equal symbol expected on that line. Right; it's not valid XML. Dave On Feb 11, 2008, at 8:06 AM, Dave Newton wrote: --- Anubhav Gupta

[S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
Hi If I have a message defined in i18n properties file shown below, label.welcome = Welcome ${name} How can I subsitute the variable name in the JSP? I tried the following and obviously it doesn't work! s:label key=label.welcome s:param name=nameJohn/s:param /s:label May be

RE: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
Me parece bien, ya anteriormente habia escuchado sobre DRW y el otro de JSON, pero me habia inclinado por Strust para no utilizar muchas librerias de uno y otro fabricante, pero si me gustaria manejar ambas y asi como dices ir cambiando despacio de Strust 1 hacia Strust 2, pues veo que trae muchas

Controller Configuration

2008-02-11 Thread tjahfe
Hi, Is it possible to have more than one controller configuration definition in struts-config.xml? Currently, I have the following definition: controller processorClass=org.apache.struts.tiles.TilesRequestProcessor nocache=true/ and I would like to set the default maxFileSize... Should I add

Re: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alberto A. Flores
Si es AJAX lo unico que necesitas, entonces quiza sea mejor que utilizes algun paquete open-source que te permita esta posibilidad. De esta maneras puedes hacer que tu aplicacion(es) puedan mejorar progresivamente. Un paquete que he utilizado mucho anteriormente es AjaxTags. Tambien esta DWR y

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Wes Wannemacher
IIRC, you can use named parameters. If you want to keep the {name}, use label.welcome = Welcome {name} s:label key=label.welcome s:param name=nameJohn/s:param /s:label On Mon, 2008-02-11 at 09:10 -0800, Chris Pratt wrote: Change your property to label.welcome = Welcome {0} Then you

RE: Every action is getting called twice

2008-02-11 Thread Wes Wannemacher
If you remove your custom interceptor, do you have the same problem? If answer == no, post your interceptor code. There may be something that you're not seeing that multiple eyes can help you with. Else Try putting your interceptor below the ref to paramPrepareParamsStack, I've found it's

Re: Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
Thanks Dave. I had already written this post before seeing your other response. I´ll try dojo.addOnLoad(fn). Dave Newton escribió: --- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: What I want is to execute my js after the page is loaded (so, the normal behabiour), not while it is

Re: Javascript problem

2008-02-11 Thread Dave Newton
--- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: What I want is to execute my js after the page is loaded (so, the normal behabiour), not while it is loading. window.onload does not execute while the page is loading; that wouldn't make any sense: it executes after all page-related requests

[OT] Re: Javascript problem

2008-02-11 Thread Dave Newton
--- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Anyone knows why my javascript code is executed at the loading of a page instead when it *should*?? Mostly because of your definition of should ;) For example, I have a .jspx page with a form: form ... input id=id ... ...

Re: Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
What I want is to execute my js after the page is loaded (so, the normal behabiour), not while it is loading. And I would like to add my javascript behaviour when necessary (on demand, no in page header). Is it possible? I have always done so but now with dojo and struts 2. Lukasz Lenart

How to iterate session variable

2008-02-11 Thread Rushikesh Thakkar
Hi all, I am trying to iterate the a session variable of type HashMapString, List using the following code: s:iterator value=#session.physicalArchives s:property value=key / s:property value=value/ /s:iterator It is not producing any markup. I have made sure that the

Re: OT: Alternative to html frames

2008-02-11 Thread Antonio Petrelli
2008/2/11, Marc Eckart [EMAIL PROTECTED]: But we are not so happy with this frame aproaches in general. But we don't know how to integrate the different (indepentend) applications transparent to the users without frames. A portlet container? Antonio

Re: Javascript problem

2008-02-11 Thread Lukasz Lenart
Try to put your JavaScript in page header and use onload header script window.onload = function() { alert('hi'); alert(document.getElementById('id')); } /script /header Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart

Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
Hi! Anyone knows why my javascript code is executed at the loading of a page instead when it *should*?? For example, I have a .jspx page with a form: form ... input id=id ... ... form script alert('hi'); alert(document.getElementById('id')); /script 'hi' is shown before the

OT: Alternative to html frames

2008-02-11 Thread Marc Eckart
Hi, I have an offtopic question :-) We have an intranet portal with a menu where you can start different applications. The applications run on different containers (e.g. tomcat, websphere) on different servers. The portal has a html frameset with two frames. The topframe is for the portal menu

Re: using disabled attributes in s:submit tag

2008-02-11 Thread Arpan Debroy
In IE browser read only buttons are not grayed up. Have anybody faced this? On Feb 9, 2008 1:03 PM, Arpan Debroy [EMAIL PROTECTED] wrote: I have a problem in Internet Explorer. The disabled elements are not grayed up. Have anybody faced the similar situation. On Feb 8, 2008 7:46 PM, Okan

S2 insertnig key and pojo(as its value) into a map

2008-02-11 Thread ravi_eze
hi, i have a form which holds a textfield (name:username). I need to wrap this username into an object user and insert it into a map as the value object for the key 'field0'. Action class: User user; //with setters and getters. MapString, User map = new LinkedHashMap .., .. ();//with setters

Advanced Use of Struts Tiles

2008-02-11 Thread Asad Habib
Hello. I have the following definitions in place in my tiles-def.xml file: definition name=.leftContentLayout path=/external/jsp/layouts/leftContentLayout.jsp put name=leftUpperContent value=/external/jsp/common/leftMenu.jsp / put name=leftLowerContent

RE: Struts 2 equivalents?

2008-02-11 Thread Dave Newton
I'd say you don't have a tile named home.jsp. --- Allen, Daniel [EMAIL PROTECTED] wrote: One more specific replacement question. In the Struts 1 app, we had some actions that had no class, but simply forwarded to largely static JSPs: action path=/home forward=/home.jsp /. In my new

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Chris Pratt
Change your property to label.welcome = Welcome {0} Then you might try: s:label key=label.welcome s:paramJohn/s:param /s:label If that doesn't work, you should be able to use: labels:text name=label.welcomes:paramJohn/s:param/s:text/label (*Chris*) On Feb 11, 2008 7:13 AM, hezjing

Re: [OT] Re: Javascript problem

2008-02-11 Thread Pablo Vázquez Blázquez
Hi Jeromy, Thanks for your explanation. Now, my problem has a reason. Well, you say The S2 implementation executes the scripts at the end of parsing, not as each script tag is encountered. At the end of parsing is before inserting html into the DOM, isn´t it? So, if it is so, that's my

Re: Populating dropdown

2008-02-11 Thread Jorge Martín Cuervo
Hi, Maybe you can divide your options in categories and use several dropdowns with an ajax loading. From the user point of view, large data in dropdowns are not very usefull. El lun, 11-02-2008 a las 06:01 -0800, Jayaveeran escribió: Hi all, I am populating a dropdown in my jsp which has

Re: html:select takes more time for populating values.

2008-02-11 Thread Randy Burgess
Don't put 10,000 items in a drop down list. There is no way that a human is going to read 10,000 items in a list and there is a good chance you will crash their browser. I suggest making the user select some options, through more drop down lists or input methods, to narrow down the final list

Re: Struts 2 equivalents?

2008-02-11 Thread Randy Burgess
Seems like it should be home instead of home.jsp, assuming you have a def for home in your tiles-defs.xml file. I'm assuming that the tiles definitions file is still tiles-defs.xml. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Allen, Daniel [EMAIL

Using il8n text in an interceptor

2008-02-11 Thread Grish
I'm studying how interceptors work and made a login interceptor based on Mark Menard's great tutorial: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor I managed to integrate the interceptor in my sample application but I want to access my resource bundle for the

Need help in highlighting a menu item selected!!!!

2008-02-11 Thread poojasreejith
Hi, I am using javascript menu.js to highlight the menu item selected. But the problem is, since I give the link to a url with .do extension (i.e) /HrRecruits/customer/list.do , it doesn't highlight the menu. is there any option to take off the .do, but still it should perform the action. How

RE: Actualizar Strust 1 a Strust 2

2008-02-11 Thread Alvaro Ernesto Gomez Cerna
Empezare por agregar los jars que me especificas asi ver de que coexistan ambos, Bueno leo un poco de ingles pero prefiero mejor el español, pero te aviso como voy en los avances asi que me ayudes a solucionar algunos travas que pueda el tener. -Mensaje original- De: Alberto A. Flores

CharacterEncoding bug in Struts2?

2008-02-11 Thread Asgaut
I have recently been struggling with a utf-8 to ISO-8859-1 problem with Ajax and Struts2. The problem is basically that our application requires iso-8859-1 characters and Ajax is configured to only post utf-8 (ajax is utf-8 either way, can not be changed). So some kind of conversion has to take