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:
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
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
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
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
"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
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
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
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
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
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
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
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
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
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
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
, 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 (
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 -
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
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:
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
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
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
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
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
utton
>To:Struts Users Mailing List <[EMAIL PROTECTED]>
>
>
>Wont work Does this work for you ??
>
>
>
>--- Guillermo Meyer <[EMAIL PROTECTED]> wrote:
>
>> Try this:
>>
>>
>> > key="
+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
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
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
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
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
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.
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
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
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
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
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
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
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
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
40 matches
Mail list logo