I assume by the "tile" you mean the JSP page that is referenced in the
tiles xml, if that is how you are doing it. If so, you just reference a
bean property on the JSP page. Again, what is the problem. This is
simple. I always do this without any difficulty. Here is something I have
in one
Tim,
Why not use a TilesAction (org.apache.struts.tiles.action package) and
change/set tiles attributes using the putAttribute() method of the
ComponentContext object. For more details, see the advances tiles PDF.
-David
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
I am not sure why this is a problem. All you have to do if you want part
of the response object to be dynamic is put your dynamic value in the
tile. Presumably you have some dynamic factor choosing the tiles content
page. Just have that same factor decide what the value of the title
is. The
In all Struts tags, the "scope" attribute should be one of the scopes
in which a JSP tag can find an attribute:
page
request
session
application
If none is specified, then all available scopes are searched in
standard JSP tag order (as above) until a value matching the name is
found.
As you're
Struts 1.1, using Tomcat
I am trying to associate a Controller with a Struts tile. This way I can
call my business objects within the Controller to populate it appropriately
and it will be tied to the tile. So far everything has been working fine
however I run into a slight problem. It appears th
is this for creating a html-table?
look to http://displaytag.sourceforge.net/
they are cool!
(they "generate" html-table-stuff and iterate over collection...)
cheers,
> -Original Message-
> From: Teixeira, Jorge (Informaker)
> [mailto:[EMAI
Can you send me one interate sample workin with one object colletion how
attribute?
I'm tried it
And
My attribute call resultado and my ActionForm is tb_estadoForm the scope is
setted how attribute
But the server return the message "Invalid bean scope null" or "Cannot
cre
We are evaluating using OSWorkflow in our project.
Has anyone used it? Any advice? Any papers? Best
practices/recomendations using it?
We have to refactor an existing application that manages states in a
"if-elseif" fashion and we want to use a workflow engine. Any tips in
doing this?
Thanks in a
That requires a static titleKey in the tiles-def.xml, whereas I am dealing with a name
property from a bean that comes from a database.
Tim
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: 21 May 2004 17:48
> To: Struts Users Mailing List
> Subject: Re: Tiles
OK. Now it works, sort of. On the form I am processing there are
2 sets of checkboxes. One set is simply made using html:multibox.
The other set is inserted by a single custom tag that I wrote.
I followed your suggestion (but had to dig for details) and created
the following:
public class SeriesPro
- Original Message -
From: "Tim Penhey" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 21, 2004 4:59 PM
Subject: Tiles and changing the title based on content
> I was wondering if there is any way to change the title based on the
content of a
If you are calling saveToken(request) before isTokenValid like your code
suggests, you are probably overwriting the token in the session, so it is
different to the one being submitted in the form!
It should happen as follows:
In the action that gives the form:
saveToken(request);
Then in the act
Hi,
To avoid double click problem we implemented code in our execute method as
follows
saveToken(request);
if(!isTokenValid(request){
//submit
mapping.forward(target);
}else{
resetToken(request);
}
but then the page is not working as expected whenever we double click the page
is not ge
I was wondering if there is any way to change the title based on the content of a tiles
based page?
I have a current JSP where the title is:
${item.name}
Do people have any solutions to this? At the moment my layout has the following:
Preferably a simple solution, oth
You do not need to load the Message ressources.
I would suggest you to place the following in your AS classpath :
A file named : SimpleLog.properties (may be all small letters)
with the following content :
#
#
#
#
#
#
# Author : $Author$
# Revision : $Revision$
# Last updated : $Date$
# #
If you want to get MessageResources in your validate method then you can
just do:
MessageResources messages = ((MessageResources)
request.getAttribute(Globals.MESSAGES_KEY));
and that should do the trick.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Frid
Greetings,
The following code snippet is from my ActionForm.validate() method.
What I don't like and wonder if there is a better way to this: is the
loading of the Message Resources.
I need to do this to get a value that is passed as a parameter to a
message.
private static MessageResources mes
Another option is what I've implemented in a project recently...
First, every single Web Service request is directed to a single Action
mapping, quit originally called /WebServices.app :)
Then, in the action I first check for the SOAPAction header, making the
assumption that only a valid Web Ser
You may consider posting this someplace that has something to do with
Oracle...
> -Original Message-
> From: Indra Gunawan [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 21, 2004 7:49 AM
> To: 'Struts Users Mailing List'
> Subject: Oracle 10g Apps Dev Framework
>
>
> Hi all,
>
> I want t
Hi all,
I want to implement business service layer using session bean and eliminate
the need for entity beans as I plan to replace them with Hibernate . But,
when I write the session bean component ... I don't have support from ADF
for implementing Create, Remove, and the like only iterator f
Ditto on axis
Sun has JWSDP-1-3 but it has many dependency jars which need to be
downloaded..
Unless you have all the requisite components downloaded and configured you
could be there a while
If you want a web service that is operational in under an hour I strongly
recommend
http://ws.apache.or
There has been alot of discussion about this on the commons-dev list, which
I haven't been following too closely, but my understanding goes along the
following lines
* the only dependancy struts has on collections are from those inherited
from digester and beanutils.
* my understanding is that the
Hi,
The File Field in HTML is a special field, because it has some security issues, by
example:
a) 'you cannot set its value by javascript or a predefined value' and
b) 'you cannot get any info from the file before the client uploads the file'
but, depending on what you want to do, would be m
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:25
> To: Struts Users Mailing List
> Subject: RE: Tiles with javascript heavy pages
>
>
> >Do you know if you can embed the inside the
> >
> >to have the tiles attribute define the key for the bu
Is it OK to update Struts 1.1 with the new commons-collections.jar that
comes with collections version 3? I don't want to upset things by doing
this.
If it is not OK is there anyway the new collections stuff can be included in
a Struts 1.1. project?
Thanks, Simon.
This e-mail and any attachment
Thank you (sorry for the direct reply... bad webmail :( ).
I'll do just that.
Pedro Salgado
> I believe Axis has stuff for doing this kind of thing, but Im only just
> starting to learn it myself so still dont know all the details. What Ive
> seen is pretty cool though!
>
> They have a rath
> Have a look at Axis (also an Apache project). It will probably do what
> you need.
>
> -Original Message-
> From: Pedro Salgado [mailto:[EMAIL PROTECTED]
> Sent: Friday, 21 May 2004 13:20
> To: Struts Users List
> Subject: Controller for web services
>
>
>
> Is there any MVC implementat
Consider using a session scoped form bean. That way you don't need to worry
about using s to remember the value from previous steps.
Another option would be to have your JSP always render the entire page, but
you use styles to hide the bits that aren't part of the current step.
Paul
-Origi
Not with but you should be ablt to with :
Paul
> -Original Message-
> From: Tim Penhey [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:03
> To: Struts Users Mailing List
> Subject: RE: Tiles with javascript heavy pages
...
> Do you know if you can embed the inside
> the
Hi,
This is the reason for providing the secondary workflow mechanism...
As a single workflow allows you to define a single workflow violation path , and hence
single point of forward, you can start your own subworkflows(secondary workflows) so
that the same can be used like bookmarks/savepoints
30 matches
Mail list logo