RE: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Paul McCulloch
Something like bean:define id=type bean:write name=product property=productType /bean:define bean:message key=%='prompt.productType.' + type%/ Paul -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 16:03 To: 'Struts Users Mailing List'

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
You code code your app to always use http POST, but block GETs. This may not be suitable if you've already written the app though! Paul -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:17 To: Struts Users Mailing List Subject: blocking

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
this kind of error message javax.servlet.ServletException: Request[/RechartFiles] does not contain handler parameter named method org.apache.struts.actions.LookupDispatchAction.execute(LookupD ispatchAction.java:199) ... Paul McCulloch wrote: You code code your app to always

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
Actually, it's simpler than that (as I just saw on another thread). Just implement unspecified() in your action to override the default behaviour when no dispatch method is provided. Paul -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:49

RE: [OT] Database password

2004-03-12 Thread Paul McCulloch
Why not put the file in area that is accessible only to the right users and have the app server run under a user account with the relevant privelages? Paul -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 18:59 To: 'Struts Users Mailing List'

RE: need help converting from session to request scope

2004-02-26 Thread Paul McCulloch
as it may have appeared in previous threads. Niall - Original Message - From: Paul McCulloch [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 4:13 PM Subject: RE: need help converting from session to request scope My

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
You don't neccessarily have to worry that much about storing things in session. Once the session is terminated (either through logout, or via the timeout of your container) the garbage collector will do that for you. In my application all form beans are session scope. My users only use one form

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
evil, but unless there's a wizard type situation where you want to span across a number of forms there's no more work involved scoping to request. On 25 Feb 2004, at 12:23, Paul McCulloch wrote: You don't neccessarily have to worry that much about storing things in session. Once

RE: Nested nest Tag

2004-02-25 Thread Paul McCulloch
Have you tried using the LocDTO properties? I think it will just work - Struts uses bean utils which looks at the object you are trying to operate on, rather than the type it is declared as. Paul -Original Message- From: Daniel, Gillian [mailto:[EMAIL PROTECTED] Sent: 25 February 2004

RE: Nested nest Tag

2004-02-25 Thread Paul McCulloch
it and it did work. I had tried before but it didn't work, but I tried again and it did work, so thanks for prompting me to try again. Something must have been wrong the first time. Thanks again, Gillian -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 25

RE: ActionForward and onLoad()

2004-02-24 Thread Paul McCulloch
I'm a bit confused by what you are trying to do. I have a jsp page which I need to retrieve some values at onLoad time, i.e.: body onload=javascript:getValues(); If you need to retrieve values then do that in the Action and put them somewhere (e.g. a request scope attribute) so that you can

RE: ActionForward and onLoad()

2004-02-24 Thread Paul McCulloch
All of this worked, until I decided to use attributes to send the data 'the other way'. Does the data only flow one way? I've been experiment with I'm not with you. The data flow is always only one way - the user makes a request (possibly including data as either request parameters,

RE: need help converting from session to request scope

2004-02-24 Thread Paul McCulloch
Firstly I'd ask what is wrong with using session scope - has load testing your applcation shown that session scope is too memory intensive? It looks like the 'years' list was stored in the form bean. You will need to recreate all of your lists etc (e.g. years) in every action if you are going to

RE: How to create a No Action ActionForward for return from an Action's execute() ?

2004-02-19 Thread Paul McCulloch
I use a a Servlet Filter to achieve this. This filter intercepts request before Struts gets it's hands on the request. Paul -Original Message- From: James Adams [mailto:[EMAIL PROTECTED] Sent: 19 February 2004 18:17 To: [EMAIL PROTECTED] Subject: How to create a No Action

RE: html:select

2004-02-17 Thread Paul McCulloch
Surely your application is responsible for creating the options in the first place? Why not create a map of the key,value pairs at that time refer to it later? Paul -Original Message- From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 16:13 To: Struts

RE: Could not find resource error

2004-02-17 Thread Paul McCulloch
And this is struts related how? -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 17:22 To: 'Struts Users Mailing List' Subject: Could not find resource error Can't figure out why this code is giving me an error: import

RE: Could not find resource error

2004-02-17 Thread Paul McCulloch
Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 10:26 AM To: 'Struts Users Mailing List' Subject: RE: Could not find resource error And this is struts related how? -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED

RE: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Paul McCulloch
Have a look at the Servlet spec. Paul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 19:09 To: Struts Users Mailing List Subject: Re: SecurityFilter with Struts quick and easy question It does use a servlet that all request that match a

RE: Default locale gets intermixed with other locales

2004-02-16 Thread Paul McCulloch
I think I found the same problem some time ago. I can't remember what the underlying issue was (maybe mixing the struts jstl ii18n tags?), but the solution was to create an explicit bundle for the default locale - I have my build scripts copy Application.properties to Application_en.properties.

RE: ActionForward(mapping.getInput()) ....

2004-02-16 Thread Paul McCulloch
This is a bit of a guess Are you using relative paths for your images? When you access the jsp directly your current page is /somewebapp/geral/geralLogin.jsp. So an image whichg refers to ../images/somepicture.gif will resolve to /somewebapp/images/somepicture.gif. When you get errors your

RE: html:link instead of html:submit

2004-02-13 Thread Paul McCulloch
I don't beleve this will submit the values in the form's input fields. I've achieved this functionality by having links which use javascript to set the dispatch form value call submit. Paul -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: 12 February

RE: Passing an ArrayList

2004-02-09 Thread Paul McCulloch
You really want to stick the data in session scope - that is what it is for. Request scope really won't help - anything in there will have gone out of scope immediately after the page is rendered for the user. I'd *seriously* question why you aren't supposed to be using session scope. Can you

RE: Can't make html:checkbox CHECKED by default

2004-02-05 Thread Paul McCulloch
The checkbox will display a value depending on the value of the 'foo' property of your form bean. To make the value checked set the value on the form bean before displaying the page. Paul -Original Message- From: otisg [mailto:[EMAIL PROTECTED] Sent: 05 February 2004 12:58 To: [EMAIL

RE: How to export the html table contents (records) to an Excel f ile.

2004-02-05 Thread Paul McCulloch
By default (no requestURI attribute) sorting just makes another request to the .jsp to do the work - the action isn't executed again. I tend to use a 'redraw' dispatch action so that every server request still goes through an action. Paul -Original Message- From: Desai, Sunny

RE: duplicate form object

2004-02-05 Thread Paul McCulloch
--- I commented the usebean that was pointed out in prev. thread !-- jsp:useBean id=subscription scope=session class=com.borneo.beans.SubscriptionForm /-- No you didn't - you commented out the result of the tag from the rendered html. You need to comment it out in the world of jsp %-- --%

RE: session timeout -- time limit

2004-01-30 Thread Paul McCulloch
It's a setting in web.xml: session-config session-timeout10/session-timeout /session-config -Original Message- From: Oliver Thiel [mailto:[EMAIL PROTECTED] Sent: 30 January 2004 10:31 To: [EMAIL PROTECTED] Subject: session

RE: stop user from clicking the submit button twice

2004-01-30 Thread Paul McCulloch
Here's a bit of JS to disable all the buttons etc on a form function disablesubmit (forma) { for (var frm = 0; frm document.forms.length; frm++) { for (var i = 0; i document.forms[frm].elements.length; i++) { thisform = document.forms[frm];

RE: Can i access session or request object from a bean which is A ctionform variable

2004-01-29 Thread Paul McCulloch
My base ActionFrom has a session attribute on it. In the base reset() method I set the ActionForm's session to the current session. I considered having a request attribute on the from bean, but that looked like a problem waiting to happen if I used session scoped forms. Paul -Original

RE: no process to read data written to a pipe ??

2004-01-29 Thread Paul McCulloch
This looks like what happens if the the browser gives up on the reqest in question and makes a new one. I don't use Websphere so I can't be sure, but the Tomcat error in that situation is very similair. Try and reproduce it in development - make a request to your app then navigate anywhere else

[OT] How to use java constants as bean identifiers in jsps

2004-01-26 Thread Paul McCulloch
Hi, Is there a common solution to using Constants for bean identifiers in your views? For example in some action I have ... Collection foo = new SomeCollection(); request.setAttribute(Constants.SOME_THING, foo); I want to access this collection via the JSTL in my view. Something like

RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
This has been raised before. See http://sourceforge.net/tracker/index.php?func=detailaid=813006group_id=730 68atid=536613 I've patched the taglib to support an additional tableId attribute which can be dynamic. This is a simple change to TableTag.java the supporting TLD. The other change is to

RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 4:20 AM To: 'Struts Users Mailing List' Subject: RE: [DisplayTag] Use

RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 4:20 AM To: 'Struts Users Mailing List' Subject

RE: Session Problem

2004-01-22 Thread Paul McCulloch
This feature seems to have been dropped in IE 5.01 later. http://support.microsoft.com/?kbid=240928 Pitty - sounded like a useful way of demoing multiple users accessing the system from a single machine. Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]

RE: editor

2004-01-22 Thread Paul McCulloch
The Blacksun HTML editor plugin for Eclipse will do tyhat for you. Paul -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: 22 January 2004 12:27 To: Struts Users Mailing List Subject: editor Does anybody knows a good and free struts editor ? Does anybody knows an

RE: HttpSession size - is this code correct?

2004-01-22 Thread Paul McCulloch
It is possible to reference the same object through multiple session attributes. I often do this to allow shorthand access to heavily nested properties. Your method would count multiple references to the same object multiple times. An alternative approach would be to look at the amount of memory

RE: Access Applicationresources.properties from Action

2004-01-16 Thread Paul McCulloch
Is there an easy way to get the 'closest match' on terms of locales in the request? For example, my browser has it's request languages set to Italian;French;English. My application's default properties file is in English. There is a French properties file but not an Italian one. So, when I ask

RE: Ling Tag client

2004-01-16 Thread Paul McCulloch
The approach I use when I want to leverage another tags functionality is to nest the tag I want to use inside my own tag body. My own tag then processes the result of the other tag. e.g. mytags:sometag html:link/ /mytags:sometag I don't know if this will help in your situation or not.

RE: Text (A4-Page) inside a jsp-page

2004-01-12 Thread Paul McCulloch
I define the path to the locale specific page in the application.resources file. For example my application.resources file might have an entry like: locale.dependant.page=english.html and the french .properties file: locale.dependant.page=french.html The JSP to include the relvant version

RE: Dependent Drop Down Boxes

2004-01-07 Thread Paul McCulloch
Have a look at http://www.mattkruse.com/javascript/dynamicoptionlist/ Paul -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 18:00 To: Struts Mailing List Subject: Dependent Drop Down Boxes Hi I was wondering if anyone knew of any

RE: Problem with CSS after validation

2003-11-28 Thread Paul McCulloch
Is the URL for the page the same in both cases? One way I can see this happening is that you enter the page with a URL like http://myhost/myapp/foo/bar.jsp but when you have gone through validation you have a URL like http://myhost/myapp/someaction.do If that is the case then look at usibg

RE: Dynamic value in customer tag ??

2003-11-28 Thread Paul McCulloch
Look at the paramId paramName attributes of html:link. Pauk -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 09:01 To: Struts Users Mailing List Subject: Dynamic value in customer tag ?? Hello, In the customer tag, how can I add a dynamic

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
You are storing it in the request with the name myObejct but trying to retrieve it with the name o. Use: MyObject o2 = (MyObject)request.getAttribute(myObejct); Paul -Original Message- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 11:40 To: [EMAIL PROTECTED]

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
It still isn't correct. You staore it as myObejct and try and retrieve it as myObject Paul -Original Message- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 11:51 To: Struts Users Mailing List; Honza Spurn Subject: Re: request.setAttribute Corrected version:

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
] Sent: 28 November 2003 11:59 To: Struts Users Mailing List Subject: Re: request.setAttribute Paul McCulloch wrote: It still isn't correct. You staore it as myObejct and try and retrieve it as myObject OK OK, that is only overwrite, sorry... but this is not copied from code

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
Please send some real code. I think you may have over simplfified what you are showing us. Paul -Original Message- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 12:09 To: Struts Users Mailing List Subject: Re: request.setAttribute Paul McCulloch wrote

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 12:22 To: Struts Users Mailing List Subject: Re: request.setAttribute Paul McCulloch wrote: Please send some real code. I think you may have over simplfified what you are showing us. Paul No no, this is realy all

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
is going to work. Try using different classes instead of Server - I'd start with String. Paul -Original Message- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 12:33 To: Struts Users Mailing List Subject: Re: request.setAttribute Paul McCulloch wrote: The request

RE: JSTL and Struts tags problem...

2003-11-27 Thread Paul McCulloch
What do you mean by doesn't work? Do you get error messages? What does the generated html look like? Does fmt:message work on it's own? Does using bean:message instead of fmt:message make any difference? Paul -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]

RE: [OT] How to select an Option automatically?

2003-11-26 Thread Paul McCulloch
Have a look at http://www.mattkruse.com/javascript/autocomplete/ It seems to meet your requirements. Paul -Original Message- From: Pingili, Madhupal [mailto:[EMAIL PROTECTED] Sent: 25 November 2003 21:57 To: 'Struts Users Mailing List' Subject: [OT] How to select an Option

RE: bean:include problem - urgent..help!!

2003-11-26 Thread Paul McCulloch
What about the JSTL c:import tag? I use it with https without any issue. I'm using JDK 1.4.2 which may explain why it works for me though. Paul -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED] Sent: 26 November 2003 04:14 To: 'Struts Users Mailing List' Subject: RE:

RE: save form fields

2003-11-25 Thread Paul McCulloch
I've been looking at this recently. Their appear to be two classes of solutions: 1) Client side logic in Javascript. All links, menu options etc. execute some javascript which can decide not to change the current page, but ask/force the user to save first. 2) Server side logic. All navigation

RE: URGENT:logic:iterate

2003-11-25 Thread Paul McCulloch
Do you really think shouting URGENT and repeatedly asking the same question is going to encourage people to help you out? Well, Not me. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 November 2003 15:33 To: [EMAIL PROTECTED] Subject:

RE: checkbox onclick event not getting called

2003-11-25 Thread Paul McCulloch
This is probably OT, but anyway... It may be the way you are referencing the form. Try 'document.forms[0].add.disabled = ( element.checked );' That worked for me - I didn't use struts though - I just messed around with static html: html SCRIPT LANGUAGE=JavaScript function check(element) {

RE: html:radio 'property' doesn't work with 'isBoolean()' type me thod call?

2003-11-25 Thread Paul McCulloch
There's a much better search available with what looks like a relevant post for you: http://marc.theaimsgroup.com/?l=struts-userm=99483696509329w=2 Paul -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: 25 November 2003 16:48 To: Struts Users Mailing List

RE: html:submit and html:button componant : value and text label

2003-11-24 Thread Paul McCulloch
This is an html issue, rather than a struts one. Read up on how input type=submit/ works for an in depth explanation. Struts provides the LookupDispatchAction which is designed to deal with this issue. Paul -Original Message- From: Eric BELLARD [mailto:[EMAIL PROTECTED] Sent: 24

RE: [OT] Stress Test

2003-11-24 Thread Paul McCulloch
I use JMeter for this sort of thing. It's JSession aware which makes life a bit easier. Paul -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 24 November 2003 15:05 To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my

RE: Key-based comparator tools

2003-11-21 Thread Paul McCulloch
Eclipse has this feature (built in I think). Just select two .properties files and choose 'compare with each other'. Paul -Original Message- From: Maurice Wijtten [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 08:54 To: Struts Users Mailing List Subject: Key-based comparator tools

RE: Actions which create sessions seem to hang

2003-11-21 Thread Paul McCulloch
I've had my Struts application running on JBOSS 3.2.2/Tomcat for a couple of weeks with hundreds of simulated users at a time, so I don't think there is any inherent issue with the architecture. Tools I've found useful in tracking issues like this in past are: Running JBOSS with the JVM set to

Lazy questions on this list

2003-11-20 Thread Paul McCulloch
Is it my imagination or are the number of downright lazy requests to this list getting worse? If the only replies any lazy questions ever got was http://www.catb.org/~esr/faqs/smart-questions.html then maybe people would get the point. Has anyone got any other ideas about how we can reduce the

RE: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
and that's a great news for an open source project. Maybe a warning notice on the mail subscrubtion confiration could reduce lazy requests... Carl Paul McCulloch wrote: Is it my imagination or are the number of downright lazy requests to this list getting worse? If the only replies any

RE: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
-Original Message- From: Long, Robert [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 17:36 To: Struts Users Mailing List Subject: RE: Lazy questions on this list So from what I'm hearing here, as a newb, it is safe to assume that all answers to my questions will be

RE: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
I agree. I'm just hoping to cut down on the number of posts where this list is used as the very first port of call when trying to solve a problem. Paul -Original Message- From: Gus Heck [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 17:46 To: Struts Users Mailing List Subject:

RE: bean:message MessageFormat and number formating

2003-11-19 Thread Paul McCulloch
The jstl eqivalent of bean:message allows you to pass arguments via the tag body, so you can use another tag inside the body: fmt:message key=cart.amount fmt:param fmt:formatNumber value=${total} type=CURRENCY/

RE: Map Backed Action Form

2003-11-19 Thread Paul McCulloch
Start here: http://www.catb.org/~esr/faqs/smart-questions.html Paul -Original Message- From: Agashivala, Vishal [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 12:17 To: Struts Users Mailing List Subject: RE: Map Backed Action Form Hi Can anyone help me to implement MAP BACKED

RE: [OT] generate HTML file from XML and XSLT

2003-11-14 Thread Paul McCulloch
Hava a look at the sample servlets etc. that come with the Apache Xalan-J package. Paul -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 19:14 To: [EMAIL PROTECTED] Subject: [OT] generate HTML file from XML and XSLT Hi, I have a XML file and a

RE: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
One of the joys of using Struts is that you have access to all the source code so you can answer these questions yourself. I had a quick look at the source - only public methods with the same signature as execute() will be called. So getServlet() cannot be called as it has the 'wrong' signature.

RE: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
The key method map relates to LookupDispatchAction, the original question was about DispatchAction. Paul -Original Message- From: Paananen, Tero [mailto:[EMAIL PROTECTED] Sent: 14 November 2003 14:52 To: 'Struts Users Mailing List' Subject: RE: DispatchAction and Security So, only

RE: Line break and bean:write

2003-11-07 Thread Paul McCulloch
You need to replace newlines with brs: workString.replaceAll(\n, \nbr); Paul -Original Message- From: Mohamed Abu Zur [mailto:[EMAIL PROTECTED] Sent: 07 November 2003 11:12 To: [EMAIL PROTECTED] Subject: Line break and bean:write Hi all: I insert a text with various line

RE: How do un-load (destroy) a servlet after startup?

2003-11-07 Thread Paul McCulloch
Firstly, this isn't a struts question - there will be a far more appropriate list somewhere. Secondly - have you read the servlet spec? This will answer many questions. A quick answer - no. There is no real need to unload the servlet (althought the container may decide to do just that!) - just

RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
I use struts menu, with the CoolMenu displayer, and everything works fine. Your config looks ok. What exactly isn't working? There is a struts-menu specific mailing list, which would be a more approriate place to ask for help. Paul -Original Message- From: koen boutsen [mailto:[EMAIL

RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
switches his language, by clicking an image, I create another Locale, e.g. French. All the other labels I use, change into the wright language, but the menulabels stay in the original language. Thanks in advance Koen -- - Original Message - DATE: Thu, 6 Nov 2003 12:46:13 From: Paul

RE: Access message resources from Action?

2003-11-06 Thread Paul McCulloch
((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)).getMessage(locale, message.key) Paul -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: 06 November 2003 14:51 To: Struts Users Mailing List Subject: Access message resources from Action? This seems like a

RE: Session Times Out

2003-11-03 Thread Paul McCulloch
I use a servlet filter - this way I can restrict access to actions JSPs without putting any code in either of them. Paul -Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) [mailto:[EMAIL PROTECTED] Sent: 03 November 2003 10:20 To: Struts Users Mailing List Subject:

RE: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Paul McCulloch
In case you didn't know, you can precompile a specific jsp by simply making a reqest to the page with a special paramter: ttp://myapp/somepage.jsp?jsp_precompile If you don't have a huge number of pages this might form the basis of a quick and dirty hack. Paul -Original Message- From:

RE: [OT] RE: javascript question...

2003-10-30 Thread Paul McCulloch
I'm pretty sure you can do it: var newwin=window.open(a.html?Name= + namVal); Paul -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 21:41 To: Struts Users Mailing List Subject: [OT] RE: javascript question... No, you can't do it that way. But

RE: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Paul McCulloch
I use a similair approach, but get fmt:message to deal with selecting the correct locale for me: bean:define id=localePage fmt:message key=some.langauage.specific.page/ /bean:define jsp:include page=%=localePage% flush=true/ I then define the path to the locale specific html page in the

RE: format string bean write - property editor

2003-10-15 Thread Paul McCulloch
I'd create a custom tag and pass bean:write as the body. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 14:53 To: struts-user Subject: format string bean write - property editor Hello I read this mailing list since 1 year, but it is my

RE: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Paul McCulloch
is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (708) 570-2772 Fax MSN: mickknutson ICQ: 316498480 ICQ URL: http://wwp.icq.com/316498480 --- - Original Message - From: Paul

RE: IMPORTANT: how to tell

2003-10-15 Thread Paul McCulloch
Try http://marc.theaimsgroup.com/?l=struts-userr=1w=2 Paul -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 17:23 To: Struts Users Mailing List Subject: Re: IMPORTANT: how to tell The list does have an abundance of valuable information. Am I

RE: [SOLVED] Drop down boxes

2003-10-14 Thread Paul McCulloch
How about some javascript (to call submit()) on the onchange event of the dropdown? Paul -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: 14 October 2003 12:42 To: Struts Users Mailing List Subject: [SOLVED] Drop down boxes Todor Sergueev Petkov wrote:

RE: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
Use the jstl: fmt:message key=cancel.message fmt:param html:link forward=emailemail us/html:link /fmt:param /fmt:message You probably want the text of the link to come from the resources as well: fmt:message key=cancel.message fmt:param

RE: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
I think). Thanks. David --- Paul McCulloch [EMAIL PROTECTED] wrote: Use the jstl: fmt:message key=cancel.message fmt:param html:link forward=emailemail us/html:link /fmt:param /fmt:message You probably want the text of the link to come from the resources

RE: JSP Expression inside Struts html:text property

2003-10-13 Thread Paul McCulloch
When using a runtime expression as an attribute value the whole attribute must be a single expression: html:text property=%=\person\ + x% value=/ Paul -Original Message- From: Jonathan Hawkins [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 15:27 To: Struts Users Mailing List Subject:

RE: newbie: Best Practice Struts/Value-Objects?

2003-10-03 Thread Paul McCulloch
I *think* the other option is to put your form bean ( it's emebedded VO) in session scope (rather than request which you seems to have at the moment). Doing this means that the unchanged values on your VO will remain unchanged (rather than being nulled). Paul -Original Message- From:

RE: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Paul McCulloch
My aproach is as follows: Each form bean property which can be searched is a descendant of SearchableProperty. A SearchableProperty consists of: *A String value representing the user's input *The selected business entity (if the user has selected one) *An object descended from Lookup, which

RE: bean:write Not Working With Tiles

2003-09-19 Thread Paul McCulloch
Looks like you haven't declared the bean taglib in the page! Paul -Original Message- From: Alex Araujo [mailto:[EMAIL PROTECTED] Sent: 19 September 2003 15:55 To: [EMAIL PROTECTED] Subject: bean:write Not Working With Tiles I'm migrating a struts/jsp app to tiles and I'm having a hard

RE: bean:write property= Format a Date ?

2003-09-17 Thread Paul McCulloch
An easy way is to use JSTL's fmt:formatDate tag. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 13:31 To: Struts-User Subject: bean:write property= Format a Date ? one of my Bean propertys is a Date and i want to output it formated, is

RE: bean:write with a not simple property

2003-09-16 Thread Paul McCulloch
It's easier than you think: bean:write name=currentLoopUser property=address.street/ Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2003 12:38 To: Struts-User Subject: bean:write with a not simple property hello, i use logic:iterate to

RE: how to output value in text field?

2003-09-12 Thread Paul McCulloch
Why not set the default value on the form bean in an Action and let html:text render it for you? Paul -Original Message- From: Rick Col [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 17:27 To: [EMAIL PROTECTED] Subject: how to output value in text field? Hi, I am trying to output a

RE: Struts EL

2003-09-12 Thread Paul McCulloch
It's in the contrib directory of the struts distribution. I can't help you much on using JSTL struts-el together I'm afraid. But, wouldn't html-el:text property=${bean.key} value=${bean.value}/ be a bit more ELish? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Using the bean:message tag as a parameter for itself

2003-09-11 Thread Paul McCulloch
Using struts tags: bean:define id=key2 bean:message key=something.else/ /bean:define bean:message key=somthing arg0=%=key2% / Using JSTL: fmt:message key=somthing fmt:param fmt:message key=something.else / /fmt:param /fmt:message Paul -Original

RE: client side sorting.

2003-09-11 Thread Paul McCulloch
If you can live with a server side solution then the display taglib does this much more. Paul -Original Message- From: imran ali [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 16:23 To: Struts Users Mailing List Subject: client side sorting. Hi All, I have a struts page with a

RE: i18n with struts / JSTL

2003-09-09 Thread Paul McCulloch
Bear in mind that there are bugs in the jstl code that aren't in the struts equivalents: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16932 My approach has been to use the jstl tag and hope that the bug is fixed before I have to release! Paul -Original Message- From: Adam Hardy

RE: Combining struts and JSTL tags...

2003-09-08 Thread Paul McCulloch
This can happen if you have included the bean taglib twice. Is the page with which you get an error included via an %@ include statement? Paul -Original Message- From: Loren Hall [mailto:[EMAIL PROTECTED] Sent: 06 September 2003 00:13 To: Struts Users Mailing List Subject: RE:

RE: click on button--save data--go to another page?

2003-09-08 Thread Paul McCulloch
The action class that handles the saving of your data returns an ActionForward - your execute() code determines what that forward is. To go to sample2.jsp you want to end your execute() with: return mapping.findForward(sample2); Paul -Original Message- From: Rick Col

RE: Display Taglib vs HtmlTable

2003-08-29 Thread Paul McCulloch
I have only tried the display taglib. I've found it to be powerful, easy to use easy to extend. My requirements are such that I've had to use the un-released 'display09' stream. But it does everything I need, seems stable, and the code is easy enough, for a developer with only a few months of

RE: Remote Debugging facility

2003-08-29 Thread Paul McCulloch
I use this facility without a problem. My CATALINA_OPTS Eclispse settings are identical to yours. How are you startimg Tomcat? The icon installed in the Start menu *does not* use catalina.bat. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 August

RE: variable in tag

2003-08-29 Thread Paul McCulloch
That is exactly how you do it! If that isn't working then it may be beacuse you are using the html-el taglib rather than the standard one. Paul -Original Message- From: LUCERO,DENNIS (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 22:23 To: ' ([EMAIL PROTECTED])' Subject:

RE: 2 Parameters

2003-08-29 Thread Paul McCulloch
You might have more luck on the list for that tag: http://lists.sourceforge.net/lists/listinfo/displaytag-user I use decorators to do this sort of thing. Paul -Original Message- From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED] Sent: 29 August 2003 12:02 To: Struts Users Mailing List

  1   2   >