The most common solution to this problem is using a Factory Method to
return the correct implementation of the interface. Your classes should
never know which implementation is in use because they will all ask the
Factory Method for the object. You just need to change the one line in
Heya,
Has there been any further consideration of enhancing the html:img tag to
take a contextRelative attribute? Likewise for html:rewrite and probably
others...
I posted a bugzilla entry (18107) back in March that Ted commented on but
I haven't heard anything since then.
Thanks,
J
I'm trying to try out struts-menu 1.2 with JBoss 3.0.6 with struts
1.1-RC1. When I deploy the sample webapp (webapps/struts-menu.war) Jboss
complains about:
16:06:37,760 ERROR [Digester] Begin event threw exception
java.lang.ClassNotFoundException: No ClassLoaders found for:
Response inline ...
Likewise.
James CE Johnson wrote:
Hi all,
My struts application has several modules. Each module has its own
tiles definition file and also shares a single common tiles
definition file. In the common definition file is where I have my
layout defined:
%@ taglib
Hello All,
I've recently been working on a reasonably complex application that has
several modules. Each module has its own struts config file and tiles
definition file. In addition, they also share a set of common global
forwards and tiles.
What I'm running into is that html:img page=/foo/ in
Kelly Clauson wrote:
Hello,
I'm so close.
Yup. Definately on the right track.
I have implemented tiles by using the Tiles Plug-in and tile
definitions.
All is well, except I don't know how to get my entry page (index.jsp) to
use the tiles. Once past this page, all other pages properly load
Hi all,
My struts application has several modules. Each module has its own tiles
definition file and also shares a single common tiles definition file.
In the common definition file is where I have my layout defined:
%@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %
%@ taglib
Guido wrote:
Is there any way to show the remote user that sounds like (this doesnt
work):
bean:write name=request property=remoteUser /
I actually use %= request.getRemoteUser() %, and works fine, but i am
a curious kid
I think the request taglib may help you out:
Hi Jeff,
I generally use Tiles to handle these kinds of things.
In your struts-config.xml install the Tiles plugin:
plug-in className=org.apache.struts.tiles.TilesPlugin
set-property property=definitions-config
value=/WEB-INF/tiles-definitions.xml/
set-property
Hi,
I have a collection, from this collection I have to create table to
show
the results to user, is there any way to create a table with struts with
out manually constructing the table?
Checkout the display tag library: http://sourceforge.net/projects/displaytag/
Thanks,
Anand
Hi,
I'm pretty sure I read the solution to this just last night but now I
can't find it...
The display:* taglib will let me do something like this:
display:table width=75% name=reportList
display:column property=reportCategoryName
title=Category group=1 sort=true/
The resulting HTML will
Hi,
I'm pretty sure I read the solution to this just last night but now I
can't find it...
The display:* taglib will let me do something like this:
display:table width=75% name=reportList
display:column property=reportCategoryName
title=Category group=1 sort=true/
The resulting
The easiest way to find these is by looking in the display.tld file with
your favorite XML editor.
I was afraid you were going to say that. I was looking for requestURI
earlier and didn't find it until you pointed it out :-
-Original Message-
From: James CE Johnson [mailto:[EMAIL
Hi Cedric
Hi,
I think that the problem comes from the fact that you put the pages
belonging to one module under the WEB-INF umbrella. If you move your
broken1.jsp to /StrutsIssues/admin/broken1.jsp, and change the
definition tile.broken1 accordingly, all work fine:
definition
Jeff,
I haven't tried this before, but it seems like one solution would be to
generate your XML doc in the Action (or some delegate) and place it in
the appropriate scope and then use XTags
(http://jakarta.apache.org/taglibs/doc/xtags-doc/intro.html) to
transform the doc.
Another
Hi,
I'm having a problem with a combination of modules, tiles and html:form.
Hopefully someone out there has a better solution than what I've come up
with.
The short version of my saga is that html:form in a jsp included as a
tile by an action of a sub-application cannot resolve it's 'action'
16 matches
Mail list logo