relative urls

2001-05-10 Thread Nathan Coast
Hi, I've got an app that will be deployed to a number of different contexts /test /dev /staging / (root) The app contains a large amount of static content e.g. images which will always be referenced from /current_context/image some of the jsps are accessed directly and via the

Re: relative urls

2001-05-10 Thread Nathan Coast
is basically pageContext.getRequest()).getContextPath() scott. --- Nathan Coast [EMAIL PROTECTED] wrote: Hi, I've got an app that will be deployed to a number of different contexts /test /dev /staging / (root) The app contains a large amount of static content e.g. images which

Re: Automathic user authentication

2001-05-14 Thread Nathan Coast
the method will return null if the user is not authenticated. There is also the method java.security.principal user = HttpServletRequest.getUserPrincipal() which returns the current user (if logged in). have a read of the security chapter of the servlet spec (chapter 11 in 2.2, chapter 12

page flow control

2001-05-16 Thread Nathan Coast
Hi, In the site I'm developing, there are sections that have forms on consecutive pages, I want to guarantee that pages are navigated: page1 - page2 - pageN. At the same time allowing back and forward navigation to change values entered on previous pages. After the last submit, the only

display of ActionErrors

2001-07-12 Thread Nathan Coast
Hi, Is there any way to separate individual error messages in a jsp form? The sort of behaviour I'm looking for is to place the error messages (ActionErrors) next to the errant fields rather than a single block. Or is the only option to display all of the errors in one place using html:errors/

Link Tag not supported?

2001-07-16 Thread Nathan Coast
Hi, I want to create this html using struts tags so I don't have to hard code my context (LevelSeas) but the html:link tag is for A href = . link rel=stylesheet href=/LevelSeas/style/LS_stylesheet.css charset=ISO-8859-1 type=text/css/ Is there a tag to do this or am I going to have to

RE: Link Tag not supported?

2001-07-17 Thread Nathan Coast
=styles/default.css /head ... -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:47 PM To: Struts-User (E-mail) Subject: Link Tag not supported? Hi, I want to create this html using struts tags so I don't have to hard code my context (LevelSeas

Indexed properties

2001-07-25 Thread Nathan Coast
Hi, What I want to do is to have multiple text fields in a table get assigned to an array or collection property in an ActionForm. I've followed a few threads in the newsgroups about this and have tried some jsp code: logic:iterate id=myObject name=indexedForm property=indexedPropsList

Indexed tags - Dave Hays code

2001-07-30 Thread Nathan Coast
Hi, I'm trying to use the Indexed tags from Dave Hays: http://husted.com/about/struts/indexed-tags.htm anyone got a replacement struts.jar with the relevant code changes in? It's not that I'm lazy, I'm just having trouble getting the code built using ant 1.3 java.lang.NoClassDefFoundError:

indexed properties problems ArrayIndexOutOfBoundsException

2001-07-31 Thread Nathan Coast
Hi, I've followed various threads (Long Story Short etc) about Dave Hays index tags enhancement and after much hair tearing! The suggested code for the form bean is: private ArrayList parameterList = new ArrayList(); public ArrayList getParameterList() {

Iterate tag - type attribute

2001-08-02 Thread Nathan Coast
Hi, quick question, what is the purpose of the type attribute in the iterate tag? Cheers Nathan ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to

base, templates and relative urls

2001-08-03 Thread Nathan Coast
Hi, We've got a problem with relative urls to images in our pages due to jsps and templates residing at different directory depths. here's our directory structure /images/blah.gif /pages/MainTemplate.jsp /pages/section1/Section1Page.jsp /pages/section1/Section2Body.jsp Our pages are

java.util.Date properties

2001-08-09 Thread Nathan Coast
Hi, We've got a number of forms in which it would be useful to have java.util.Date properties. Is there any plan to have conversions for data types other than the standard java.lang basic type wrappers? from Convert Utils if (clazz == stringClass) { if (value == null)

why both html and form tags?

2001-08-10 Thread Nathan Coast
hi, why are there two tlds one for 'form' and one for 'html' where all of the form tags point to the same classes as those in the html package? Cheers Nathan ** This email and any files transmitted with it are confidential

Quick question / indexed iterate tag / Text area

2001-08-22 Thread Nathan Coast
Hi, Are indexed tags implemented for text areas as part of Dave Hays indexed tag patch? is there a reason why they weren't included in the patch? Cheers Nathan ** This email and any files transmitted with it are confidential

RE: The index number of iterate tag

2001-08-24 Thread Nathan Coast
logic:iterate name=myBeanName property=myBeanProp id=indexedBeanName indexId=myIndexName this will: 1) iterate over the collection / array obtained by calling 'getMyBeanProp()' on the bean named 'myBeanName' 2) place the current element in the iteration in page context against the name

