I tried with all the suggestions but it doesn't work:
Does anybody know the problem?
My code is:
logic:iterate id=lista name=busquedaproveedorForm
property=lstResultado
html:radio idName=lista
onclick=setBusquedaProveedor(${idProveedor},${strRazonSocial})
property=idProveedor
Map the action class in the struts config and have the link point to the
action
i.e. a href=/MyAction.do...
Nitesh
- Original Message -
From: Anand Vijay [EMAIL PROTECTED]
To: Nitesh [EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 10:34 AM
Subject: Re: another newbie
Hi
Thanks for
Or use an AJAX piece of functionality instead of hidden frames.
-Original Message-
From: Nitesh [mailto:[EMAIL PROTECTED]
Sent: 16 June 2005 06:18
To: Struts Users Mailing List; Richard Reyes
Subject: Re: [OT] Validating email addresses
Richard,
JavaScript validations are majorly done
Use the optional error-page element defined in web.xml, this allows
you to map an error code _or_ exception type to the path of a resource
in the Web application (e.g. a custom page).
error-code: The http error code e.g. 404
exception-type: fqcn of a Java exception type
location: the location of
your message size has to be more than 512 bytes otherwise
the default IE 404 page will be used - if I remember correctly.
On 6/16/05, McDonnell, Colm (MLIM) [EMAIL PROTECTED] wrote:
Use the optional error-page element defined in web.xml, this allows
you to map an error code _or_ exception type
Hope you are getting the values (see the source on your page and find out)
The reason JavaScript doesn't work is that the value of idProveedor is a
string which is not declared. So it should work if you give the same within
quotes.
Try...
html:radio idName=lista
I have defined a validation in the following way
field property=codigoGrupo depends=required
arg0 key=mantenimiento.grupos.codigo.grupo /
/field
When the validation returns an error it shows it in the following way:
null is required
Any suggestions
thanks
My ActionForm has a HashMap which backs its values.
Before I enter JSP 1 I populate the HashMap with values which are then
displayed on the page.
I then submit the form to an Action which processes the values submitted and
then forwards on to a JSP.
The problem is that the HashMap has
Silly question, but it probably needs asking; What scope are you giving this
form? I assume it is request.
I know it is unfashionable, but giving the form a scope of session will
persist this HashMap for you (unless you reset it).
Cheers
Christopher Marsh-Bourdon
www.marsh-bourdon.com
it wasnt a silly question, request scope at the moment but I am no changing
to session after your advice because the amount of code I am having to do is
daft!
Original Message Follows
From: Marsh-Bourdon, Christopher [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
On 16/06/05 05:51nbsp;Michael Jouravlev wrote:
Was celebrating too early. Does not work. Here what happens. * Very
first request to the app. Session is created on server. * Application
redirects to whatever location, server sets cookie with jsessionid in
the response, and at the same time adds
http://struts.apache.org/userGuide/struts-tiles.html#insert
I 've read here about 'flush' attribute. What does it exactly do and what
is the
practical difference between setting it to false or true?
--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub
Hi Janek
I'm new to tiles, but, as far as I'm concerned, the 'flush' attriubte, makes
that the result of the page, component, definition or whatever you be
inserting, by 'insert tag' will be displayed one by one when setted to true.
Suppose you have:
tiles:insert page='firstPage.jsp'
Using html:link action=/MyActionmy action link/html:link is probably
better. This way you wont' have to worry about the context path of your
application. a href=MyAction.do might not work since the action is
preceded by the context path. You would have to do something like:
a
Hi, it doesn't work. I saw the source and it takes ${idProveedor} as a
String
input type=radio name=idProveedor value=1
onclick=setBusquedaProveedor(${idProveedor},${strRazonSocial})
input type=radio name=idProveedor value=1
onclick=setBusquedaProveedor('${idProveedor}','${strRazonSocial}')
Finally I found a desesperated solution :'(
input type='radio' name='idProveedor' value='bean:write name=lista
property=idProveedor/'
onclick='javascript:setBusquedaProveedor(bean:write name=lista
property=idProveedor/,bean:write name=lista property=strRazonSocial
/)'
But what happend with
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote:
It's not stupid, it returns a boolean informing you where the
session.getId() gets its info from. Makes sense to me.
Makes sense to me too, but I also want to know is there session ID in
the URL. Any advice how to find this out?
Although you
Shot in the dark, try this:
html:radio idName='lista'
onclick='setBusquedaProveedor(${idProveedor},${strRazonSocial})'
property='idProveedor'
value='idProveedor' /
- Original Message -
From: Rafael Taboada [EMAIL PROTECTED]
To:
Thank u very much for all ur help...
Zarar: the same thing, it takes as String value
In my code:
html:radio idName='lista'
onclick='setBusquedaProveedor(${idProveedor},${strRazonSocial})'
property='idProveedor' value='idProveedor' /
In the source code(runtime):
input type=radio
On 16/06/05 15:37nbsp;Michael Jouravlev wrote:
When both methods return true, they identify the first request after
session has been established with browser which supports cookies. I
try to keep GET requests clean to encourage browser to keep its page
history from growing. When I detect this
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote:
It seems to be hard-coded behaviour that you can't do anything about
unless you want to write some javascript to check the URL and put a
token in the query string for the next request.
Nah, I cannot rely on Javascript. I guess I should drop the
To add to your original solution: write your own subclass of
ActionConfig which overrides getParameter() to return the tiles-needed
part of the parameter attribute. Additional methods will let you
retrieve other parts. This way, your Action doesn't have to know
about parsing; it can pull clean
Dear list,
I've been fighting this problem for some time now, and can't come up
with a solution. Please advice.
In my jsp page I'm iterating an array of Category objects which resides
in the request scope. This is done with the logic:iterate tag like this:
logic:iterate id=categories
On 16/06/05 17:13nbsp;Adam Hardy wrote:
It seems to be hard-coded behaviour that you can't do anything about
unless you want to write some javascript to check the URL and put a
token in the query string for the next request.
Stupid me.
Even quicker would be to check if you have the first
I am using BeanUtils.setProperty and
BeanUtils.getProperty for setting the values and
retrieving values from my formbean.It works fine for
a property of type String .In case I have a VO
(valueObject ) as a property in my formbean ,
getProperty method from BeanUtils returns a string
I have a project where I want to use the Struts Validator. By default the
error messages are read from a properties file. However I'm required to
read the error messages from a database. The question is how do I do this?
I found this article
Does anyone have best practices on how to compose or
decorate stand-alone static content? It seems overkill
to have to modify tile-defs.xml for each new static
page I want to add to the website. Is SSI or SiteMesh
more appropriate here? By the way, this is to
complement a web app which already
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote:
Even quicker would be to check if you have the first request that
establishes the session, and then put some token in the form or
querystring, to mimic the JSESSIONID. Then you can just check
for your token.
Yes, I guess I can do that.
I'm
From: Ramadi Pearse [EMAIL PROTECTED]
Does anyone have best practices on how to compose or
decorate stand-alone static content? It seems overkill
to have to modify tile-defs.xml for each new static
page I want to add to the website.
I see you asked a similar question that got no response.
The only information I can give you is that this still fails in WebLogic
8.1. I noticed it quite a while ago.
-Original Message-
From: Alexander Krumeich [mailto:[EMAIL PROTECTED]
Dear List,
slightly off-topic post, but I thought that maybe someone
here can give me a hint to
I think this is a weird requirement, and it may be worth re-evaluating
why you want to know this (are you fighting the technology, or
leveraging it?). But here are two tips that might help if you decide
that you really need to know:
1. request.getPathInfo() -- the jsessionid might be a pathInfo
You need to configure your message resources through the struts-config.xml -
init parameters in the web.xml don't work in Struts 1.2
http://struts.apache.org/userGuide/configuration.html#resources_config
So in your case you need something like the following in your
struts-config.xml
I found the answer I was looking for. The solution is to set the factory
attribute of the message-resource element in struts-config, like so:
message-resources
parameter=MyMessageResources
factory=my.example.MyMessageResourceFactory
/message-resources
I have a project
Wendy,
I need to put up some files that are long documents.
They won't change much, but are needed for the user.
Such are messages from the organization's president,
information about rules, legal info, etc. The
information will rarely change, but I need two
questions answered:
1) Is it the
On 6/16/05, Max Cooper [EMAIL PROTECTED] wrote:
I think this is a weird requirement, and it may be worth re-evaluating
why you want to know this (are you fighting the technology, or
leveraging it?).
I can explain but remember, that you asked it first ;) It will take some time :)
The point is,
Is anybody else getting a lot of message duplicates this evening? We're
having email server strangeness so I'm not sure if it's me or... uh...
not me.
Dave
Michael Jouravlev wrote:
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote:
Even quicker would be to check if you have the first
Dear Ramadi,
I would recommend using SiteMesh (it's a filter) while you continue using
Struts Tiles.
If you have any exceptionally large pages you wish to display (i.e. pages
and pages and pages of content) you might want to watch out for String
buffer issues. Why? SiteMesh receives a
+1.
From: Dave Newton [mailto:[EMAIL PROTECTED]
Is anybody else getting a lot of message duplicates
this evening? We're having email server strangeness
so I'm not sure if it's me or... uh... not me.
-
To unsubscribe,
I was just reading my TSS letter (The Server Side.com) and noticed an
announcement about Struts-Layout having a new release (v1.1) earlier this
month. Is anyone using it or Struts-Layout? I looked at it some time ago
and it seemed to me as if must have inspired the page layout features of
Java
Michael:
check out
http://www.manfred-wolff.de/struts/articles/HowTo-Back.html for handling
BackButtonAction
If that does'nt work check out overriding reset() method in ActionForm take
a look at
http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html
HTH,
Martin-
- Original
David,
I don't have any exceptionally long files. I remember
Rick Reumann saying on this list too that he dumped
SiteMesh in favor of Tiles because of the buffering
problem. I never heard of anyone running
Tiles/SiteMesh together, although it is feasible.
Maybe I will just stick to creating
Thanks Niall. If I were to use set-property elements, do you have any
idea how I would retrieve those properties within the factory?
Thanks,
David
Niall Pemberton [EMAIL PROTECTED] wrote on 06/16/2005
04:03:36 PM:
You need to configure your message resources through the
struts-config.xml -
My mistake, the plumbing is in the DTD to do this (i.e. a className for a
custom MessageResourcesConfig and the set-property element) but the
digester rules always create the standard MessageResourcesConfig and ignore
any custom implementations specified in the className.
However, even if that
Hi all,
In a project I am working on, we have a very lengthy struts-config.xml
file to handle complex actions jsps (200+) take.
Does anyone have this situation (very complex struts-config.xml)? Please
tell me about your experience.
Also, anyone see a blog or forum written by struts technology?
depends on what version of struts u're working on.
(i have never worked with 200 or so actions). :)
1) i reduced the number of actions using wildcards in action mapping,
and a couple of hidden parameters that i pass to actions. kind of
genericised the actions.
2) use extends where
Did you try using the expression tags... that may work. (you may need to
change the methods to the right ones...)
html:radio idName='lista'
onclick='setBusquedaProveedor(%= lista.getIdProveedor() %,%=
lista.getStrRazonSocial() %)'
property='idProveedor' value='idProveedor' /
The bean:write
Is that possible, seperate the actions into modules and use the modules
struts-config?
- Original Message -
From: John Henry Xu [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, June 17, 2005 12:04 PM
Subject: long struts-config.xml file
Hi all,
In a project I am working
Hi Jack,
You can split the struts-config module wise so that it is easy
to handle. If you are having multiple struts config you should mention
that as comma separated values in you web.xml.
Eg:
/WEB-INF/struts-config/common-config.xml,/WEB-INF/struts-config/A.xml,
48 matches
Mail list logo