Passing user data via bean:message

2008-09-08 Thread Adam Lipscombe
on't want to have to re-code the backing bean. Any ideas? Canonical solutions? TIA - Adam -- Adam Lipscombe T: 01872 575083 M: 07957 548686 E: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Handling international number and date formats in html:text fields

2007-06-13 Thread Adam Lipscombe
Folks, We have an internationalised site using struts 1.3.8. We output currency and number values to the JSP with the bean:write tag and this works well. The problem comes when the user is entering numbers, currency and dates via an html:text field. Ideally it would be nice if the conversio

inputting numbers with html:text fields and internationalisation

2007-06-13 Thread Adam Lipscombe
Folks, We have an internationalised site using struts 1.3.8. Outputting currency and numbers with the bean:write tag works well. The problem comes when the user is inputting numbers and currency via an html:text field. Ideally it would be nice if the conversion to US/UK format was handled aut

Re: Is it possible to tell if secure sockets in use froma Struts Action?

2007-03-27 Thread Adam Lipscombe
>> You gave up just before you found it: you are looking for ServletRequest.getScheme(): Silly me :-) Many thanks all... Adam Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Lipscombe wrote: From a Struts Action is it possible to tell if SSL

Is it possible to tell if secure sockets in use froma Struts Action?

2007-03-27 Thread Adam Lipscombe
Hi My app is using Struts 1.3.8. It is sometimes deployed with SSL, and sometimes without. From a Struts Action is it possible to tell if SSL is in use? I tried httpServletRequest.getPathInfo(), getRequestURL() and getAuthType(), but none of these seem to return anything that indicates if t

Re: Is it possible to paramterize calls to form bean getters?

2007-02-06 Thread Adam Lipscombe
ndler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) L

Re: formatting money values with bean:write

2007-02-05 Thread Adam Lipscombe
always fail if the formatString is present at all in resources bundle. To make it work the retrieveFormatString() must return null if the formatString is not defined FOR THE LOCALE. Or am I missing something fundamental? Any insight gratefully receieved - this is driving me nuts. TIA - Adam

Re: formatting money values with bean:write

2007-02-05 Thread Adam Lipscombe
Thanks for this. The stack trace is below. The global.moneyFormat property is defined in the app resources file as #,##0.00. The client had a Portuguese locale set, which I believe has a currency format of #.##0,00. As you say, I would expect the system to look for a resources file that is sp

Is it possible to paramterize calls to form bean getters?

2007-02-01 Thread Adam Lipscombe
Folks I need to internationalize an app - returning Locale specific formats for currency and date. One way to do that is to add getLocalised() and setLocalised() to the formbeans for each affected property. These methods will then apply whatever formatting is needed. But, for the tag to wo

formatting money values with bean:write

2007-01-30 Thread Adam Lipscombe
Folks I am using " global.moneyFormat is defined in the vanilla ApplicationResources.properties file as "#,##0.00" To support users in France and Germany there are also ApplicationResources_fr and ApplicationResources_de property files. These define the moneyFormat as "# ##0,00" and "#.##0,0

Problem with formatting money amounts with bean:write formatKey=

2007-01-30 Thread Adam Lipscombe
Folks I am using " global.moneyFormat is defined in the vanilla ApplicationResources.properties file as "#,##0.00" To support users in France and Germany there are also ApplicationResources_fr and ApplicationResources_de property files. These define the moneyFormat as "# ##0,00" and "#.##0,0

Re: bean:message with database backed properties (was bean:write ...)

2006-11-01 Thread Adam Lipscombe
cipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Adam Lipscombe" <[EMAIL PROTECTED]> To: "Struts Users Mai

bean:message with database backed properties (was bean:write ...)

2006-11-01 Thread Adam Lipscombe
Sorry should have been bean:message Adam Adam Lipscombe wrote: Folks, I have a requirement to use a database backed properties mechanism rather than a simple resources text file. The property that is retrieved will depend on the some of the user attributes, so at least 1 attrib would

bean:write with database backed properties

2006-11-01 Thread Adam Lipscombe
Folks, I have a requirement to use a database backed properties mechanism rather than a simple resources text file. The property that is retrieved will depend on the some of the user attributes, so at least 1 attrib would have to passed to the lookup mech. I want to use the standard bean:mes

How to restrict number of chocies in multiple html:select

2006-03-29 Thread Adam Lipscombe
Folks, With an is it possible to restrict the number of selections that can be made? To say 2 or 3? OK I could validate the number selected in the actionform or in javascript but I would really like to tell the combo box to only allow N selections. TIA -Adam

