RE: Using JSTL to access form bean properties

2005-08-15 Thread Paul McCulloch
Rather than remember the name of the form bean, I use the following: Note that I uses session scoped form beans - the expression would have to change slightly for request scoped ones. Paul > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: 14 August 2005 19:18

RE: multipart request issues

2005-07-28 Thread Paul McCulloch
You're theory is correct. The input stream is consumed as it is parsed. The process flow doesn't seem to match what I'm seeing (Struts 1.2.4). In 1.2.4 all off this is handled in the request processor - not the servlet. The very first thing the request processor does (in processMultipart) is to pa

RE: Performance profiling

2005-05-26 Thread Paul McCulloch
I've used Borland's OptimizeIt fairly successfully. I'm not sure of the cost (there may be a free trial available) - it may well be cheaper to just buy another processor! Paul > -Original Message- > From: Ulrich Elsner [mailto:[EMAIL PROTECTED] > Sent: 2005/26/05 17:17 > To: user@struts.a

RE: How to run an action automatically like thread ?

2005-05-26 Thread Paul McCulloch
Quartz (http://www.opensymphony.com/quartz/) is a job scheduling system which sounds like it could help you out. I'd reconsider whether your code should really be in a Struts action. What are you gaining by using Struts for a non-web bit of processing? Paul > -Original Message- > From: m

RE: Getting name of form bean?

2005-05-16 Thread Paul McCulloch
In request scope, under the key 'org.apache.struts.action.mapping.instance' is an object of type ActionMapping. The name property of this ActionMapping is the name of the form bean being handled by the current request. This relates to the form bean specified for the request being processed - not t

RE: Best practice for redirecting on session timeout?

2005-05-12 Thread Paul McCulloch
How does your system know to send the user to the login page in the first place? Typically an application (or the container if you are letting it manage authentication) detectes that a request is made with no session/an invalid session/a new session. It then sends the user to the login page. Assu

RE: Injecting actions globally

2005-05-09 Thread Paul McCulloch
Container managed security will do this for you (though it has some drawbacks). If you don't need the advantages of container managed auth (such as automatic propogation of credentials to EJBs) then you should consider filters to implement this. Filters are a relatively recent servlet feature - I'd

RE: Multiple forms on one page

2005-04-27 Thread Paul McCulloch
You can only submit one form at a time. This is an http issue - not a Struts one. The solution I have used is to combine all the neccessary fields into a single form. I typically do this with nested objects - so my form bean would have two properties "data" & "search" say. These objects themsel

RE: HTML:tags in a Tag

2005-04-21 Thread Paul McCulloch
> It would be great to get this to work - I have a need to do > this in our > project. > > Thanks, > Dave > > > > >

RE: html:text area

2005-04-20 Thread Paul McCulloch
Watch out for users pasting in text that exceeds the allowed limit! Paul > -Original Message- > From: Mike Darretta [mailto:[EMAIL PROTECTED] > Sent: 2005/20/04 17:03 > To: Struts Users Mailing List > Subject: Re: html:text area > > > I had the same issue, and resolved it by executing a

RE: HTML:tags in a Tag

2005-04-20 Thread Paul McCulloch
I achieve this by having my tag include (pageContext.include() ) a JSP page which has the other custom tags I want to use. Paul > -Original Message- > From: Scott Purcell [mailto:[EMAIL PROTECTED] > Sent: 2005/20/04 16:21 > To: user@struts.apache.org > Subject: HTML:tags in a Tag > > >

RE: Session now with Filter

2005-04-14 Thread Paul McCulloch
ould possibly use the filter to check for the > existance of the session and "user" object? And if the > session does not exist? use a redirect to the login page? So > this filter would only look at incoming requests? > > Thanks, > Scott > > > > &g

RE: Handling Session Expiration Properly

2005-04-14 Thread Paul McCulloch
Hi Scott, I can't remeber if it was your question I replied to regarding authentication where I recommended using a filter to do this, rather than modifying the request processor. If it wasn't your question then I'd recommend a serach of the archives. If it was you - I still think modifying the re

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
- > month val1val2 > jan 1 2 > feb 3 4 > > target_target > - > VAL COL1COL2 > month jan feb > val1 1 3 > val22 4 > > Thanks, > Dennis >

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
I don't 100% understand your tables. Where does ID come from (the values 1 & 2 exist in the first view, but 1,2,3,4 in the second). Are the totals derived? Give me the SQL for the first view and I'll have a look. Paul > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTE

RE: Authorized Site Creation With Struts

2005-04-08 Thread Paul McCulloch
The two approaches I have succesfully used are container managed authentication & Filters. Filters are simpler & more flexible than container managed authentication, so unless you need a particular feature of CMA (e.g. automatic propogation of credentials to EJBs) I wouldn't recommend it. I belie

Reading parameters from a multipart request in a custom tag

2005-03-24 Thread Paul McCulloch
I'm trying to access the request parameters (i.e. submitted form values) in a custom tag. This is fine with 'normal' forms but with multipart forms (enctype="multipart/form-data") this isn't working. The code in the custom tag does, in essence, what the RequestProcessor does - calls org.apache.com

RE: html: tag four buttons, one action problem

2005-03-24 Thread Paul McCulloch
I use the approach outlined in http://www.michaelmcgrady.com/button/jsp/button_talk.jsp. In summary each button, when clicked, puts their value in a different request paramater - by looking for the presence of a partcicular paramater a different dispatch method can be called. This approach should

RE: Is it possible to harvest the form values and populate an act ionform without submitting the form?

2005-03-03 Thread Paul McCulloch
Could the button on your parent submit the form to the backend with a new popup windows defined as the "target" attribute (of the html form)? That way your main form values are sent to the backend, but the results (i.e. your wizard) is shown in the popup window. Paul > -Original Message-

RE: RequestURI (Action not JSP)

2005-03-01 Thread Paul McCulloch
I don't think you need to do this. If you miss out the requestURI attribute then the current request's URI is used, which will (in a typical struts application) be the URI of the last action - not the JSP forwarded to. If you need more help with this then post to the displaytag mailing list. Paul

RE: Hibernate: when 2 users simultaneous edite

2005-02-22 Thread Paul McCulloch
This is well of topic - please use [OT]in your subject in the future. This is a classic multi user application problem. The problem is commonly known as 'lost update' & an often used solution is optimistic locking. In my experience using a 'version' column on each table is easier to manage than t

RE: Multi Lingual Spell Checking

2005-02-18 Thread Paul McCulloch
I've sucessfully used http://www.wintertree-software.com/dev/ssce/javasdk.html in my company's product. There are many ways to use this product - in my case I submit the form containing the fields to be checked to an action (with the target set to a popup window). This was hacked together, withou

RE: Struts tags inside struts tags

2005-02-17 Thread Paul McCulloch
It is not possible. This a restriction of JSP rather than Struts. One workaround would be: Paul > -Original Message- > From: Ann Vah [mailto:[EMAIL PROTECTED] > Sent: 17 February 2005 14:34 > To: Struts Users Mailing List > Subject: Struts tags inside struts tags > > > I

RE: How to limit the result?

2005-01-18 Thread Paul McCulloch
Have a look at http://displaytag.sourceforge.net/ Paul > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: 18 January 2005 09:34 > To: Struts Users Mailing List > Subject: Re: How to limit the result? > > > After long search i found out that MSSQL does not suppo

RE: Regarding JBOSS

2005-01-13 Thread Paul McCulloch
I'd guess that RC1 means release candidate 1 - i.e. not the final version. I *think* that jboss-4.0.1.zip is the final version. Paul > -Original Message- > From: Jay Chandran [mailto:[EMAIL PROTECTED] > Sent: 13 January 2005 16:40 > To: Struts Users Mailing List > Subject: Re: Regarding

RE: display tag rendering problem

2005-01-12 Thread Paul McCulloch
Try the display tag mailing list http://sourceforge.net/mail/?group_id=73068 Paul > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 12 January 2005 14:03 > To: user > Subject: display tag rendering problem > > > Hi all > I'd like to use display tags.Actual

RE: Displaytag, number formatting, and sorting

2005-01-07 Thread Paul McCulloch
The latest version of displaytag supports a sortPropery setting. This allows you to display a nicely formatted value but sort on the underlying data. Column decorators are very rarely required now. For example: Paul > -Original Message- > From: Barn

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
Frank, Although your solution would work I'd be apprehensive about any solution which involves doing anything manually at the start of each action. I'd suggest that anything that needs to happen for each & every action is better suited to a modified RequestProcessor, or a Filter. As you want to

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
1) You'll pretty much always have a valid session - the container will create one for you if it isn't already there. What you need to do is establish if an *initialised* session is there. One way to do this would bet to, in your initialise session action, create a session scope attribute to say s

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
ect. > Yes, it's a bit of extra work in all the Actions, but it > insulates your app from changes to the attribute name down the road. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > >

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
When you execute an action the name of the action from used is set in a request scope attribute "org.apache.struts.action.mapping.instance". It's a fairly simple matter to get the actual actionform object if you know the scope. For instance, all my forms are session scope so I can get the just-used

RE: Question about using a HashMap as input for logic-el:iterate

2004-12-15 Thread Paul McCulloch
HashMap doesn't implement the Collection interface, and has no method for getting an iterator. Look at the methods values(), keySet() & entrySet() on HashMap which do return Collections. Paul > -Original Message- > From: Wessel van Norel [mailto:[EMAIL PROTECTED] > Sent: 15 December 2004

RE: obfuscation Struts config

2004-12-02 Thread Paul McCulloch
Won't obfuscating your classnames make any analysis of a stack trace, for example, very difficult? Anyway - I would expect that any commercial J2EE code obfuscation tool which changes classnames would know how to modify the XML files. EJBs for instance are also referenced, by name, in xml config f

RE: server shutdown

2004-11-26 Thread Paul McCulloch
I wasn't aware that Tomcat had any functionality related to running external programs. I can tell you that I have successfully called external programs (our own win32 commandline exes) from Tomcat and JBoss/Tomcat (using Runtime.getRuntime().exec() as you do). I think that, unfortunatly, it's down

RE: Why does a Form Bean declared as session-scope appear on both session and request?

2004-11-26 Thread Paul McCulloch
The attribute in org.apache.struts.taglib.html.BEAN is set by the tag. This is how the other tags know which form bean they are dealing with. I'd be interested to know why the other html tags are made aware of the form bean this way, rather than directly asking their enclosing form tag. Any idea

RE: server shutdown

2004-11-26 Thread Paul McCulloch
I'd start by getting things working running tomcat *not* as a service. Once that is done switch to using a service. If you look at the service Log On control panel you'll see a "Allow service to interact with desktop" checkbox. This will need to be set for you to see a program running on your des

RE: server shutdown

2004-11-26 Thread Paul McCulloch
In the services control panel select the relevant service, choose properties, and then choose the "Log On" tab. You can now decide which user runs the service. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: 26 November 2004 09:25 > To: [EMAIL PROTECTED] > Sub

RE: server shutdown

2004-11-25 Thread Paul McCulloch
It looks like you are getting the return code from cmd, rather than shutdown. Could it be that the process you spawn doesn't have it's environment correctly set up - maybe it can't see shutdown? I'd try 1) changing my call to exec to call shutdown, with a full path, directly rather than getting cm

RE: Token Processor Question

2004-11-25 Thread Paul McCulloch
You only need to use saveToken() - it calls generate for you. Paul > -Original Message- > From: Richard [mailto:[EMAIL PROTECTED] > Sent: 25 November 2004 08:47 > To: Struts Users Mailing List > Subject: Token Processor Question > > > Hello Guys, > > If I have executed generateToken in

RE: loosing request attributes from jsp to action

2004-11-25 Thread Paul McCulloch
I may be wrong, but it sounds a lot like you are misunderstanding the scope of the request object. Apologies if I'm wrong - please ignore the following egg-sucking tutorial! The request objects life starts, on the server, when the servlet container recieves a request from the user's browser. That

RE: Best practice updating data in webapps?

2004-11-24 Thread Paul McCulloch
The approach you describe is known as optimisitic locking. The alternative approach is pessimistic locking, where you mark the records to be updated as locked at the time you get the records from the datasource. No other process will be allowed to lock the records at the same time - so no two use

RE: File upload.

2004-11-24 Thread Paul McCulloch
I don't use DynaForms, so I may be way off the mark, but in my ActionForms I declare the file fields to be of type org.apache.struts.upload.FormFile. My understanding of local classes is that they can only be used by the declaring class - is my understanding wrong? Paul > -Original Message-

RE: Tiles and file download

2004-11-23 Thread Paul McCulloch
Your action could read the log file, & store the contents into a request scoped attribute. The contents of this attribute can then be displayed in the relevant tile. Paul > -Original Message- > From: Matt Bathje [mailto:[EMAIL PROTECTED] > Sent: 23 November 2004 14:40 > To: Struts Users M

RE: Conditionally disable form input.

2004-11-19 Thread Paul McCulloch
What you are suggesting will only work if the form is submitted after the checkbox is checked - probably not what you or the user would expect to happen. I'd try and use JavaScript to achieve the same functionality on the client - the relevant event on the checkbox field could modify the disabled

RE: Using constants for form property names.

2004-11-17 Thread Paul McCulloch
When using RT expressions as attribute values the whole attribute must be a single RT: > N/A Paul > -Original Message- > From: Daffin, Miles (Company IT) > [mailto:[EMAIL PROTECTED] > Sent: 17 November 2004 17:03 > To: [EMAIL PROTECTED] > Subject: Using constants for form property nam

RE: how to replace return in a string while use nested:write and bean:write

2004-11-12 Thread Paul McCulloch
The Jakarta Regexp taglib (http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html) should allow you to do the neccessary search-and-replace to creat a JavaScript compatible string. Paul > -Original Message- > From: Shen, Lei [mailto:[EMAIL PROTECTED] > Sent: 11 November 2004 18:22 >

RE: debugging with Struts

2004-11-11 Thread Paul McCulloch
I think it is actually the source path of the *debug* configuration you are using. I just spent a good 20 minutes figuring this out - I've just upgraded to 1.2, but my debug source was pointing to 1.1 which caused a bit of confusion. Paul > -Original Message- > From: Adam Hardy [mailto:

RE: LookUpDispatchAction weakness?

2004-11-04 Thread Paul McCulloch
I've come round to Michael McGrady's way of thinking. LUDA is far more complex than it needs to be. See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions Paul > -Original Message- > From: Vaclavik Radek [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 04, 2004 1:47 PM

RE: tab UI controls for struts

2004-10-25 Thread Paul McCulloch
I had a look for such things a few weeks ago. My requirement was for a server side implementation - i.e. one that didn't execute the content of hidden tags. I couldn't find anything that met that requirement. I did find a pretty cool looking client side implementation at http://www.pintexx.com/ I

RE: Bean Constants and JSP EL

2004-10-20 Thread Paul McCulloch
See http://marc.theaimsgroup.com/?l=struts-user&m=109636066026332&w=2 > -Original Message- > From: Robin Mannering [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 20, 2004 3:21 PM > To: [EMAIL PROTECTED] > Subject: Bean Constants and JSP EL > > > Hi, > > Wondering if anyone has enc

RE: checking for an object in a collection

2004-10-07 Thread Paul McCulloch
A Map is proabably a better data structure to use than a collection. I'd consider changing the way the rules are stored, or converting the Collection to a Map in your action. Paul > -Original Message- > From: Muhammad Momin Rashid [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 07, 20

RE: cleaning session

2004-10-07 Thread Paul McCulloch
What a nonsense sentence! What I meant to say was: That isn't the purpose of the (confusingly named) reset method. Reset is there to, typically, deal with the way html forms submit checkbox fields (they don't submit anything if they are null). Paul > -Original Message-

RE: cleaning session

2004-10-07 Thread Paul McCulloch
That isn't the purpose of the (confusingly named) reset method. Reset is there to, typically, deal with the html forms submit checkbox fields (they don't submit anything if they are null). Paul > -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October

RE: cleaning session

2004-10-06 Thread Paul McCulloch
I have a specific action which destroys the existsing form bean and then recreates it based on struts-config. See: http://marc.theaimsgroup.com/?l=struts-user&m=109351495917793&w=2 Paul > -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 06, 20

RE: Tracing action dispatching

2004-10-06 Thread Paul McCulloch
If the probelm is appearing in a development system then I find the easiest way to do this kind of thing is to download the struts source & use my debugger with the struts code. Paul > -Original Message- > From: Laurent Duperval [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 06, 200

RE: ActionError and JSP display

2004-10-05 Thread Paul McCulloch
Try: Or something similar. Paul > -Original Message- > From: Robin Mannering [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 05, 2004 1:45 PM > To: Struts Users Mailing List > Subject: RE: ActionError and JSP display > > > Hi, > > > I was intending to use ,

RE: Coonection pooling

2004-10-04 Thread Paul McCulloch
And your question is relevant on a Struts mailing list because ...? Paul > -Original Message- > From: Prashanth.S [mailto:[EMAIL PROTECTED] > Sent: Monday, October 04, 2004 11:28 AM > To: [EMAIL PROTECTED] > Subject: Coonection pooling > > > Hi all, > Is there any design pattern that ca

RE: xml as a datasource?

2004-10-04 Thread Paul McCulloch
I found this article the other day, if you fancy rolling your own JDBC driver. http://www.fawcette.com/javapro/2001_12/magazine/features/jodonahue/ Paul > -Original Message- > From: joe a. [mailto:[EMAIL PROTECTED] > Sent: Friday, October 01, 2004 7:04 PM > To: [EMAIL PROTECTED] > Subject

RE: jstl and the brink of madness

2004-09-30 Thread Paul McCulloch
I don't think scoped attributes & parameters are the same thing. Try http://somehost/app/mypage.jsp?create=something to set a parameter. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 3:59 PM > To: [EMAIL PROTECTED] > Subject: jst

RE: with multiple bundles?

2004-09-30 Thread Paul McCulloch
A simple solution would be to change your build process to combine the base properties and the applications properties into one resource file. Paul > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 2:23 PM > To: struts > Subject: with m

RE: JSTL and Tiles

2004-09-30 Thread Paul McCulloch
Try using request scope (rather than the default of page) when you use JSTL to set your attribute value. Changes to the named attribute will be picked up by any code which is executed afterwards. Paul > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent: Wednesday

RE: Refresh problem

2004-09-30 Thread Paul McCulloch
The token is set in a session scope attribute named "org.apache.struts.action.TOKEN". It should be relatively straightforward to include it's value within the link, as a parameter named "org.apache.struts.taglib.html.TOKEN". I suggest you take a look at the TokenProcessor class if you have any issu

RE: Refresh problem

2004-09-29 Thread Paul McCulloch
The tag will (or should!) render a hidden field, on your html form, containing the token value. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 29, 2004 5:18 PM > To: [EMAIL PROTECTED] > Subject: Refresh problem > > > Hi, > > I have a

RE: Storing the last request - JAAS?

2004-09-28 Thread Paul McCulloch
e done, how (In a nutshell do I > enable this) and > then access it via my action? Do you have a link to doc I can read? > > Original Message Follows > From: Paul McCulloch <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED

RE: Storing the last request - JAAS?

2004-09-28 Thread Paul McCulloch
This will be done for you if you enable container managed security for your web container. Paul > -Original Message- > From: Mark Benussi [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 4:32 PM > To: [EMAIL PROTECTED] > Subject: Storing the last request - JAAS? > > > I nee

RE: Need Help: exporting oracle database records to excel files

2004-09-28 Thread Paul McCulloch
Thanq very much for ur reply... > > Its exporting to excel.. but in our application we need to generate a > seperate excel file for the records...and how to obtain the freezing > properties for the generated excel file > > Thanq > > Kranti > > > On Tue, 28 Sep

RE: Need Help: exporting oracle database records to excel files

2004-09-28 Thread Paul McCulloch
> > /pat on the back for Paul for answering so many questions today :) > > -----Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: 28 September 2004 10:14 > To: 'Struts Users Mailing List' > Subject: RE: Need Help: expo

RE: Need Help: exporting oracle database records to excel files

2004-09-28 Thread Paul McCulloch
http://www.displaytag.org/example-export.jsp Paul > -Original Message- > From: Kranti Parisa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 9:56 AM > To: [EMAIL PROTECTED] > Subject: Need Help: exporting oracle database records to excel files > > > Hi eveybody, > > need

RE: how to right align html:text ?

2004-09-28 Thread Paul McCulloch
This is a basic html question - nothing to do with Struts. Try Google first - http://www.google.com/search?q=input+text++right+align Paul > -Original Message- > From: BOU Hou [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 9:34 AM > To: Struts Users Mailing List > Subject: h

RE: Compilation of JSP at time of deployment?

2004-09-28 Thread Paul McCulloch
JBoss/Tomcat (which I assume you are referring to) has default behaviour whereby the compiled JSPs get deleted on graceful server shutdown. Killing the process hard gets round this issue, or there is a config setting which disables this. You need to edit the tomcat config file ($JBOSS\server\defaul

RE: Clean way to obtain a property's value...

2004-09-28 Thread Paul McCulloch
Application > scope and trying to access it like this: > > ${applicationScope.get['myConstantsBean'].resultDisplayTypeId} > > but it's still messy. Does anybody have any better ideas? > > Thanks! > > > On 09/27/2004 04:53 PM Paul McCulloch wrote: &

RE: Struts Taglib Question

2004-09-17 Thread Paul McCulloch
Is there a reason you can't do this in the action which precedes your jsp? Anyway, from JSTL does this for you. Paul > -Original Message- > From: Asleson, Ryan [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 2:57 PM > To: '[EMAIL PROTECTED]' > Subject: Struts Taglib Questio

RE: Sending or Receiving Fax through My Application.............

2004-09-15 Thread Paul McCulloch
And you've tried http://www.google.com/search?q=java+fax+api haven't you? Paul > -Original Message- > From: Srinivas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 15, 2004 10:55 AM > To: Struts > Subject: Sending or Receiving Fax through My Application. > > > Hi Guy

RE: load balancing and definition of a request

2004-09-14 Thread Paul McCulloch
>Now let's think about a web application. In this case we have > the idea of > may sessions - but theses are just a way for the server & browser to I've no idea what may sessions are. I probably meant to say " In this case we may have the idea of sessions". Paul *

RE: load balancing and definition of a request

2004-09-14 Thread Paul McCulloch
It sounds like you may have a misunderstanding of the interaction between your browser and a web server. Let's just talk static content first. You request a URL for an html page; the server sends the page back to you. That's a request. Now if the html page you recieved contains 2 pictures then yo

RE: RTEXPR in struts html tags

2004-09-14 Thread Paul McCulloch
Could it be that you are using html-el rather than html? Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 14, 2004 12:30 PM > To: [EMAIL PROTECTED] > Subject: RTEXPR in struts html tags > > > Hi, > > I can't get struts tags to accept expre

RE: [OT] synchronous form submit in a popup so parent refreshes p rope rly

2004-09-10 Thread Paul McCulloch
You could make the response from the submit be an html page which executes the relevant (parent.reload; close) Javascript. Alternatively you could submit the form on the popup window so that the response of this submission was displayed in the parent window (via the 'target' attribute of the form

RE: [OT] someone using Outlook 2003, please tell me it can't be t his LAME...

2004-09-02 Thread Paul McCulloch
In Outlook 2000 you can do this by choosing View:Current View:By Conversation Topic, then click the data column to sort. Paul > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 3:45 PM > To: Struts Users Mailing List > Subject: [OT] so

RE: Question with beans and iterate

2004-09-02 Thread Paul McCulloch
Although this is (probably) possible your object model is making things more difficult than it needs to be. I would consider remodelling this as a single Map of Items where each Item has, in addition to it's other properties, a Collection of SubItems. This will be fairly easy to render using the

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Paul McCulloch
004 8:29 AM > To: Struts Users Mailing List > Subject: RE: ActionForm: simply calling reset() or have to > recreate one ? > > > I see. Checked API doc, saw getServlet() call for > Action. Guess this is what I need to use. > thanks ! > > --- Paul McCulloch <[EMAIL

RE: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\ lib directory

2004-08-31 Thread Paul McCulloch
These files are need if you wish to use JSP EL in a JSP 1.2 container. If you use a JSP 2 container then EL is supported for the standard struts tags (by the container rather than the tags themselves). See http://struts.apache.org/faqs/struts-el.html for more details. Paul > -Original Messa

RE: Possible to change input path in actionForm validate?

2004-08-31 Thread Paul McCulloch
To: Struts Users Mailing List > Subject: RE: Possible to change input path in actionForm validate? > > > I tried that but it is complainin about more than one identical action > definition in struts-config. > > sebastian ho > > > > On Fri, 2004-08-27 at 20:21, P

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-08-31 Thread Paul McCulloch
I think it was me who pointed you down that route to destroy & recreate a form bean to clear any data in it. reset() is not used for this purpose - read up on what reset() does. "servlet" is a variable of Action and is available in all methods of your own Action classes. Paul > -Original

RE: Struts or JSTL equivalent for this?

2004-08-27 Thread Paul McCulloch
There was a thread asking exactly the same question earlier in the week. Have a look in the archives. Paul > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 5:06 PM > To: Struts Users Mailing List > Subject: Re: Struts or JSTL equivalent for

RE: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Paul McCulloch
I use 3.2.3... The debug messages can be turned off by playing with the log4j config file in C:\jboss\jboss-3.2.3\server\default\conf\log4j.xml You should deploy your application (as either a .war file, or a .war directory) by copying to C:\jboss\jboss-3.2.3\server\default\deploy. I have never se

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
d extend to submit > as follows: > > > > > > > > > > I will amend the wiki to reflect that possibility. This just > mimics the > functionality of the tag. > > Michael > > Paul McCulloch wrote: > > >I

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
I missing? Thanks, Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 2:54 PM > To: Struts Users Mailing List > Subject: Re: LookupDispatchAction (Newbie) > > > Paul McCulloch wrote: > > >Am I

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
Am I right in thinking that your solution works for image buttons, whereas the LookupDispatchAction is for text labeled buttons? Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 2:35 PM > To: Struts Users Mailing List > Subject: R

RE: OT - Archive Search

2004-08-27 Thread Paul McCulloch
Try the archive at http://marc.theaimsgroup.com/?l=struts-user Paul > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 2:02 PM > To: Struts Users Mailing List > Subject: OT - Archive Search > > > > > > > Before I submit questions

RE: Bean's get method with parameter

2004-08-27 Thread Paul McCulloch
the > locale settings > in windows to, e.g. ENGLISH, but the date is still shown in > the original > format (Czech). > > Here is the snip of JSP code I am using: > > type="java.util.Date"/> > > > Radek > > > -Original Message---

RE: Possible to change input path in actionForm validate?

2004-08-27 Thread Paul McCulloch
One way to do this is to have multiple actions defined in struts-config.xml, each using the same Action class. Each action can have a different input JSP. Paul > -Original Message- > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 1:05 PM > To: Struts Users Ma

RE: Bean's get method with parameter

2004-08-27 Thread Paul McCulloch
A getter with a paramteter is not a bean property, and so won't be accessible with the usual tags. I'd suggest that the formatting of your date is the responsibility of your view layer, and not the form bean. The easiest way to do waht you ar after is to use the JSTL's tag:

RE: More than 5 Arguments

2004-08-27 Thread Paul McCulloch
Use fmt:message & fmt:param tags instead of the Struts tag. If you can;t use JSTL then extend the bean:message tag. Paul -Original Message- From: Bharat Bhushan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 6:02 PM To: Struts Users Mailing List Subject: More than 5 Arguments

RE: SV: strange behavior: bug or me?

2004-08-26 Thread Paul McCulloch
No disrespect intended - but I'd be inclined to look at my own code/environment before I started blaming the struts taglibs! When I get into this sort of position I tend to remove all traces of my jsp from the container (including the generated servlet etc), redeploy & restart the container. If th

RE: Question about authentication

2004-08-26 Thread Paul McCulloch
That's my approach too - the JSPs will either break or do nothing if called directly. Pau; > -Original Message- > From: David Suarez [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 2:21 PM > To: Struts Users Mailing List > Subject: RE: Question about authentication > > > I m

RE: [OT(?)] Comparing against a typesafe enum in JSTL

2004-08-26 Thread Paul McCulloch
I've asked this before on the list and didn't get a neat answer. I've resorted to using c:set & scriptlets to extract the value from the static and store it in a scoped attribute for use with JSTL. Paul > -Original Message- > From: Janne Mattila [mailto:[EMAIL PROTECTED] > Sent: Thursday

RE: How to embed a method in a link inside a jsp file?

2004-08-26 Thread Paul McCulloch
You could start with the documentation: http://struts.apache.org/userGuide/struts-html.html#link Paul > -Original Message- > From: PC Leung [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 1:39 PM > To: [EMAIL PROTECTED] > Subject: How to embed a method in a link inside a jsp

RE: how to reset form

2004-08-26 Thread Paul McCulloch
The method I use to is to remove & recreate the form bean. I wouldn't use the reset method - this is not for resetting the form bean in the way you suggest - it is called for you by Struts. Here is the method I use to do this: public ActionForm recreateFormBean(ActionMapping mapping, ActionFor

RE: Exception Handler Help!

2004-08-24 Thread Paul McCulloch
Is using forward as an exception handler's path valid? I didn't know you could do that. Anyway, I'd reduce the complexity of what you are doing: Start by using an html page as your path, then try a JSP, then an action. Paul > -Original Message- > From: Keith Bottner [mailto:[EMAIL PROTEC

RE: localizing the browse button

2004-08-23 Thread Paul McCulloch
I'd imagine that a localised version of a browser will display 'Browse' in the appropriate langauge. Not easy to test though! Paul > -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Monday, August 23, 2004 4:20 PM > To: [EMAIL PROTECTED] > Subject: localizing the

  1   2   >