Excluding global errors from

2005-02-28 Thread Adam Jenkins
Hi Guys, I'm trying to come to terms with ...it's working ok, I'm using the following for prefixes etc: #error formatting information errors.header=Some errors occured validating the form. Please correct the following errors and try again. errors.footer= errors.prefix= errors.suffix= Which is

Re: Here's a question for yous...

2005-02-28 Thread Dakota Jack
Actually the RequestProcessor logic is irrelevant, although seemingly not so. You just need to alter RequestUtils. My experience is that there are lots, and lots, of people doing uploads in Struts outside the "norm". I for one find tht the "ad nauseum" comments you refer to are as good as gold a

AW: caching of message resources when using bean:message tag

2005-02-28 Thread Günther Wieser
thanks very much for this solution. i'm using ojb plus a hashmap for heavy caching, there is NO database acccess for reading values after initialization, as all operations on key-value-pairs go through a service that fills the cache with new or changed values. kr, guenther -Ursprüngliche Nach

Re: Here's a question for yous...

2005-02-28 Thread Dakota Jack
I do this all the time without using the ActionForm at all, unfortunately. I don't know if the solutions I use would be helpful, but here is one: I call an action setting up a page for uploads. Then I upload, setting up a listener/monitor in the the Upload object which is buried in the commons mu

Re: Here's a question for yous...

2005-02-28 Thread Craig McClanahan
On Tue, 01 Mar 2005 00:52:07 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I sometimes wonder if we (the generic we I mean) don't sometimes think > at too high a level... We try to build so much flexibility into our > designs, but every time I hear "a new API" or "a new interface" or > "an

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Ok, so before I go off to bed, I have good news and I have bad news... The good news is that you can go grab the complete example webapp now: http://www.zammetti.com/multifileupload.zip The bad news however is that part of this doesn't appear to be possible... Those pesky scripting security issues

Re: How to convert Strings in ActionForm to date, double etc. in VO..

