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]
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
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
>> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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]
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:
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
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
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
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
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
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
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
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
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
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
-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
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
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:
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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,
>
>
>
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
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
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:
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
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
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
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
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.
>
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
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
: 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
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
64 matches
Mail list logo