Re: R: [OT] JNDI datasource lookup to test classes

2003-08-23 Thread James CE Johnson
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

Context Relative vs Module Relative images using html:img

2003-06-18 Thread James CE Johnson
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

Trying to use struts-menu with JBoss 3.0.6

2003-03-24 Thread James CE Johnson
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:

Re: Modules, tiles and images...

2003-03-18 Thread James CE Johnson
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

A humble addition to html:img

2003-03-18 Thread James CE Johnson
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

Re: tile definition for initial page

2003-03-18 Thread James CE Johnson
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

Modules, tiles and images...

2003-03-17 Thread James CE Johnson
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

Re: request.getRemoteUser

2003-03-16 Thread James CE Johnson
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:

Re: [Q] struts-template - I centralized the layout file, but am Imissing something?

2003-03-15 Thread James CE Johnson
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

Re: How to create table in struts?

2003-03-14 Thread James CE Johnson
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

Using the display:* taglib with tiles

2003-03-13 Thread James CE Johnson
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

Re: [displaytag-user] Using the display:* taglib with tiles

2003-03-13 Thread James CE Johnson
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

RE: [displaytag-user] Using the display:* taglib with tiles

2003-03-13 Thread James CE Johnson
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

Re: modules, tiles and html:form

2003-03-12 Thread James CE Johnson
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

RE: Model 2 with a half-order of X

2003-03-12 Thread James CE Johnson
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

modules, tiles and html:form

2003-03-11 Thread James CE Johnson
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'