obtaining action forwards in jsps

2001-08-29 Thread Nathan Coast
Hi, Is there any way to obtain the action forward urls in jsps using their logical 'struts-config' name? I'd like to code links etc point to certain action forward urls found in struts config rather than hard coding the url? Similarly I'd like to be able to change the action url of forms using

RE: Question about html:link

2001-08-29 Thread Nathan Coast
% String str = javascript:doSummlkjsdf( + myVar + ); % html:link href=%=str% .. / -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 8:30 PM To: [EMAIL PROTECTED] Subject: Question about html:link Hi, how can I pass a

struts portal?

2001-09-24 Thread Nathan Coast
Hi, quick question, is there any struts or apache sub-project to provide 'portal-like' functionality? basic functionality for users to select components from a default list that they want to see in their home page. Our current app is in struts and we'd like to avoid adding more new

Tiles Newbie - tutorial problem

2001-09-27 Thread Nathan Coast
Hi, I've downloaded the tiles install from http://www.lifl.fr/~dumoulin/tiles/tiles.zip I deployed the tiles-doc.war in weblogic and the index page displayed fine. However, when I clicked on the Tutorial Live examples link: http://localhost:7001/tiles-doc/tutorial/index.jsp I get this error:

tiles / portal / digester

2001-10-04 Thread Nathan Coast
Hi, I'm trying to develop a basic portal app using tiles. Each user may have selected different components that they want to display in different locations. At the moment the I'm thinking of implementing this by dynamically building up a Definition for each user containing their preferences -

RE: tiles / portal / digester

2001-10-05 Thread Nathan Coast
Is there a standard way of reversing the Digester code (taking an object tree and generating XML) - do we need a regurgitater :) I don't know about a standard way to revers digester code. Could be interesting. ATM just doing some ugly dom building and generating xml from that.

Re: [ANNOUNCE] Struts Console

2001-10-05 Thread Nathan Coast
Hi Ted, I'll try to update the TODO list, since many items there are actually being tested, are already done, or just obsolete. bit off topic from the original post but seeing as your talking about the todo list I spoted this on the list: PropertyEditor Support. Add support for

quick question - next release

2001-11-27 Thread Nathan Coast
Hi, I saw a load of emails flying around a little while ago about an upcoming release quality build (1.1 or whatever) to provide a release in line with the commons packages. Is this happening? Is there a time frame in mind for this? how long is a piece of string etc. Cheers Nathan.

internationalization numeric formats

2001-12-17 Thread Nathan Coast
Hi, does struts support different formats for numbers dependent upon the locale of the user? I've had a look in the bean write tag code which seems to indicate using keys such as org.apache.struts.taglib.bean.format.float. Should this be used in the Application.properties and

creating dynamic forms for unknown attribute types

2003-05-31 Thread Nathan Coast
Hi, I'd like to be able to dynamically create forms based on the properties of the class as defined by the PropertyDescriptors. What I'd like to do is to have a mapping between the data type of the property and the input type used for the form. e.g. for Strings a html:text for boolean /

struts tags vs jstl

2003-06-03 Thread Nathan Coast
Hi, I've used struts for a while now and figured I should probably look at the jstl. Theres certainly plenty of common ground to do with programatic control (decisions and looping) and with internationalisation. I'm not sure sql tags in jsp are particularly bright idea but anyway Does

Re: struts tags vs jstl

2003-06-03 Thread Nathan Coast
into JSTL. I think that only the Struts tags that don't have equivalents in the JSTL have been ported. - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 9:36 PM Subject: struts tags vs jstl Hi, I've used struts for a while now

Re: struts tags vs jstl

2003-06-03 Thread Nathan Coast
- if the latter, what are the preferred prefixes for the el tags? the same as their struts counterparts or with some el prefix or suffix? cheers Nathan David M. Karr wrote: Nathan == Nathan Coast [EMAIL PROTECTED] writes: Nathan is this documented somewhere? ie which tags have / haven't been ported

debugging bean populate

2003-06-09 Thread Nathan Coast
Hi, I'm getting an IllegalArgumentException presumably due to trying to populate a field of a form with the wrong datatype. I can't see where I'm going wrong. Is there a simple way to turn on debugging for the BeanUtils.populate code to see which attribute is failing? thanks Nathan

BeanUtils.populate for non-basic types

