RE: Submit with a link

2004-05-05 Thread Guillermo Meyer
In struts 1.0, we do as follows to determine formName for situations like this: <% String formName = ((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache .struts.action.Action.MAPPING_KEY)).getName(); %> This attribute is set in processPopulate method of ActionServlet:

Linking DispatchActions

2004-05-17 Thread Guillermo Meyer
direct. I could overrite DispatchAction.dispatchMethod to "rectify" method name according to some request attribute, but is there any other way to do it? Thanks in advance. Guillermo Meyer System Engineer EDS Argentina - Proyecto X71 Interbanking. 54.11.4322-1307 NOTA DE CONFIDENCIAL

[OT] OSWorkflow

2004-05-21 Thread Guillermo Meyer
Thanks in advance. Guillermo Meyer System Engineer EDS Argentina - Proyecto X71 Interbanking. NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de In

[ANN] Providers 0.3 Released (includes DisplayTag tip)

2004-05-22 Thread Guillermo Meyer
You also could use this provider to display options in a page (for example, while changing the status): And in a detail, you could show status description given the ID: Cheers! Guillermo Meyer System Engineer EDS Argentina - Proyecto X71 Interbanking. 54.11.432

[ANN] Providers 0.3 Released (includes DisplayTag tip and URL!)

2004-05-22 Thread Guillermo Meyer
http://providers.sourceforge.net/ -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Sábado, 22 de Mayo de 2004 09:24 a.m. To: Struts Users Mailing List Subject: [ANN] Providers 0.3 Released (includes DisplayTag tip) Providers is a framework to be used with JSP to

Multibox combined with other fields

2004-06-08 Thread Guillermo Meyer
"helper" class for completing the missing non posted checkboxes to indicate true or false in that porperties? In fact, i should need to have this arrays in order proceed in persisting this reservation: Number={"1", "2", "3", "4"} Title={&quo

RE:

2004-06-09 Thread Guillermo Meyer
Also you can set the "sort" value before forwarding to the JSP (ie in the previous action) 1) Action prepares the SORT collection and sets it in the request 2) Action sets default value to "sort" attribute only if "sort" has no value (so setting the default) 3) Action forwards to JSP 4) JSP renders

[ANN] Xkins 0.9.8 Released (includes Struts and Xkins POC)

2004-06-14 Thread Guillermo Meyer
template was modified and Xkins were reloaded, templates remained cached. This is solved in this version. 5) XkinProcessor and an undefined skin: if you create a XkinProcessor with an undefined skin name, the default skin name is used. 6) Add a SkinType getter to Xkins Cheers. Guillermo. Guiller

RE: Rendering Images

2004-06-17 Thread Guillermo Meyer
I was thinking that perhaps the problem of rendering an alternative image when the image is not found could be resolved with Xkins. You could create a ImageTemplateProcessor. This processor can receive the image name, verify if exists in the web server disk and if true, return the html image tag wi

RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Guillermo Meyer
Brazil? What is Brasil? I think Argentina must be in this site. Simone, I think that the portal should have at least a section of Diego Armando Maradona, who was, is and will be the greatest soccer player of the history! Cheers! Guillermo -Original Message- From: Daniel H. F. e Silva [mai

Detecting browser close

2004-06-22 Thread Guillermo Meyer
We are detecting when the user closes the browser window with this javascript (only in IE with JS enabled): function logoff() { if (document.all) { // IExplorer if (window.screenTop > 9000) { // window closed top.location="<%=re

ActionForm returning blank jsp

2004-06-22 Thread Guillermo Meyer
I have a blank page appearing when a null forward is returned. How is your input page attribute in the validator form set? May be Struts is trying to forward to a null forward so blank page appears. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Lunes, 21 de J

RE: ActionForm returning blank jsp

2004-06-22 Thread Guillermo Meyer
I have a blank page appearing when a null forward is returned. How is your input page attribute in the validator form set? May be Struts is trying to forward to a null forward so blank page appears. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Lunes, 21 de J

RE: Detecting browser close

2004-06-22 Thread Guillermo Meyer
We are detecting when the user closes the browser window with this javascript (only in IE with JS enabled): function logoff() { if (document.all) { // IExplorer if (window.screenTop > 9000) { // window closed top.location="<%=req

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Guillermo Meyer
You could also use Xkins (http://xkins.sourceforge.net/) to generate something similar in your css: .cssMainBody { background-color : ; color : ; } Or: .cssMainBody { ; } And let Xkins manage the styles in a skin fashion. Xkins 0.9.8 lets you to comose Skins so the functionality could be a

RE: Is there anyway an Action can dynamically return to a page based on input?

2004-06-28 Thread Guillermo Meyer
You are needing something like a "navigation stack", doesn't you? If so, let me know. We are working in an open source non intrusive struts solution of a navigation stack. Cheers. Guillermo. -Original Message- From: Pietro Dansk [mailto:[EMAIL PROTECTED] Sent: Viernes, 25 de Junio de 200

[OT] SecurityFilter: Custom Authenticator

2004-07-05 Thread Guillermo Meyer
, password), but I don't need this, because I wont have a username nor a password, just all authenticated information plus a digital signature. Thanks in advance. Guillermo Meyer System Engineer EDS Argentina - Proyecto X71 Interbanking. 54.11.4322-1307 NOTA DE CONFIDENCIALIDAD Este mensaje (

RE: OT - How to add icon in browser url field

2004-07-07 Thread Guillermo Meyer
And if your image is in other place than in the root or it isn't called "favicon.ico", you can place this tag in the index.jsp page: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Martes, 06 de Julio de 2004 05:46 p.m. To: [EMAIL PROTECTED] Subject: RE: OT -

RE: Browser's refresh problem

2004-07-12 Thread Guillermo Meyer
Use Struts isTokenValid/saveToken schema in your addUsetToDatabase Action method. Cheers. Guillermo. -Original Message- From: Ding Lei [mailto:[EMAIL PROTECTED] Sent: Lunes, 12 de Julio de 2004 10:38 a.m. To: Struts Users Mailing List Subject: Browser's refresh problem Hi all, There

Asunto: Re: IE5.0 and CSS import

2004-07-30 Thread Guillermo Meyer
In this case, you could create a custom tag extending html:rewrite and generate the tag for you: In your JSP: Cheers. Guillermo. >-- Mensaje original -- >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >From: Mark Lowe <[EMAIL PROTECTED]> >Subject: Re: IE5.0 and CSS import >Date:

[ANN] Providers 0.5 Released

2004-08-08 Thread Guillermo Meyer
We have released the version 0.5 of Providers. Providers is a Struts extension that allows you to manipulate select options easily. This new version comes with some enhancements in ComboSelectTag (a tag to create dependant drop down lists) allowing you to set in each select a provider (in the pre

RE: Caching Framework

2004-08-13 Thread Guillermo Meyer
You could use Providers (http://providers.sourceforge.net) to handle collections of objects, cache them and in addition use these collection to populate select tags, create dependant drop down lists and display labels (descriptions) according to an ID (i.e using tag similar to Struts ) With prov

Asunto: errors get lost on redirect

2004-08-20 Thread Guillermo Meyer
javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.TagSupport; /** * Obtiene el objeto Error de struts del scope, propiedad property, y lo pasa al default para struts. [EMAIL PROTECTED] Guillermo Meyer **/ public class GetErrorsTag extends TagSupport { private String scope = "session"; priv

Asunto: > does not clear all on the page ?

2004-08-21 Thread Guillermo Meyer
The html:reset button restores the input values to the values that are specified in the value property. For example, if you have the following inputs in an html page: the user can change the values of the inputs typing new values in the browser, and if he press the reset button, what will ha

RE: localizing the browse button

2004-08-23 Thread Guillermo Meyer
Try this: This will get the button.find property from ApplicationResources.properties (or whatever acording to Locale) and set this literal to the browse button. Cheers. >-- Mensaje original -- >Reply-To: "Struts Users Mailing List" <[EMAIL

RE: localizing the browse button

2004-08-23 Thread Guillermo Meyer
utton >To:Struts Users Mailing List <[EMAIL PROTECTED]> > > >Wont work Does this work for you ?? > > > >--- Guillermo Meyer <[EMAIL PROTECTED]> wrote: > >> Try this: >> >> >> > key="

RE: forward and set url parameter

2004-08-24 Thread Guillermo Meyer
+1 Adding a redirect: public ActionForward executeActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward = mapping.findForward("success"); String path = forward.getPath(); path += "?foo=bar"; return new ActionForw

[ANN] Xkins 0.9.9 released

2004-08-25 Thread Guillermo Meyer
Release 0.9.9 (very close to 1.0;) is released. Xkins (http://xkins.sourceforge.net/) is a framework that manages skins for your web application. Xkins also comes with XkinsForms Tag Libs, that allows you to create forms using Xkins and comes with four Skins. XkinsForms integrates with Struts fram

[OT] Good luck Dream Team

2004-08-27 Thread Guillermo Meyer
Hey, Dream Team, Argentina wishes you good luck in bronze medal match! Cheers. Guillermo Argentinian Basketball fan. PD: Go Ginobili Go!!! FiberTel, el nombre de la banda ancha http://www.fibertel.com.ar

Asunto: dynamically change the dropdown list from a database...

2004-09-02 Thread Guillermo Meyer
Have you tried Providers (http://providers.sourceforge.net/) ? Providers has a taglib called ComboSelect that allow you to create dependant drop down lists using javascript and without the need of reloading the page. Besides, ProvidersTag works in conjunction with ComboSelectTag to create this com

RE: Struts development methodology

2004-09-15 Thread Guillermo Meyer
We are also working with Struts in a banking application. In our case the requeriment was to have skinning capabilities, so we develop a framework to manage skins and then open sourced it to Xkins (http://xkins.sourceforge.net/) Our approach is to determine the pieces of the UI. We create a mock

Article: Skin Web applications using Xkins (with Struts)

2004-10-25 Thread Guillermo Meyer
If anyone is interested in skinning a Struts web application, you can read this article at http://www.javaworld.com/javaworld/jw-10-2004/jw-1025-xkins.html. This is an introduction to Xkins Framework and has an example that uses Xkins and Struts. Regards. Guillermo Meyer.

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Guillermo Meyer
If the problem is that somethingAction2 sees row parameter, you have to send a redirect when calling action2. You can set redirect="true" in the forward. Request parameters cant be deleted during request life cicle. When sending a redirect, a new request is generated, so original request paramenter

RE: Best Practices in

2004-04-06 Thread Guillermo Meyer
I dont know if it qualifies as "best practice", but it works for me. I use http://providers.sourceforge.net/ to generate the collections with objects with id - descrip to fill options tag. Cheers. Guillermo. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Marte

RE: Problem with

2004-04-21 Thread Guillermo Meyer
And what happens when you are using a DispatchAction and a session scoped form? If you are in a wizard use case, where you go forwards and backwards in a screen sequence using Dispatch action and session scoped form, if in the first screen you set the checkbox on and then you want to go back and un

RE: problems with onclick=submit()

2004-04-23 Thread Guillermo Meyer
You should also return false in the onclick event. If return false, the link wont be executed. -Original Message- From: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED] Sent: Viernes, 23 de Abril de 2004 10:06 a.m. To: 'Struts Users Mailing List' Subject: RE: problems with onclick=su

RE: skins with Struts-Tiles framework

2004-05-13 Thread Guillermo Meyer
Xkins does not replace Tiles. You can use Xkins with tiles. Tiles (among other things) arrange page layout. Xkins manage the look&feel of the page. Xkins does not replace struts tags as struts-layout does. Xkins are used inside taglibs to generate HTML (or other output) or as decorators of other t

RE: background process

2004-05-04 Thread Guillermo Meyer
We implement something like this. We have a really heavy process submitted by a user, so we don't want him to wait for finishing. In a struts action, we call a Service (POJO) and this service places a message in a JMS and saves a record of the process in a database table in a "running" state. Then

Using IDEs with Struts + JSF + Struts Faces

2005-10-04 Thread Guillermo Meyer
Hello: I read some blogs (by Craig) that shows different paths to migrate from Struts to JSF. I thing the most convenient for my particular case is to use the StrutsFaces integration library, using Struts Actions as the Controller and rewriting Struts JSPs with JSF JSPs.. In this way, we can use J

RE: Using IDEs with Struts + JSF + Struts Faces

2005-10-06 Thread Guillermo Meyer
Any comments on this? What about IDE's support for Shale? What about IDE visual navigation configuration ? (where you place little boxes in a canvas, join them with arrows and the IDE configures faces-config navigation rules) Thanks. Guillermo. -Original Message- From: Guillermo