2005-02-28 Thread Andrew Hill
Whats wrong with the conversion support in BeanUtils? Prasad, Kamakshya wrote: HI, Thanks a lot for the reference. But we where also looking for something which can perform the necessary type conversion like string to date, string to double KP -Original Message- From: Andrew Hill [mailto:

Re: Here's a question for yous...

2005-02-28 Thread Frank W. Zammetti
Craig McClanahan wrote: In Struts 1.0 - 1.2, there's no way to do this other than by overriding RequestProcessor and dinking with the processPopulate() method. With the way 1.3 is evolving, it would be feasible to make the Command that normally does population do something different instead. That

Re: Here's a question for yous...

2005-02-28 Thread Andrew Hill
Dunno about struts 1.2, but in 1.1 there wasn't an option for it. That said, it would probably take you only a few minutes to override the request processor to do it. indeed I recall having done that before myself a year or two back ahh... here we go - protected void processPopulate(HttpServletR

Re: Here's a question for yous...

2005-02-28 Thread Craig McClanahan
On Mon, 28 Feb 2005 23:40:39 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > It is of course possible to turn of form validation on a per-mapping > basis... Is it possible to turn off auto-population? In Struts 1.0 - 1.2, there's no way to do this other than by overriding RequestProcessor an

Re: How to convert Strings in ActionForm to date, double etc. in VO..

2005-02-28 Thread Hubert Rabago
KP, I have a plugin which does this, though it only works with form beans you define with it. https://formdef.dev.java.net Hubert On Tue, 1 Mar 2005 13:44:50 +0900, Prasad, Kamakshya <[EMAIL PROTECTED]> wrote: > HI, > > Thanks a lot for the reference. > But we where also looking for something

RE: How to convert Strings in ActionForm to date, double etc. in VO..

2005-02-28 Thread Prasad, Kamakshya
HI, Thanks a lot for the reference. But we where also looking for something which can perform the necessary type conversion like string to date, string to double KP -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 1:55 PM To: Struts Users Mai

Here's a question for yous...

2005-02-28 Thread Frank W. Zammetti
It is of course possible to turn of form validation on a per-mapping basis... Is it possible to turn off auto-population? It's never come up for me before a few minutes ago... I'm doing a file upload project, and when I upload the files I'd like an ActionForm to be created but NOT populated wit

Re: How to convert Strings in ActionForm to date, double etc. in VO..

2005-02-28 Thread Andrew Hill
There is a fair bit of support in commons-beanutils for this sort of thing. http://jakarta.apache.org/commons/beanutils/api/ Take a look at BeanUtils.copyProperties() to start with at that sounds closest to your needs. (btw: Struts also makes use of BeanUtils for form population so the jar file

How to convert Strings in ActionForm to date, double etc. in VO..

2005-02-28 Thread Prasad, Kamakshya
Hi All, In our application we are keeping all the values as string in actionform but in value object we are using specific data type. Now we are looking for an option which can populate the VO from ActionForm without the developer having to populate for each of the fields. It should also perfor

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Brandon Mercer wrote: > Yes, I can. The limitation is that for every post or get, you can only > have ONE multipart/mime file. When you have multiple elements > you actually perform multiple posts to submit each one. That's why an > applet is necessary. With respect Brandon, this is incorrect.

RE: Queries and Paging

2005-02-28 Thread Sng Wee Jim
How does datagrid compares to displaytag (http://displaytag.sourceforge.net) - Jim -Original Message- From: Antony Joseph [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 12:15 AM To: Struts Users Mailing List Subject: Re: Queries and Paging Check out https://workeffort.dev.ja

Re: PDFs with IE - a fix

2005-02-28 Thread Larry Meadors
You lucky bugger!! That was my first inclination ("Stupid crap for crap IE..."), but our tech services guys would have nothing of it... Larry On Mon, 28 Feb 2005 19:28:54 -0600, Nick Heudecker <[EMAIL PROTECTED]> wrote: > Damn. That's had me stumped for months. I forced the client to > upgrad

RE: Best practices on using displaytag and cleaning up session scoped form

2005-02-28 Thread Sng Wee Jim
That is only when using request scoped form and setting the requestURI. Is there a way a avoid re-querying the database when using request scoped form? - Jim -Original Message- From: Amjad I. Shahrour [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 5:00 PM To: Struts Users

Re: AW: Multi-select file chooser

2005-02-28 Thread Brandon Mercer
Frank W. Zammetti wrote: How is it a limitation Brandon? It IS in fact possible to upload multiple files at one time... The only thing that isn't possible is selecting more than one file at a time using nothing but a form element. Can you elaborate on what the limitation is? Yes, I can. The

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
How is it a limitation Brandon? It IS in fact possible to upload multiple files at one time... The only thing that isn't possible is selecting more than one file at a time using nothing but a form element. Can you elaborate on what the limitation is? -- Frank W. Zammetti Founder and Chief So

Re: AW: Multi-select file chooser

2005-02-28 Thread Brandon Mercer
Frank W. Zammetti wrote: Ok, let me play a bit tonight and see what I can come up with. I'm more worried about the server-side processing than the front-end, but even that shouldn't be terrible. I'll let you know what I come up with tomorrow... The problems you all are talking about are limit

Re: PDFs with IE - a fix

2005-02-28 Thread Nick Heudecker
Damn. That's had me stumped for months. I forced the client to upgrade to Firefox. :) On Mon, 28 Feb 2005 10:21:28 -0700, Larry Meadors <[EMAIL PROTECTED]> wrote: > Sorry for the cross-post, but if anyone is having issues serving up > pdfs to IE users over ssl, here is a fix for the browser:

Re: caching of message resources when using bean:message tag

2005-02-28 Thread James Mitchell
Yes, I have also written a database implementation or three ;) http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=76369 In addition to this one, I have also written several impls for commons-resources (which Struts will be moving to very soon). There were license issues so I

Re: CSS and Tiles

2005-02-28 Thread Tim Christopher
I use the following to load my CSS files: Note: If you do not use sslext then use html:rewrite instead of sslext:rewrite. This method requires the path to the CSS file to be stored within the struts config file so it can be easily updated, i.e: . Hope that helps. Tim Christopher

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Ok, let me play a bit tonight and see what I can come up with. I'm more worried about the server-side processing than the front-end, but even that shouldn't be terrible. I'll let you know what I come up with tomorrow... -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technol

Re: AW: Multi-select file chooser

2005-02-28 Thread Rakefet Bitton
Frank W. Zammetti omnytex.com> writes: > > If this is something that is interesting to enough people, I would mind > throwing a real tag together with some options and such, perhaps a > couple of different UI presentations, etc. > I am definitely interested in this. This is exactly what I ne

Re: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
There isn't specifically a hidden element, you are correct, but you can hide a element via CSS. I've done this before myself so I know it works. Hey, don't worry about killing my motiviation... At best you'll stop me from wasting my time later if you point out something that legitimately mak

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Yep, that's the one concern I had when I mentioned the scripting security issues. As I recall, and I could be wrong, the problem isn't actually reading or writing the filename, it's just a text field for all intents and purposes as far as that goes, but trying to submit the form via scripting

AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
i don't want to stop your motiviation here, but a problem might be that there's no "hidden" file input field. and if it's not a file input field it's useless as we need the browser to do all the encoding of the content into multipart/mime etc. is it possible to add input elements using java

Re: AW: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Ah, your right... I misunderstood the OP... I wasn't thinking like a multi-select drop-down. I would agree there is probably no way to do that with standard browser functionality. You'd have to get into applets or ActiveX controls, or something along those lines. But... If you took the form a

Re: AW: Multi-select file chooser

2005-02-28 Thread Jason King
Haven't tried this lately but there used to be security restrictions about reading the filename in elements or writing the filename. Frank W. Zammetti wrote: Ah, didn't see this until I posted that form code :) This is what I was talking about with the "better ways to present the UI " comment.

Re: CSS and Tiles

2005-02-28 Thread Kris Schneider
Just be aware that , like , will encode/rewrite the URL (add session info) as needed. This may or may not cause problems when servicing the request. It should be fine to just do: " type="text/css" media="all"/> Quoting David Johnson <[EMAIL PROTECTED]>: > My final solution looks like

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Ah, didn't see this until I posted that form code :) This is what I was talking about with the "better ways to present the UI " comment. I would have to test it, but I *think* you should be able to have a single element that is visible, with a number of hidden ones, and for each file you selec

AW: AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
for sure there is no doubt on my side ;-) this is exactly what i meant if you keep the number of files "constant". but as the originator of this thread alreay said: he looks for a solution of multiple file SELECTION. beside the applet i have no idea how to solve that -Ursprüngliche Nachric

