A Strange Title Tile Problem

2004-06-26 Thread Caroline Jen
I have been using tiles for a while. All of a sudden, a piece of title tile in one of my web pages behaves weird; e.g. all others work fine except this one. It is 2:30 am in the morning. Maybe, I am not sober enough to see the problem: In my application.properties, I have: #-- message pages

Re: Converting Java Code in JSP to JSTL

2004-06-26 Thread Mark Lowe
c:if test='${not null ${prevArticle}} ${article != prevArticle}' The article != preArticle I am not quite sure. c:if test=${!empty prevArticle article != preArticle} At least in terms of how the el works (not nesting el). Cant see the point in porting this to JSTL unless there's nothing else to

Newbie question re. forms in combination with tiles

2004-06-26 Thread Jan Behrens
Hi List, I am quite new to Struts and hit a bit of a wall right now. Here is what I am doing: I am using tiles to manage the layout of my webapp - it consists basically of a table that defines something like this: --- ||| ||

Re: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
I am surprised, if you have been working with messages much, that you have not seen this. It means that the message was put into the properties files after you last started your server instance in most cases. Restart the application, and if you have the message in the properties file, it

Re: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
Oh! I see, Caroline. You don't know how to use Struts messages. Or I don't. One of us doesn't. If you can reference a property message with plain text and no tag, that is a surprise to me. At 11:57 PM 6/25/2004, you wrote: I have been using tiles for a while. All of a sudden, a piece of

Re: [OT] Storing Birth Date

2004-06-26 Thread Mark Lowe
I do string - calendar conversion in an action form, its gets and sets strings modifying a calendar object which can be then given to the action ready to be saved back to the model. private Calendar dob = Calendar.getInstance(); public String getDayOfBirth() { int dayInt =

RE: Newbie question re. forms in combination with tiles

2004-06-26 Thread Jan Behrens
please ignore, solved this one myself ;) -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 12:58 PM To: Struts Users Mailing List Subject: Newbie question re. forms in combination with tiles Hi List, I am quite new to Struts and hit a bit

Newbie question re. CSS and Struts

2004-06-26 Thread Jan Behrens
Hi List, I wonder what would be a best practice for formating output when using Struts. Is there such a thing as a struts.css that gets included by default and might even contain elements for each / some tags out of the tld's? TIA Jan

Re: [OT] Storing Birth Date

2004-06-26 Thread Eddie Yan
Thanks for the input Mark. This approach seems OK to me. What is the column you use to store dob ? We need to specify in the repository_user.xml the data type for this column. Ed. - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]

RE: Newbie question re. CSS and Struts

2004-06-26 Thread Jan Behrens
Thanks Matthias, looks like a powerfull tool for formatting tables, on first glance it seemed a bit of an overkill for what I need to do though. I wonder, what the general approach for this is? I mean, do many people use CSS in combination with Struts or do you normally attache something like

Re: Newbie question re. CSS and Struts

2004-06-26 Thread Rick Reumann
Jan Behrens wrote: I mean, do many people use CSS in combination with Struts or do you normally attache something like font bla... to each property in your message property file, or... I usually use SiteMesh now for controlling the overall layout of my pages, but even if using Struts Tiles,

Re: [OT] Storing Birth Date

2004-06-26 Thread Rick Reumann
Eddie Yan wrote: Anyone know what is the best practices to store a person date of birth ? How should we design our detail object, JSP and database in such way we don't have a messy approached to populate the day, month and year in Action class to be able to display in JSP during UPDATE process.

Re: Newbie question re. forms in combination with tiles

2004-06-26 Thread Rick Reumann
Jan Behrens wrote: please ignore, solved this one myself ;) he he did you solve it half way into typing up the message:) You never really asked a question:) -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 12:58 PM To: Struts Users Mailing

Re: [OT] Storing Birth Date

2004-06-26 Thread Michael McGrady
There are lots of ways to do this, of course, but I have found over the years that working from a long value works best for me. From there you can go any direction. Michael At 09:46 AM 6/26/2004, Rick Reumann wrote: Eddie Yan wrote: Anyone know what is the best practices to store a person date

Re: RE : Struts, XDoclet, and Maven...

2004-06-26 Thread Andy Akins
Thank you! This was exactly what I was looking for. Sadly, being new to Maven, I was unaware of the genapp plugin. Very useful! Again, thanks! Andy On Jun 24, 2004, at 8:00 AM, Heritier Arnaud wrote: Did you try : maven -Dtemplate=struts-jstl genapp Arnaud -Message d'origine- De

Re: Newbie question re. CSS and Struts

2004-06-26 Thread Paul
I typically use my own style sheet on the finished product. During development though I normally use embedded styles, but imported from their own page using tiles. As the browser is seeing embedded styles and not an imported style sheet, I don't have the caching problem during development.

Using multiple message-resources from Java

2004-06-26 Thread Jacob Weber
Hello fellow Strutters, I've added multiple message-resources tags to my struts-config file, each with a different key attribute. Is there a way to access these from my Java code? I can call MessageResources.getMessageResources, but it requires the full path name. Is there a way to just

html:img .... Tag

2004-06-26 Thread Caroline Jen
%@ taglib uri=/tags/struts-html prefix=html % in the beginning of my JSP. This statement that makes an image clickable: td nowrap%if ( previousTopic != 0 ) {%a href=viewthread?thread=%=previousTopic%html:img page=/article/common/images/left.gif border=0 alt=[previous topic]/a%}%/td gives me an

Re: Newbie question re. CSS and Struts

2004-06-26 Thread Paul
I am using tiles: definition name=.article.Base path=/article/common/layouts/Article.jsp put name=title value =${title}/ put name=header value=/article/common/header.jsp/ put name=message value=/article/common/message.jsp/ put name=content

Never Mind.Re: html:img .... Tag

2004-06-26 Thread Caroline Jen
Never mind, I have found the problem. Thank you. --- Caroline Jen [EMAIL PROTECTED] wrote: %@ taglib uri=/tags/struts-html prefix=html % in the beginning of my JSP. This statement that makes an image clickable: td nowrap%if ( previousTopic != 0 ) {%a

Re: html:img .... Tag

2004-06-26 Thread Michael McGrady
Looks as if the value of the page attribute begins with and ends with '. That won't work if that is accurate. At 07:59 PM 6/26/2004, Caroline Jen wrote: %@ taglib uri=/tags/struts-html prefix=html % in the beginning of my JSP. This statement that makes an image clickable: td nowrap%if (