Overlaying a propery definition with > 1 ApplicationResources.properties file

2005-09-07 Thread Adam Lipscombe
Folks, We have a standard ApplicationResources.properties file. If customers want customised labels I want to be able to include a 2nd ApplicationResources.properties file that contains only those labels that have been customised. The 2nd label definition should override the 1st (i.e. standard) d

Linking to Stylesheets

2005-05-31 Thread Adam Lipscombe
Folks, Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. The graphic designers are complaining 'cos on-the-fly changes made in a stylesheet does not automatically force a JSP to get re-compiled by Tomcat 5.0.28. This means they cant see their changes unless they restart TC

RE: technique to show a preview of the image

2005-05-31 Thread Adam Lipscombe
Folks, Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. The graphic designers are complaining 'cos on-the-fly changes made in a stylesheet does not automatically force a JSP to get re-compiled by Tomcat 5.0.28. This means they cant see their changes unless they restart TC

RE: Best practice for redirecting on session timeout?[Scanned]

2005-05-13 Thread Adam Lipscombe
Folks Many thanks for all your input on this. I decided to go with the filter approach. My doFilter() method is below. I certainly traps the timeout. The problem now is that the redirect fails no matter if I use "/pages/SessionTimedOut.jsp" or a fully qualified URL (e.g "http://localhost:8080/Ex

Best practice for redirecting on session timeout?

2005-05-12 Thread Adam Lipscombe
Folks, I there a standard way of handling session timeouts. If a user has been inactive for longer than N minutes I want to redirect them to the login page. It occurs to me that this could be done in a) the RequestProcessor or b) in an JSP include. Is there another way? What is best practice?

RE: Is it possible to harvest the form values and populate an

2005-03-03 Thread Adam Lipscombe
at might work in your scenario? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, March 3, 2005 11:09 am, Adam Lipscombe said: > Folks, > > > I have a tricky little problem with Struts 1.1: > > I have a form, on which ther

Is it possible to harvest the form values and populate an actionform without submitting the form?

2005-03-03 Thread Adam Lipscombe
parent form values explicitly to ensure that the actionform is populated? TIA - Adam Lipscombe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Best practice for formbean scope and handling form validation errors

2005-02-04 Thread Adam Lipscombe
e JSP other than the logic:iterate tag) Tia -Adam -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal Sent: 04 February 2005 17:14 To: user@struts.apache.org Subject: Re: Best practice for formbean scope and handling form validation errors Adam Lipscombe wrote:

Best practice for formbean scope and handling form validation errors

2005-02-04 Thread Adam Lipscombe
Folks, I have 2 actions which look (sort of) like this: If the Form1.jsp is submitted the "/processAction.do" gets called. Validation occurs in either the "myActionForm" actionform or the "myAction" action. If the validation fails a struts ActionErrors object is populated and Form

Visual editors for JSP's with Struts tags

2004-09-30 Thread Adam Lipscombe
Folks, My graphic designer is having difficulties with the design view in DreamWeaver looking at JSp's with struts tags. We have the fwasi struts tag plugs-ins for DW. Basically it seems DW design view support for JSP/Struts is rudimentary at best, and in our case mostly doesn't work. I think

RE: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
m the request Is the problem that you are using redirect?? It can be set up in the struts-config.xml Regards Henrik - Original Message ----- From: "Adam Lipscombe" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sen

RE: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
Folks Thanks for your replies I tried using request.setAttribute(), but the HttpServletRequest instance changes between Login.jsp and the login action. The instance that Login.jsp stores the params in is not the same instance that is passed into the login action. Hence he params are not present

NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
Hi, Under some circumstances my app receives a set of request params at the login.jsp page. After the user has authenticated these params need to be passed to the next page to be displayed (home.jsp). home.jsp then displays differently depending on the params passed. Normally there will be no par

RE: Tool to convert HTML to Struts JSP's?

2004-08-06 Thread Adam Lipscombe
I need to convert the tags, for example -> Thanks - Adam -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich Sent: 06 August 2004 14:31 To: [EMAIL PROTECTED] Subject: Re: Tool to convert HTML to Struts JSP's? ren *.html *.jsp Adam Lipscom

Tool to convert HTML to Struts JSP's?

2004-08-06 Thread Adam Lipscombe
Folks, My Web Designer is supplying HTML files straight from DreamWeaver. I need to convert them to JSP for use with Struts 1.1. If there a tool to assist with this? (doing it by hand is going to be tedious) Previous list answers include Struts Console from James Holmes. I downloaded this