Re: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Just in case there was any doubt, here's the form from my web hosts' file manager I was referring to: Overwrite existing files: I could think of some better ways to do present the UI, but that's the basic idea. Heck, throw that in a .tag fil

Re: AW: JSTL c:if question

2005-02-28 Thread Kris Schneider
Make sure to put the entire test within the EL expr delimiters: ... The "scope" attribute is used when you also provide the "var" attribute to store the result of the tested expression (it will be of type Boolean). Quoting Günther Wieser <[EMAIL PROTECTED]>: > > i think your test won't wo

Re: AW: Multi-select file chooser

2005-02-28 Thread Rakefet Bitton
Frank W. Zammetti omnytex.com> writes: > > You can have as many elements in a form as you want, and you can > process them all at once. My web host (LunarPages) has a decent file > manager, one of the functions it has is the ability to upload up to 12 > files at a time. > > I don't know of

AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
another solution would be to use (signed) java applets, which is (for the enduser) the best looking solution, but the effort to do so is REALLY BIG, so if you don't get paid like mad forget it -Ursprüngliche Nachricht- Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Gesendet: Dienst

AW: JSTL c:if question

2005-02-28 Thread Günther Wieser
i think your test won't work as strings get compared using the equal method and not "==" (but i have no idea what the "test" attribute does in the tag class). if you use whatever needs to be done it should work (at least it works for me ;-) ) kr, guenther -Ursprüngliche Nachricht-