2003-06-18 Thread Nathan Coast
Hi, Is there any mechanism to populate form fields whose class isn't from java.lang? Apologies if this question should be directed to the commons-beanutils list. e.g. org.apache.log4j.Level thanks Nathan - To unsubscribe,

mapped properties

2003-07-03 Thread Nathan Coast
Hi, is it possible to use mapped properties for populating properties within forms? If yes, does anyone have an example snip of jsp demonstrating how to use mapped properties. thanks Nathan - To unsubscribe, e-mail: [EMAIL

exception handling

2003-07-13 Thread Nathan Coast
Hi, I'm using tiles to manage my layouts, one of the sections of a page is throwing an exception: [ServletException in:/log4j/Loggers_body.jsp] org/apache/commons/collections/IteratorUtils' these are the only exception details I see, how do I obtain the full stack of the exception? cheers

module / tiles problems

2003-07-13 Thread Nathan Coast
Hi, I tried setting up a web application with configuration files. init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xml/param-value /init-param both referred to their own tiles-defs files with tiles plugins plug-in

Re: module / tiles problems

2003-07-13 Thread Nathan Coast
thanks, unfortunately still doesn't work Erez Efrati wrote: Just by looking and I am new to tiles... That the set-property property=moduleAware value=false / The VALUE should be set to TRUE not false. Hope it helps, Erez -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED

Re: UPON APPLICATION STARTUP!!!!!!!!!!!!!!!!

2003-08-11 Thread Nathan Coast
select tags or indeed any tag that acts on a collection uses the name property to locate the collection. If in your case you have a collection of values that you load once and share accross every session interacting with your app, load this at startup, say in a startup servlet init and place

Re: How to keep session info??

2003-08-14 Thread Nathan Coast
Make sure that your forward/ isn't doing a redirect (i.e. redirect=true). If I understand things correctly, a redirect will cause a new session to be created... Jerry Are you sure? I haven't looked at this area of the source for a while but I can't think any sensible reason why it would

modules and tiles

2003-09-03 Thread Nathan Coast
Hi, is it be possible to configure layouts using tiles-defs.xml when using multiple modules? I had a go but couldn't get it to work. The configuration I tried was two modules each with their own tiles-defs layout configuration file. Also, is there an example app that uses modules (with or

tiles, modules tiles-defs

2003-09-05 Thread Nathan Coast
Hi, I posted a question earlier as to whether it was possible to have a module based web-app with each module having its own tiles defs configuration. The tiles-documentation web app is a working example of this. So that answers my first question. On looking at the details of the webapp

looping with ant:available

2003-09-19 Thread Nathan Coast
Hi, I test for a condition within a loop using the ant:available tag j:forEach var=lib items=${pom.artifacts} j:set var=dep value=${lib.dependency}/ j:set var=junitejb.test.jar value=${dep}/ ant:available property=junitejb.test.jar.available file=${junitejb.test.jar}/

multiple modules

2003-10-03 Thread Nathan Coast
Hi, do you have to have a default module called '' or with multiple modules can they all be defined with a name? init-param param-nameconfig/equipment/param-name param-value/WEB-INF/struts-equipment-config.xml/param-value /init-param init-param

wrapping action invocations

2003-10-07 Thread Nathan Coast
Hi, Apologies if this is a duplicate, I posted a few days ago but it doesn't seem to have made it to the list. I'd like to introduce a layer between the action servlet and the action classes to perform generic processing - authorisation, error handling etc. I have 2 solutions: 1) subclass

ExceptionHandler to ActionError

2003-11-13 Thread Nathan Coast
Hi I'd like to catch exceptions in an exception handler and then re-use the ActionMessage mechanism to relay messages to the failed input page. Is this possible? What do I have to do within the ExceptionHandler to invoke the ActionMessage mechanism? thanks Nathan

locale specific date format

2003-11-21 Thread Nathan Coast
Hi How do I set locale specific date formats? I tried setting org.apache.struts.taglib.bean.format.date with format strings within locale specific applicationResources.properties but the format keeps coming out the same Fri Nov 21 16:46:05 CST 2003 any ideas? cheers Nathan

extending nested tiles templates

2004-02-16 Thread Nathan Coast
Hi I'd like to be able to nest templates within other templates. I know it can be done but I'm not sure I can do it the way I'm trying to do it. AFAICT you have to add n tiles defs for each page you want to add where n is the depth of nesting within tiles. MasterLayout.jsp and

Re: Struts converts null to 0 ?

2004-02-16 Thread Nathan Coast
internally BeanUtils uses ConvertUtils to convert from Strings to objects. You can deregister the default converters http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/ConvertUtils.html The default converters are initialised as follows with 0 for most numeric