logic:iterator with a arbitrary depth of nested list

2004-07-21 Thread Adam Lipscombe
Folks, Is it possible to use a logic:iterate tag with an arbitrary depth of nested lists. i.e. A List containing Lists, each of which contains a List (etc) The depth of the tree will vary at runtime. I am trying to model the "levels" of an enterprise from top down and want to construct a JavaSc

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request. SOLVED

2004-06-30 Thread Adam Lipscombe
Folks, Eureka! I finally tracked it down to a logic error in my app: I had extended the Struts RequestProcessor to provide a custom processRoles() method. This checks that users are logged in before they can access an action, and also performs role base permission checking. processRoles() was

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread Adam Lipscombe
them same error or not? Might help in finding out whether it is a Struts problem or somehow linked to your setup. Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 2:04 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread Adam Lipscombe
-Original Message----- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 12:57 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Yes, I understand (I think!). How do

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread Adam Lipscombe
sity, have you tried it? Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 12:31 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process th

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread Adam Lipscombe
one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -Original Message- From: Adam Lipscombe [mailto:

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread Adam Lipscombe
at the problem is that you only have one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -----Original Mes

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
this request > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 2:38 PM > To: 'Struts Users Mailing List' > Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status > 500 - No Context configured to pro

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
figuration issue. If it is executing the action, then at what point is the 500 being thrown? > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:31 AM > To: 'Struts Users Mailing List' > Subject: NEWBIE: Wierd

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
f you use the following tag on your index.jsp instead? B > -----Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:31 AM > To: 'Struts Users Mailing List' > Subject: NEWBIE: Wierd problem - Action sometimes produces

RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
configuration issue. If it is executing the action, then at what point is the 500 being thrown? > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:31 AM > To: 'Struts Users Mailing List' > Subject: NEWBIE: Wierd

NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
Folks, I have a strange problem that is confusing me: I have a simple login page with a Help button defined like this: " When pressed, the JavaScript displayHelp() method below is called: function displayHelp(context) { [snip] var url = "" url += "?context=" + context; [snip] wi

RE: NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Adam Lipscombe
Rock Road, 3rd Block, Jayanagar, Bangalore - 560011 Tel: 6655165 / 052 [ ext - 243 ] [EMAIL PROTECTED] -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 5:16 PM To: 'Struts Users Mailing List' Subject: NEWBIE - How to submit form and

NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Adam Lipscombe
Folks, >From browsing the list archive I can see that this sort of questions gets asked frequently. I looked at the solutions but none seem, to fit my case: I am trying to implement a popup window context-sensitive help system for a struts app. My solution so far is to have a help button in it

RE: NEWBIE: how to submit a named html:form via javascript

2004-06-25 Thread Adam Lipscombe
uts config. > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 10:27 AM > To: 'Struts Users Mailing List' > Subject: NEWBIE: how to submit a named html:form via javascript > > > > Folk

NEWBIE: how to submit a named html:form via javascript

2004-06-25 Thread Adam Lipscombe
Folks, I want to submit a named html:form. e.g. Wit the above construct Struts complains that the form requires a "type" attribute - it seems to want me to specify the classname of the ActionForm as the "type". My understanding is that Struts deduces the ActionForm to use aut

RE: logic:redirect not working (problem with dynamic jsp:include?)

2004-06-23 Thread Adam Lipscombe
Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 23 June 2004 13:48 To: 'Struts Users Mailing List'; 'Struts Users Mailing List' Subject: logic:redirect not working Folks, I am trying to implement a simple login gate to ensure a user is logged in.

logic:redirect not working

2004-06-23 Thread Adam Lipscombe
Folks, I am trying to implement a simple login gate to ensure a user is logged in. My code is below. When a user is logged in successfully a session attribute named "userContext" is present, and this has a property named "user". There is a global forward called "login" LoginGate.jsp: <%@ t

FW: Specifying JAAS permission on a per-action basis

2004-06-17 Thread Adam Lipscombe
Sorry, I forgot to ask - Are you still using JAAS/Tagish authentication to log a User in and set up a Principal etc? If not how do you do this? TIA -Adam -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 17 June 2004 16:02 To: 'Struts Users Mailing List

RE: Specifying JAAS permission on a per-action basis

2004-06-17 Thread Adam Lipscombe
It also integrates > with Struts. > > Regards, > David > > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 17, 2004 9:02 AM > To: 'Struts Users Mailing List' > Subject: Specifying JAAS permission on a p

Specifying JAAS permission on a per-action basis

2004-06-17 Thread Adam Lipscombe
Folks, I am using JAAS with the Tagish libraries to authenticate users via a JDBC lookup. This works. What I need to do now is to specify permissions on an action-by-action basis, but I am unclear about how this is achieved... Dan Moore's excellent tutorial at http://www.mooreds.com/jaas.html

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Adam Lipscombe
robust like SecurityFilter? > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 16, 2004 5:11 AM > To: 'Struts Users Mailing List' > Subject: Newbie: Using Struts with JAAS? > > > Folks, > > >

Newbie: Using Struts with JAAS?

2004-06-16 Thread Adam Lipscombe
Folks, I am struggling to understand how to use JAAS with Struts 1.1 I need a simple-to-follow example. The requirement is for standard authentication and permission handling - logging a user in and checking that they have permission to access an Action or URL. Should I use JAAS or home-grown

RE: Newbie FORM authentication problems with a Struts app - TC 5.0.25

2004-06-15 Thread Adam Lipscombe
pp - TC 5.0.25 try this. On 15 Jun 2004, at 11:15, Adam Lipscombe wrote: > Folks, > > > Apologies - this may be a Tomcat issue rather than Struts. > > > I am trying to configure Tomcat FORMS based authentication with a JDBC > realm > (MySQL). I have added the MySQL

Newbie FORM authentication problems with a Struts app - TC 5.0.25

2004-06-15 Thread Adam Lipscombe
Folks, Apologies - this may be a Tomcat issue rather than Struts. I am trying to configure Tomcat FORMS based authentication with a JDBC realm (MySQL). I have added the MySQL driver to the server.xml and configured the Login.jsp page thus:

Newbie: Message Resources problem

2004-06-03 Thread Adam Lipscombe
Folks, I cant seem to fix this. I have 2 properties files: WEB-INF\classes\com\expensys\expensyswt\resources\ApplicationResources.prope rties WEB-INF\classes\com\expensys\expensyswt\resources\jdbc.properties My struts-config.xml snippet is: When I try to access the app I get: javax.servle

Reccomendations for good reference book

2004-06-01 Thread Adam Lipscombe
Folks, I am a newbie. I want a good reference that is easy to digest, yet contains advanced examples (for later:-) Searching on a book site reveals at least 20 publications Any recommendations? TIA - Adam -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 13 M

Newbie question: Are there any issues in having popup browser windows

2004-05-27 Thread Adam Lipscombe
Folks, Are there any issues to bear in mind when displaying sub-windows in a browser? One of our web developers wants to have several sub-windows launched from links on the main page. Is this OK in Struts? TIA - Adam - To u

Are there any IDE's that understand Struts tags?

2004-05-27 Thread Adam Lipscombe
Folks, I am developing a J2EE server using Struts. The JSPs will be constructed by a web developer who is used to DreamWeaver. I imported the Struts tag libraries into DW, but the "design view" doesn't work. He cant layout the pages visually. Is this a limitation of DW? Are there any web IDE

RE: Newbie question: Deleting an ActionForm that is in session scope.

2004-05-14 Thread Adam Lipscombe
edInTheStrutsConfig") Regards, -Yves- > -Original Message- > From: John Moore [mailto:[EMAIL PROTECTED] > Sent: Friday, May 14, 2004 6:25 PM > To: Struts Users Mailing List > Subject: Re: Newbie question: Deleting an ActionForm that is in session > scope. >

Newbie question: Deleting an ActionForm that is in session scope.

2004-05-14 Thread Adam Lipscombe
Folks, I have a wizard framework that uses the same ActionForm to collect data as the wizard progresses. The scope of the ActionForm is session so that values are preserved when the user navigates back and forwards through the wizard. When I get to the end of the wizard, I don't want the same

RE: Newbie question: How to implement conditional validation in an ActionForm?

2004-05-13 Thread Adam Lipscombe
That did the trick. Many thanks! -Original Message- From: John Moore [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 17:58 To: Struts Users Mailing List Subject: Re: Newbie question: How to implement conditional validation in an ActionForm? Adam Lipscombe wrote: > >Is there any

RE: Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread Adam Lipscombe
: Newbie question regarding Tiles and ActionErrors Hi I think you should check your tag for the input attribute. input attribute should be having the name of the file you want to display in case of any error from validation cheers kk PS: let me know if that help --- Adam Lipscombe <[EM

Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread Adam Lipscombe
Folks, I am a struts newbie trying to create a test app using Struts 1.1, JSP with Tiles. My problem is that I am using Tiles to construct templated JSPs. One of the JSP elements inserted into the template has a form that captures user input. When the form is submitted and the ActionForm val