Re: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
You can have as many elements in a form as you want, and you can process them all at once. My web host (LunarPages) has a decent file manager, one of the functions it has is the ability to upload up to 12 files at a time. I don't know of any single tag to render such a form, but that's really

AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
just in case you wonder: it's not a text field, it's "file" field () -Ursprüngliche Nachricht- Von: Nic Werner [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 01. März 2005 00:24 An: Struts Users Mailing List Betreff: Re: AW: Multi-select file chooser Ah, I looked at it that he was selec

Re: CSS and Tiles

2005-02-28 Thread David Johnson
My final solution looks like this: ' type="text/css" media="all"/> Thanks all! On Mon, 28 Feb 2005 14:04:46 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Assuming you don't map it in web.xml, the default value is : > http://java.sun.com/jstl/core > It's defined in the c.tld taglib descr

Re: AW: Multi-select file chooser

2005-02-28 Thread Nic Werner
Ah, I looked at it that he was selecting files from a directory tree, not entering into a text field Günther Wieser wrote: this is standard browser behaviour, haven't seen any browser who would allow you to select more than one file. reason for that is that your form only includes one form field

JSTL c:if question

2005-02-28 Thread David Johnson
a little off topic but.. I have a variable (a string named "mode") in request scope and I want to display something conditionally in the JSP. Right now, I have the following, which doesnt work. The error is 2: Illegal scope attribute without var in "c:if" tag. What am I doing wrong? first t

AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
this is standard browser behaviour, haven't seen any browser who would allow you to select more than one file. reason for that is that your form only includes one form field of type file, so how can the browser add more than one file in a way that your app understands this? the only chance for mul

Re: Multi-select file chooser

2005-02-28 Thread Nic Werner
Wow, what browser is that? Can they hold down CTRL? (assuming Windows) Rakefet Bitton wrote: Hi, I'm using the "file" tag to select a file from my jsp. The default browser allows the user to select only 1 file at a time. The user can not multi select files or a directory. Does anyone know of a m

Multi-select file chooser

2005-02-28 Thread Rakefet Bitton
Hi, I'm using the "file" tag to select a file from my jsp. The default browser allows the user to select only 1 file at a time. The user can not multi select files or a directory. Does anyone know of a multi-select file and directory chooser? Thanks very much. ---

caching of message resources when using bean:message tag

2005-02-28 Thread Günther Wieser
hi, we are using struts version 1.2.4 and we implemented our own MessageResources and MessageResourceFactory. we needed to have a database based system for managing message resources for different locales so that we can change valued on the fly without the need to restart the app. these implement

Re: Latest build (ala Maven) [Long]

2005-02-28 Thread Frank W. Zammetti
James, first of all, thank you very much for this post! I think this may go a long way to making it a bit less daunting for those that might like to contribute (including me!) Now, your first question to answer :) Perhaps I have an incorrect expectation, but... I downloaded struts-core-1.3.0-d

Re: Latest build (ala Maven) [Long]

2005-02-28 Thread Craig McClanahan
James, Great job on the Mavenization work. I'm fine if you'd also like to Mavenize the "faces" subproject -- which will have its own interesting wrinkles, because it has nested builds of its own for its core library and example applications, with individual output artifacts. I'd ike to wait a bi

Validator requiredif and range problem

2005-02-28 Thread Christopher Loschen
Hi experts! I've got a problem where two fields are being checked for being in the valid range when only one of them is being used at any one time. I'm using Struts 1.1 so I'm limited to using requiredif instead of validwhen (right?). I've got some radio buttons set up like this: Total amount wit

Latest build (ala Maven) [Long]

2005-02-28 Thread James Mitchell
For those of you following along (and some who aren't) with the reorganization of Struts' source and subsequent shift (in part) to a Maven-based build system, I have created a nightly build directory for those eager to get all of the latest binary and/or source distributions. The Maven-built ni

Re: Frames question

2005-02-28 Thread Leon Rosenberg
There are no problems working with frames, but you have to consider, that each frame is a separate http request. So, if you have a frameset with two frames in it, lets call them left and right, your browser actually sends 3 requests to your webserver. To do it the struts conform way (or what I th

Re: Frames question

2005-02-28 Thread Leon Rosenberg
There are no problems working with frames, but you have to consider, that each frame is a separate http request. So, if you have a frameset with two frames in it, lets call them left and right, your browser actually sends 3 requests to your webserver. To do it the struts conform way (or what I th

Re: RequestURI (Action not JSP)

2005-02-28 Thread Tim Christopher
Hi, I'd like to be able to access the path of my Struts Action as the Display Tag requires a parameter 'requestURI'. It needs this attribute so that it can append values to the end of the current url - without the requestURI it will make the link point to the jsp which is located under the WEB-IN

Frames question

2005-02-28 Thread Sergey Livanov
Please give me a peace of advice. I have an application designed with Struts. There are 2 parts in the page. On the left side there is a tree by JavaScript and on the right the data which are accepted from tree elements. To avoid duplication when data are downloaded into the tree I have decided t

Re: Action forwards to a URL outside application

2005-02-28 Thread Shey Rab Pawo
Nope! LOL He already cleared that up. BD stands for "DB" which stands for "database". ;-) On Mon, 28 Feb 2005 13:01:48 -0500, Robert Taylor <[EMAIL PROTECTED]> > BTW, my guess it that BD stands for BusinessDelegate :) > /robert > Great guess though! -- No one ever went blind looking at t

Re: CSS and Tiles

2005-02-28 Thread henrik . bentel
Assuming you don't map it in web.xml, the default value is : http://java.sun.com/jstl/core It's defined in the c.tld taglib descriptor itself, see the uri sub element. -Henrik David Johnson <[EMAIL PROTECTED]> 02/28/2005 01:53 PM Please respond to "Struts Users Mailing List" To:

RE: CSS and Tiles

2005-02-28 Thread Hollaway, Shedrick L CIV TRIREFFAC
try this: href="<%= request.getContextPath()%>/styles/style.css" Shed. -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 14:03 To: Struts Users Mailing List Subject: CSS and Tiles Hi all I have the following directory (partial shown) struc

Re: CSS and Tiles

2005-02-28 Thread David Johnson
a follow up... what's the corresponding tablib element look like for the c.tld taglib? <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> On Mon, 28 Feb 2005 14:42:40 -0500, David Johnson <[EMAIL PROTECTED]> wrote: > nope, that's PERFECT. Thanks. > > I was planning to

Re: CSS and Tiles

2005-02-28 Thread David Johnson
nope, that's PERFECT. Thanks. I was planning to use but this is a better alternative. Thanks! On Mon, 28 Feb 2005 13:40:08 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > Assuming I understood you correctly: > > I use webapplication absolute path with the JSTL core library's U

Re: CSS and Tiles

2005-02-28 Thread henrik . bentel
Hi Assuming I understood you correctly: I use webapplication absolute path with the JSTL core library's URL tag In my JSP: "/> If you need to use a dynamic value for the stylesheets' name you could use the JSTL's expression language. -Henrik David Johnson <[EMAIL PROTECTED]> 02/2

Re: Propagating errors from a PlugIn to a jsp

2005-02-28 Thread Alistair Young
thanks for that Erik, I think I'll bung some Bean methods into the PlugIn and do a small tag library for JSPs to use. I don't want any code in the JSP, just tags. thanks, Alistair -- Alistair Young Senior Software Engineer [EMAIL PROTECTED] Mòr Ostaig Isle of Skye Scotland > Your plugin could s

CSS and Tiles

2005-02-28 Thread David Johnson
Hi all I have the following directory (partial shown) structure in my Struts/Tiles Web-app /webroot /webroot/jsp /webroot/layouts /webroot/styles the styles.css stylesheet is in "styles" and the layout is in ... not surprisingly, "layouts" What is the best way to get a reference for the CSS int

Transfering data from a result set using reflection and metadata

2005-02-28 Thread Sivakumar Santharam
I am trying to use reflection and metadata to transfer data from a result set into a bean. I just followed the instructions provided at http://husted.com/struts/catalog.html. Eventhough the result set returns a row, the values are not set in the bean after the BeanUtils.populate(bean, propertie

Re: Queries and Paging

2005-02-28 Thread Tim Christopher
If the only purpose of using paging is to display some nice table to the user then the DisplayTag can sort that out for you, though its more efficient to do as suggested and get a PaginatedList from the db. For an example of the DisplayTag in action take a look here: http://displaytag.homeip.net/

Re: Form Bean Nesting

2005-02-28 Thread Hubert Rabago
Take a look at the tags. Tutorials are at http://www.keyboardmonkey.com/ On Mon, 28 Feb 2005 11:47:25 -0500, Rooney.Dave <[EMAIL PROTECTED]> wrote: > Has anyone ever nested form beans with collections more than one level > deep? > > We have a situation where we have a form bean that contains a

RE: How can I prepopulate a textarea struts form ?

2005-02-28 Thread Benedict, Paul C
Ai, In the action that precedes the display of the page, set the form bean's property to contain the text that you want. Also, take advantage of the value attribute of when you require it. Thanks, Paul -Original Message- From: Ai Pham [mailto:[EMAIL PROTECTED] Sent: Monday, February 2

How can I prepopulate a textarea struts form ?

2005-02-28 Thread Ai Pham
Hi, How can I prepopulate a textarea struts form (using ) with dynamic data ? I can prepopulate a text area using <%=data%> , but I have some problem to preserve any updated data whenever the struts reload the page again (It's the same as replying an email and uploading some attachment files).

Re: AW: Struts Approach

2005-02-28 Thread Mike Millson
On Mon, 2005-02-28 at 12:27, Shey Rab Pawo wrote: > > On Mon, 28 Feb 2005 11:40:13 -0500, Mike Millson > <[EMAIL PROTECTED]> wrote: > > On Mon, 2005-02-28 at 10:22, Tim Christopher wrote: > > > So what you're saying is that if I include a separate DTO it doesn't > > > really achieve anything extra

MadCaching, a Tiles caching solution, announcement

2005-02-28 Thread Mac Vu
I've created a new project that caches Tiles on demand. It eliminates developer from creating customized cache control or wrap their JSP in cache tags. All developers need is to add MadCache module to their project, change web.xml and struts-config.xml settings. And use the MadCaching Manager to

Re: Propagating errors from a PlugIn to a jsp

2005-02-28 Thread Erik Weber
Your plugin could set application scope attributes using any Exceptions it encounters during the init method. Then your requested JSP (or setup Action) could grab those and iterate them. Erik Alistair Young wrote: Is there any way for a PlugIn to get exception messages up to a jsp? I have a Plug

Re: Action forwards to a URL outside application

2005-02-28 Thread Shey Rab Pawo
I don't know what a bd is but just make your action forward whatever you want to forward to. On Mon, 28 Feb 2005 19:37:06 +0200, Jim Theodoridis <[EMAIL PROTECTED]> wrote: > Hello > > I have an action that takes informations from a BD > How can I sent that information as parameters to a URL dife

Action forwards to a URL outside application

2005-02-28 Thread Jim Theodoridis
Hello I have an action that takes informations from a BD How can I sent that information as parameters to a URL diferent than my application? etc: http://www.tera.gr?user=assaasd&password=21321 - To unsubscribe, e-mail: [EMAIL P

Re: AW: Struts Approach

2005-02-28 Thread Shey Rab Pawo
On Mon, 28 Feb 2005 11:40:13 -0500, Mike Millson <[EMAIL PROTECTED]> wrote: > On Mon, 2005-02-28 at 10:22, Tim Christopher wrote: > > So what you're saying is that if I include a separate DTO it doesn't > > really achieve anything extra - whilst at the same time creating more > > code to maintain

PDFs with IE - a fix

2005-02-28 Thread Larry Meadors
Sorry for the cross-post, but if anyone is having issues serving up pdfs to IE users over ssl, here is a fix for the browser: === [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings] "BypassSSLNoCacheCheck"=dword:0001 === It took us a few days to find this, so hopefully this wi

Re: Queries and Paging

2005-02-28 Thread Lee Harrington
Since I use hibernate with my struts, in my service class I added the following: query.setFirstResult(pageStart); query.setMaxResults(pageSize); works great for paging through the records. Lee - To unsubscribe, e-mail: [EMAIL P

Propagating errors from a PlugIn to a jsp

2005-02-28 Thread Alistair Young
Is there any way for a PlugIn to get exception messages up to a jsp? I have a PlugIn that initialises a system object that does important work. If the PlugIn can't start the background process running, I'd like to use in the index.jsp, so when Tomcat starts, the first page will display any erro

Form Bean Nesting

2005-02-28 Thread Rooney.Dave
Has anyone ever nested form beans with collections more than one level deep? We have a situation where we have a form bean that contains another form as an attribute, which in turn contains a list of other smaller forms. The page renders fine, but when the form is posted the updated values in the

Re: AW: Struts Approach

2005-02-28 Thread Mike Millson
On Mon, 2005-02-28 at 10:22, Tim Christopher wrote: > So what you're saying is that if I include a separate DTO it doesn't > really achieve anything extra - whilst at the same time creating more > code to maintain and reducing performance? Yes, that's what I think. > > Do you know if there is a

RE: Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
I cannot seem to get the datagrid taglib binary download. Seems that cvs.apache.org isn't available. If anyone has it, could you attach it to my email addy? -Original Message- From: Antony Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:15 AM To: Struts Users Mailing

Re: Extend struts action-mapping forward tag

2005-02-28 Thread Hubert Rabago
You can achieve this using the subclass support in struts-config.xml. Create your custom ActionForward class and provide it with your property: public class CustomActionForward extends ActionForward { private int returnCode = 0; public int getReturnCode() { return returnCode; }

Re: Encoding problems with russian / bean:write / html:text

2005-02-28 Thread Sergey Livanov
Hi Leon, try this, This construction works fine for me, ( eng, russian, ukrainian, fr ) 1. page encoding "charset=windows-1251" ; 2. set up Forms reset method public void reset( ActionMapping mapping, HttpServletRequest request ){ this.search = null; try { request.setCharac

Re: Queries and Paging

2005-02-28 Thread Antony Joseph
Check out https://workeffort.dev.java.net It uses struts along with the datagrid tag libriary ( http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html) for pagination from the database. - Original Message - From: "CRANFORD, CHRIS" To: user@struts.apache.org Subject:

Re: AW: Struts Approach

2005-02-28 Thread Dakota Jack
Here is the general notes on when a DTO is needed: Every method call made to the business service object, be it an entity bean or a session bean, is potentially remote. Thus, in an Enterprise JavaBeans (EJB) application such remote invocations use the network layer regardless of the proximity of t

RE: Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
Got any example on how you'd do it using a stored procedure? Plus could you elaborate on why the performance would be higher using a stored procedure rather than a direct paging technique from java ? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Monday, February

Re: Queries and Paging

2005-02-28 Thread Larry Meadors
If you are looking for high-performance, use a stored procedure. There are other techniques, but I'd bet lunch that none will come close in terms of performance. Larry On Mon, 28 Feb 2005 09:54:04 -0600, CRANFORD, CHRIS <[EMAIL PROTECTED]> wrote: > How have others implemented database queries a

Re: AW: Struts Approach

2005-02-28 Thread Dakota Jack
DTOs are meant for efficient Internet transfers of data in a J2EE environment. If you don't have the problem that DTOs were meant to solve, then you should not be using them. Jack On Mon, 28 Feb 2005 15:22:28 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > So what you're saying is that if I

gmail

2005-02-28 Thread Shey Rab Pawo
I have 50 gmails for anyone that wants one, or more. -- No one ever went blind looking at the bright side of life. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
How have others implemented database queries and paging techniques in your struts applications? I'd like to see how others have implemented such functionality to see if I can improve upon our current framework. ___ Chris Cranford Programmer/De

Re: AW: Struts Approach

2005-02-28 Thread Larry Meadors
I would agree with that point. Generally, my service classes take care of the domain logic, so the DTO is as good a DO as I need. Larry On Mon, 28 Feb 2005 15:22:28 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > So what you're saying is that if I include a separate DTO it doesn't > really

Re: AW: Struts Approach

2005-02-28 Thread Tim Christopher
So what you're saying is that if I include a separate DTO it doesn't really achieve anything extra - whilst at the same time creating more code to maintain and reducing performance? Do you know if there is a formal writeup of what is in the blog, something article in a book / report or on a differ

Re: [HTML-TAG] select tag and collections : need of a very simple example

2005-02-28 Thread Erik Weber
State: Where USStateValues and USStateLabels are application scope attributes. USStateValues is {"AL", "AZ", "AR", . . .} and USStateLabels is {"Alabama", "Arizona",

Upload Requirements Suggestion for 1.3

2005-02-28 Thread Dakota Jack
Another try at communication on this upload thing. There is no use of the multipart request wrapper in struts until after its state is set in RequestUtils. The state is set by the MultipartRequestHandler which is not obtained until the populate method of RequestUtils, which handler is determined

Re: RequestURI (Action not JSP)

2005-02-28 Thread Erik Weber
I used something like this once. First I extended RequestProcessor. I picked the processActionPerform method because it's one of the last ones to be invoked by the controller, and various attributes tend to get removed/added as the controller moves through the request processing chain. Sometimes

[HTML-TAG] select tag and collections : need of a very simple example

2005-02-28 Thread Stéphane Zuckerman
Hello, I am quite new to Struts, but have been playing with this framework for some time now (mostly as a means of understanding the framework)... There is still one thing that isn't clear for me though : I understand how to use a "simple" html:select tag, but when it comes to use a Collection

url rewriting fails with multipart/form-data

2005-02-28 Thread delbd
Hello, Using struts and tomcat to handle a file upload form, i noticed the following problem. If the browsers doesn't accept cookies or tomcat does not yet use cookies with the involved session (ie we are at first page so tomcat is still probing the browser), tomcat is unable to read the jsessi

Sorry, right Subject is "Tiles: cachedCurrentContext in Insert Tag"

2005-02-28 Thread Hauschel Fred
-Ursprüngliche Nachricht- Von: Hauschel Fred Gesendet: Montag, 28. Februar 2005 14:39 An: Struts Users Mailing List; Ben Taylor Betreff: AW: RequestURI (Action not JSP) Hey all, i will change my tilesComponent context to runtime. The Context in request is aktuall and contains my changes

AW: RequestURI (Action not JSP)

2005-02-28 Thread Hauschel Fred
Hey all, i will change my tilesComponent context to runtime. The Context in request is aktuall and contains my changes, but the InsertTag do not know my changes ;-(( I think the problem is the Member (from InsertTag) /** * Current component context. */ protecte

  1   2   >