How to access a Servers connection pool with Struts?

2005-07-28 Thread starki78
Ciao! Is there any best practise accessing a global connection pool with Struts? I cannot find the benefit in defining a datasource in Struts-Config. Can Struts give me support controlling the maximal amounts of connections on a servers connection-pool? Up to now I don't see another solution as t

Re: bean traversal question

2005-07-28 Thread Werner Punz
Rick Reumann wrote: Michael Jouravlev wrote the following on 7/28/2005 4:30 PM: Ahem, actually I am all in for sessions. I just don't see why it storing stuff in an action form with session scope is universally frowned upon, while sticking same stuff directly into session is OK ;-) Most seem

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Tamas Szabo
Frank W. Zammetti wrote: Tamas Szabo wrote: For example Frank's JWP would be a great place to include these filters, if he accepted to include them in his project. I would absolutely accept them, so long as they work :) And frankly, right now I'm trying to figure out why my formerly work

RE: [OT] jsp

2005-07-28 Thread Amin Mohd Sani
Need some help. Currently using jboss, after deploying a new ear file, the jsp still reflects the old content. I suspect this has something to do with the cache, but I am not sure how to go about it. I know this is way off topic, but just need some help. TIA. ---

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Frank W. Zammetti
Tamas Szabo wrote: For example Frank's JWP would be a great place to include these filters, if he accepted to include them in his project. I would absolutely accept them, so long as they work :) And frankly, right now I'm trying to figure out why my formerly working version of the session l

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Steve Raeburn
Michael / Jack / Thingamabob, Struts is licensed in such a way that if you are unhappy with the way it is being managed, you are quite free to fork the code and continue to develop it in whatever way *you* see fit. I suspect you'd make a lot of people very happy if you went away and did that

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Tamas Szabo
Hi Rick, That would probably be a good idea to use two filters vs doing it all in one. Although it could also be nice to see all that happens for each request by looking in just one filter vs two. I like this idea because in my opinion filters should do small tasks. This way they can be use

Re: [OT] saving stats from session when session destroyed

2005-07-28 Thread Frank W. Zammetti
Van wrote: I believe that Tomcat 4.x was at spec 2.3 level and Tomcat 5.x is at spec 2.4 level. In any case, I'm using a Jetty 4.2.x container which I'm absolutely certain only has spec 2.3 support. I'd bet your right about Tomcat... of course, either of us could go look it up in 10 seconds :)

Re: Where can I find taglibs

2005-07-28 Thread Frank W. Zammetti
The Struts taglibs currently ship with the main Struts distribution. Download Struts and you get the taglibs. FYI, the development branch has them separated out now as a separate sub-project. I'm not sure how they are intended to be distributed, but for now it doesn't really matter. Frank

Re: [OT] saving stats from session when session destroyed

2005-07-28 Thread Van
On 7/28/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Nope, not as far as I know... in fact, I just implemented a listener > today that does some maintenace-type things like the code below, and it > works fine, that's under Tomcat 5.5.28 I believe... spec 2.3 as I recall? I believe that Tomca

Where can I find taglibs

2005-07-28 Thread Paul Goepfert
I want to write a web app with jsp/struts. I know that there should be a struts tag library for this. Where can I find it? Thanks, -Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Merging form properties

2005-07-28 Thread Laurie Harper
Wendy Smoak wrote: From: "Dave Newton" <[EMAIL PROTECTED]> if in the getPropertyDescriptors method you checked the values for null and only returned those that weren't null would this work? That's what I was thinking... but looking at the BeanInfo interface, you don't have access to the be

Re: [OT] saving stats from session when session destroyed

2005-07-28 Thread Frank W. Zammetti
Nope, not as far as I know... in fact, I just implemented a listener today that does some maintenace-type things like the code below, and it works fine, that's under Tomcat 5.5.28 I believe... spec 2.3 as I tecall? sessionDestroyed() would be all but useless if you couldn't get at the attribut

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-28 Thread Laurie Harper
This might be useful: http://article.gmane.org/gmane.comp.jakarta.struts.user/110666/match= Tomasz Nazar wrote: Hi! I like the idea (pattern) of having actions named in a path/menu-like way. Say: /context/employees/emplyee?id=17 But: I'd like to have something more prettier: Say: /context

Re: [OT] saving stats from session when session destroyed

2005-07-28 Thread Van
On 7/25/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > SessionListener is what you want. > > Here's an example from one of my apps (condensed for space)... it is used > to delete a temporary PDF that may have been generated for the user when > they log off: > > import company.app.User; > impo

Re: Merging form properties

2005-07-28 Thread Wendy Smoak
From: "Dave Newton" <[EMAIL PROTECTED]> if in the getPropertyDescriptors method you checked the values for null and only returned those that weren't null would this work? That's what I was thinking... but looking at the BeanInfo interface, you don't have access to the bean itself, so as Lauri

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-28 Thread Yuniar Setiawan
http://tuckey.org/urlrewrite/ perhaps ? On 7/28/05, Tomasz Nazar <[EMAIL PROTECTED]> wrote: > > > > Hi! > > I like the idea (pattern) of having actions named in a path/menu-like > way. > > Say: /context/employees/emplyee?id=17 > > But: I'd like to have something more prettier: > > Say: /c

Re: Merging form properties

2005-07-28 Thread Dave Newton
Laurie Harper wrote: Wendy Smoak wrote: I haven't done it, but you can use a BeanInfo class to control what properties are exposed: http://java.sun.com/docs/books/tutorial/javabeans/beaninfo/ That wont work, though, if you don't know at design time which properties you need to copy and w

Re: Merging form properties

2005-07-28 Thread Laurie Harper
Wendy Smoak wrote: From: "Cadariu, Mihai" <[EMAIL PROTECTED]> I have two instances of the same form bean class, both containing some properties filled, the rest being null. I would like to copy the non-null properties from one form bean to the other. I tried using the PropertyUtils.copyPropertie

Re: String concatenation

2005-07-28 Thread Laurie Harper
Konrad Billewicz wrote: Dave Newton pingsite.com> writes: I've never put a parameter in a form's action attribute--why would you want to do that? Wouldn't it be much cleaner to use a hidden form field with the appropriate parameter name? So your original example would be (minus whatever sill

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > There should be set of policies. For example, if you navigate to an > action which is not part of any subsession (or scenario, I like this > word), do you trash all existing scenarios or you keep them? If you look at Spring Web Flow, you w

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/28/2005 6:48 PM: > > > Wizard should be handled by *one* action, then cleanup would be > > simple. Have you found time to look at my stuff? ;-) > > Sorry Michael I have not:( Send me the link again.

Re: UrlValidator (why not use java.net.URL?)

2005-07-28 Thread Laurie Harper
I'd guess the reason is to make it easier to keep the client- and server-side validation in sync. java.net.URL is, obviously, not available to the client-side validation. The Commons Validator list is probably the right place to follow this up. L. Marc Logemann wrote: Hi, after looking int

Re: bean traversal question

2005-07-28 Thread Shekhar Jain
What we have done is kept all forms in session as "form". That way if the user jumps to another set of pages and discards halfway tru the current process the "form" session variable just gets reused and we don't have to worry too much about cleanup Shekhar On 7/28/05, Rick Reumann <[EMAIL PROTECT

Re: multipart request issues

2005-07-28 Thread Laurie Harper
Carl Smith wrote: I am having issues to get the request parameters from a multipart request, le me explain my problem first: Our flow of process is: (1) a multipart request is submitted to a struts action (let's say updateTableAction.do) using POST (2) the multipart request is processed by A

Re: htnm:base rewrites anchor tag

2005-07-28 Thread Dave Newton
Shekhar Jain wrote: No I'm just using a plain I think you need to look at what the html tag does. http://www.faqs.org/docs/htmltut/linking/_BASE.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Problem with Dyna Form

2005-07-28 Thread Laurie Harper
Kade Jeevan Kumar wrote: Hi All, My requirement is to generate a set of dynamic rows(with checkbox and combo box) at client side using JSP and Struts 1.1. As of now, i am generating the above stuff using java script. How can i use Dyna Form to meet the above requirement (or) suggest me other w

Re: bean traversal question

2005-07-28 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/28/2005 6:48 PM: Wizard should be handled by *one* action, then cleanup would be simple. Have you found time to look at my stuff? ;-) Sorry Michael I have not:( Send me the link again. But, that being said, where clean up becomes a problem is when th

Re: htnm:base rewrites anchor tag

2005-07-28 Thread Shekhar Jain
No I'm just using a plain wrote: > Shekhar Jain wrote: > > >I have a jsp page which in which I am using the at the top > >of the page. However I find that then all the links to anchor tags get > >rewrriten with the jsp page. Is there any way to prevent this from > >happening > > > > > Are the l

Re: htnm:base rewrites anchor tag

2005-07-28 Thread Dave Newton
Shekhar Jain wrote: I have a jsp page which in which I am using the at the top of the page. However I find that then all the links to anchor tags get rewrriten with the jsp page. Is there any way to prevent this from happening Are the links-to-anchor-tags struts tags? If so, perhaps consider

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Ed Griebel wrote the following on 7/28/2005 5:11 PM: > > Rick- > > > > I'm faced with this same problem on a new project and have been > > thinking along these same lines. What kind of issues have you run > > into? > > I really haven't run into

htnm:base rewrites anchor tag

2005-07-28 Thread Shekhar Jain
I have a jsp page which in which I am using the at the top of the page. However I find that then all the links to anchor tags get rewrriten with the jsp page. Is there any way to prevent this from happening Shekhar Jain - To uns

Re: bean traversal question

2005-07-28 Thread Rick Reumann
Ed Griebel wrote the following on 7/28/2005 5:11 PM: Rick- I'm faced with this same problem on a new project and have been thinking along these same lines. What kind of issues have you run into? I really haven't run into many problems when I use a Session based form for a wizard approach. Si

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Ed Griebel <[EMAIL PROTECTED]> wrote: > Rick- > > I'm faced with this same problem on a new project and have been > thinking along these same lines. What kind of issues have you run > into? I am interested too ;) > The kind of things that I see being a problem is specifying > which s

Re: bean traversal question

2005-07-28 Thread erikweber
1) I use session-scoped ActionForms with "extra" fields plenty (in search scenarios for example, where the form is for search, where the search is related to a product, and where you want to hang on to the product details as the search results change) and couldn't care less who "frowns upon it".

Re: bean traversal question

2005-07-28 Thread Ed Griebel
Rick- I'm faced with this same problem on a new project and have been thinking along these same lines. What kind of issues have you run into? The kind of things that I see being a problem is specifying which sets of actions are associated with what items in a session, and which sets of actions are

Re: bean traversal question

2005-07-28 Thread Rick Reumann
Werner Punz wrote the following on 7/28/2005 11:46 AM: There are some ways to handle this a) You can dump anything into the session, which means you run into memory problems in the long run. I use this solution and have yet to run into any sort of memory problems. Resources aren't 'that' exp

Re: bean traversal question

2005-07-28 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/28/2005 4:30 PM: Ahem, actually I am all in for sessions. I just don't see why it storing stuff in an action form with session scope is universally frowned upon, while sticking same stuff directly into session is OK ;-) Most seem to frown on both scen

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Werner Punz <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > > On a side note, I cannot get why storing data in an action form is > > considered wrong, while directly accessing session is OK. I think > > Well it is quite the opposite in JSF... using the session is > sort of a

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-28 Thread netsql
Hernandez, Mariano wrote: we use EJBs, although I and a colleague have tried to persuade our architech to use ANYTHING other than EJBs. Consider having a email "Dear Achitect, thanks for meeting w/ us, we brought you some good reasons not to use EJB; we understand you do want to use them".

Re: Filtering bean properties

2005-07-28 Thread Ed Griebel
You could have a collection/array of fields that needed to be displayed. You would iterate on each record in the result set. For each row, you would then iterate thru the collection of field names, using the field name as a key to the record "bean". I'd do it something like below, though there may

Re: format

2005-07-28 Thread BHansard
Never mind was using regular _expression_ formatting, Needed to use format="$###,000.00" [EMAIL PROTECTED] [EMAIL PROTECTED] 07/28/2005 03:58 PM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject format Has Anyone used the format a

format

2005-07-28 Thread BHansard
Has Anyone used the format attribute to format currency? I have a property in an ActionForm which will hold a dollar figure and want to format when displaying. ie. listPrice = 930 Need to Display $930.00 or listPrice = 1299.9 Needs to Display $1,299.90 I have attempted the following b

Re: Filtering bean properties

2005-07-28 Thread Dave Newton
Konrad Billewicz wrote: How would you handle it? If the columns are all formatted the same (or even if they're not and I'm feeling saucy) I might consider writing a custom tag that does the entire report (maybe outputting XML for easy format changes? I dunno) or iterating over a collection

RE: Filtering bean properties

2005-07-28 Thread Adrian_Rios
This is the easiest and cleanest way to do this. If not you could do it with JavaScript, but then again, not the best way! __ Senior Programmer Analyst, Tax Distributed Systems Development Tax & Compliance Development, ADP IT Phone: (909) 592-641

Re: bean traversal question

2005-07-28 Thread Werner Punz
Michael Jouravlev wrote: On a side note, I cannot get why storing data in an action form is considered wrong, while directly accessing session is OK. I think Well it is quite the opposite in JSF... using the session is sort of a secure source of getting heavy beating (which is half right but

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
Dave Newton pingsite.com> writes: > I've never put a parameter in a form's action attribute--why would you > want to do that? Wouldn't it be much cleaner to use a hidden form field > with the appropriate parameter name? > > So your original example would be (minus whatever silly syntax mistake

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Werner Punz <[EMAIL PROTECTED]> wrote: > Actually I was thinking also along the lines of having some kind of > garbage collecting mechanism. > I did something like that in JSF very easy (reprogrammed parts of the > x:saveState) > the trick was to push the object into the session with so

RE: Filtering bean properties

2005-07-28 Thread Johnson, Kaerstin
You could use JSTL if you'd like to check for whether you should print the column out - something like: print my stuff here Im not sure how to do it with just struts, someone else might know that. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewic

[OT] Re: bean traversal question

2005-07-28 Thread Dave Newton
Werner Punz wrote: I tried to move over a similar mechanism in Struts, but basically failed due to time constraints, which I cannot resolve by technical means ;-) If you were Really Good you could. Probably not a pure software solution, though, especially if any space-time distortion is invo

Re: String concatenation

2005-07-28 Thread Dave Newton
Konrad Billewicz wrote: value="<%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING %>" /> It's not exactly what I expected, but it's better solution than mine. Ideally I thought about complete aviodance of <% and %> tags. I wish to use only Struts

Filtering bean properties

2005-07-28 Thread Konrad Billewicz
I have a report with a huge number of columns (about 150). In the prior form user can choose some of them. My current task is to show only choosen columns in the report. I'm unexpectedly uncertain how to do it elegantly (using, of course, Struts). The current version of this huge result page (

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-28 Thread Hernandez, Mariano
I've work for the USPS for 3 years and now work for the DOD. At the PO we moved from pojos to iBatis, although there was another team trying to get Hibernate going. Now with the DOD, we use EJBs, although I and a colleague have tried to persuade our architech to use ANYTHING other than EJBs. I don'

Gonzalez's question posted as new thread:

2005-07-28 Thread Rick Reumann
Aleksander Gonzalez, It's a very bad idea to hi-jack a thread by replying to it and changing the content. (ref: "probably a cleaner way..testing for one user"). Here is the question that you asked in the hijacked thread that I'm posting new. But as far as an answer goes to your question, you n

Re: bean traversal question

2005-07-28 Thread Werner Punz
Michael Jouravlev wrote: On 7/28/05, Werner Punz <[EMAIL PROTECTED]> wrote: I after Wendy gave me the advice to rephrase the question I will try to rephrase it. Being new to struts, I want to know how people deal with data objects which need a scope bigger than request but smaller than session

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
> do you need to put dictionaryId to querystring? > i come up with > > "> > as an alternative It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in Struts-driven applications? I am quite new in Struts and I don't want to get bad habits. :-) Best regards, Konrad B

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread John Henry Xu
I mapped to .html but not .asp, and I doubt many people would map java apps to .php, .asp or .aspx in hosting companies (Of course u can technically but I can not see the benefit). That's why I assume if I see .php, I know it is php site with 99% confidence. The reason for our mapping to html was

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
> I'm not sure I've understood correctly what you want to do, but here's > what I would do : > > id="myBean" >value="<%= SomeConstantsHolderClass.CONSTANT_STRING + > SomeConstantsHolderClass.CONSTANT_STRING %>" /> > > > ... It's not exactly what I expected, but it's better solution th

Please i caanot run this

2005-07-28 Thread Gonzalez Aleksander
--- Tamas Szabo <[EMAIL PROTECTED]> wrote: > Hi Rick, > > It's past midnight here so I'll check the code > tomorrow. A few questions > though... > > > 1) For one, the business requirement created a bit > more complication > > in the filter. For example a check for the session > timing out ha

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Gonzalez Aleksander
Hello, I cannon run an application The error that I get when i asm going to run the apllication is type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. It doesn{to procees my t

Re: bean traversal question

2005-07-28 Thread Werner Punz
Michael Jouravlev wrote: There are no standard ways to do this. Creating wizards myself, I was thinking about some kind of garbage collector for session object. This project: http://wfnm.sourceforge.net/ seems to have this feature. It has some other features so I don't know can you pull out the

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Rick Reumann
Tamas Szabo wrote the following on 7/28/2005 12:51 PM: Could you clear this situation for me: User A is using the app, then his session expires. User B starts to use the app. User A comes back and want to access a page in the app. Remember that his session is expired and User B is already usi

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Tamas Szabo
Hi Rick, It's past midnight here so I'll check the code tomorrow. A few questions though... 1) For one, the business requirement created a bit more complication in the filter. For example a check for the session timing out has to take place on all pages except for (index.jsp/login/logout/app

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: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-28 Thread Dave Newton
Tomasz Nazar wrote: But: I'd like to have something more prettier: Say: /context/emplyee/17 Or even more: /context/archive/1998/employee/tomasz/tasks/7 Can you point me where to look for this? Is there any standard option for that; some URL pattern rewriting or God knows what. Do I have to

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Dakota Jack
Struts could live by improving in ways unlikely with the present management. The people in charge of Struts these days are really interested in something else. Unless the baton passes to those actively building something, Struts likely will either die from be non-competitive with like products or

Re: UrlValidator (why not use java.net.URL?)

2005-07-28 Thread Marc Logemann
Hi, after looking into the code of UrlValidator and moreover looking into a similar class in Tapestry which is no longer active as it seems, i wonder why commons-validator UrlValidator is using Regex so much. Wouldnt it be enough to just use java.net.URL and let this class do the verification

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Dakota Jack
[EMAIL PROTECTED] is the lead? Cool! On 7/25/05, John Public <[EMAIL PROTECTED]> wrote: > After just finishing my JSF class, I can confidently > confirm that JSF will eventually lead to Struts > becoming OBSOLETE. Make no mistake about it. JSF > rocks. JSF is based on "true" MVC architecture, not

Re: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Jeff Beal
On 7/28/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > > Hello Wendy, > I missed one point of your statement.. > > >> > > >Even if you're going to use an expression, the 'name' attribute should > >still > >evaluate to the _name_ of the bean, not the bean itself. > > http://struts.apa

Re: Restricting Get requests

2005-07-28 Thread Joe Germuska
At 9:48 AM -0500 7/28/05, Josh Cronemeyer wrote: Part of the OWASP recommendations is that we do not allow authentication and session data to be submitted via GET request, this includes the session id. This comes from the OWASP top ten (http://www.owasp.org/documentation/topten/a3.html) under A3.

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Neil Erdwien
I presume preserving URLs is the reason to map one technology's default extention to another. For example, if you have a static web site with files than end in .html, and switch to Java/Struts, then you can map *.html to the Struts' action servlet. The end users' bookmarks don't have to chang

Re: bean traversal question

2005-07-28 Thread Michael Jouravlev
On 7/28/05, Werner Punz <[EMAIL PROTECTED]> wrote: > I after Wendy gave me the advice to rephrase the question I will try to > rephrase it. > > Being new to struts, I want to know how people deal with data objects > which need a scope bigger than request but smaller than session. There are no sta

Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Stéphane Zuckerman
John Henry Xu a écrit : Actually, my favorite sites are the ones that map "*.asp" to the Struts servlet. Gotta love people that bend minds like that! I cannot imagine what motivates people tried to map there servlets to .asp. Even I could easily map my site to .aspx, I would not do that. A

Re: bean traversal question

2005-07-28 Thread Werner Punz
I after Wendy gave me the advice to rephrase the question I will try to rephrase it. Being new to struts, I want to know how people deal with data objects which need a scope bigger than request but smaller than session. I will give an example, you have some kind of wizard interface with myriad

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Tamas Szabo
Hi again, Frank W. Zammetti wrote: Yes, I think what you caught yourself is what I was driving towards :) Just for comparisons' sake, here's the filter and listener I came up with to deal with this (this is condensed for space, just showing the main bits of the puzzle)... this is what's going

Using XHTML and no form name tag

2005-07-28 Thread Titi Wangsa
i'm havig problem with struts. i'm using 1.2.7 and i'm using the validator plug-in the problem is when i'm using html:javascript forname= the name attribiute for form is not rendered when however when only is specified, without turning on the xhtml feature, the tag is rendered. the question

Re: Problem with Dyna Form

2005-07-28 Thread David Durham
Kade Jeevan Kumar wrote: Hi All, My requirement is to generate a set of dynamic rows(with checkbox and combo box) at client side using JSP and Struts 1.1. As of now, i am generating the above stuff using java script. How can i use Dyna Form to meet the above requirement (or) suggest me other w

Re: Merging form properties

2005-07-28 Thread Wendy Smoak
From: "Cadariu, Mihai" <[EMAIL PROTECTED]> > I have two instances of the same form bean class, both containing some > properties filled, the rest being null. I would like to copy the non-null > properties from one form bean to the other. I tried using the > PropertyUtils.copyProperties or BeanUtil

Re: Restricting Get requests

2005-07-28 Thread Frank W. Zammetti
I think JSF and Shale are! LOL :) Sorry Craig, couldn't resist :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, July 28, 2005 10:50 am, [EMAIL PROTECTED] said: > Are you asking if Struts can control what URL your user types into hi

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Rick Reumann
Tamas Szabo wrote the following on 7/28/2005 2:24 AM: Yes, the sessionCount is decremented everytime a session is destroyed regardless of regular logoff, 'forced' logoff (max sessions in use) :-)) or timeout. But that's what I wanted. Do you see a problem with it? sessionCount is the number of

Merging form properties

2005-07-28 Thread Cadariu, Mihai
Hi, Is there a way to merge properties of two formbeans? I have two instances of the same form bean class, both containing some properties filled, the rest being null. I would like to copy the non-null properties from one form bean to the other. I tried using the PropertyUtils.copyProperties or B

Re: Restricting Get requests

2005-07-28 Thread DGraham
Are you asking if Struts can control what URL your user types into his browser? I could be wrong, but somehow, I don't think Struts is _that_ powerful. ;) -Dennis Josh Cronemeyer <[EMAIL PROTECTED]> 07/28/2005 10:48 AM Please respond to "Struts Users Mailing List" To Struts Users Maili

Restricting Get requests

2005-07-28 Thread Josh Cronemeyer
Part of the OWASP recommendations is that we do not allow authentication and session data to be submitted via GET request, this includes the session id. This comes from the OWASP top ten (http://www.owasp.org/documentation/topten/a3.html) under A3.5 under "Browser Caching" and "Session ID Protectio

Re: submitting an array of objects with 1 submit?

2005-07-28 Thread Mick Knutson
> > I have a consumer Object that has an array of cards i.e.: > > > > consumer.java > > > > name > > address > > Card[] > > > > Card > > -- > > cardNumber > > status > > > > Now, this is being displayed in the consumer screen, and this displays > > all the cards the consumer ha

multipart request issues

2005-07-28 Thread Carl Smith
I am having issues to get the request parameters from a multipart request, le me explain my problem first: Our flow of process is: (1) a multipart request is submitted to a struts action (let's say updateTableAction.do) using POST (2) the multipart request is processed by ActionServlet.proces

Re: UrlValidator

2005-07-28 Thread Marc Logemann
Hi, if i have the time in the next days i will work on that, but where should i send a possible fix? struts-dev or to the commons-validator guys? Lindholm, Greg wrote: I encountered this awhile back but didn't have time to investigate. As a workaround I use the localhost IP address "127.0.0

Re: probably a cleaner way... testing for just one user

2005-07-28 Thread Frank W. Zammetti
Yes, I think what you caught yourself is what I was driving towards :) Just for comparisons' sake, here's the filter and listener I came up with to deal with this (this is condensed for space, just showing the main bits of the puzzle)... this is what's going in JWP (unless someone points out a maj

Re: Re: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread John Henry Xu
I think I need clarify my statements before. > Craig, I assure you that I always hope Java success and I do think it > popular for web app. The only thing I think I said Java was not doing > well as PHP is that PHP becomes more popular in public sites. >>That is definitely what you claimed. I cl

Re: String concatenation

2005-07-28 Thread ichy
hi, Konrad. do you need to put dictionaryId to querystring? i come up with "> as an alternative regards ichy

RE: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Marco Mistroni
Hello Wendy, I missed one point of your statement.. >> >Even if you're going to use an expression, the 'name' attribute should >still >evaluate to the _name_ of the bean, not the bean itself. > http://struts.apache.org/userGuide/struts-logic.html#present what do you mean? If I store

Re: String concatenation

2005-07-28 Thread Stéphane Zuckerman
Hello Konrad, I'm not sure I've understood correctly what you want to do, but here's what I would do : value="<%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING %>" /> ... Don't forget that you can still use an action _before_ you go to your JSP to

RE: UrlValidator

2005-07-28 Thread Lindholm, Greg
I encountered this awhile back but didn't have time to investigate. As a workaround I use the localhost IP address "127.0.0.1" but it would be nice to get this fixed. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 8:33 AM To: user@struts.a

String concatenation

2005-07-28 Thread Konrad Billewicz
Hi, I would like to use Struts tags in JSP file in order to dynamically merge two beans. First is constant String, second is an Integer. The current, very dirty : -(, version is as follows (I present it in order to give you a better view of what I'm trying to do): ... <% String action = "cr

RE: Error Message Problem (Again)

2005-07-28 Thread BHansard
Sorry, it does work, I forgot to change the messages name from errors. Thank you for the help... ">"Harland, David" <[EMAIL PROTECTED]> "Harland, David" <[EMAIL PROTECTED]> 07/28/2005 08:52 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" c

RE: Error Message Problem (Again)

2005-07-28 Thread BHansard
No luck. I also added "test" inside the tag. The text was not displayed which indicates the save did not put any messages into the request, Yet, the ActionMessages does have a message in it and the saveMessage(request, errors) line is called. ">"Harland, David" <[EMAIL PROTECTED]> "H

Re: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Wendy Smoak
From: "Marco Mistroni" <[EMAIL PROTECTED]> Yes I actually reverted to using c:if, and it worked Just fine I wanted just to report the situation to see if I was Using the taglib incorrectly... Even if you're going to use an expression, the 'name' attribute should still evaluate to the

RE: Error Message Problem (Again)

2005-07-28 Thread Harland, David
Hi, Try the following: Use saveMessages(request, messages) instead of saveErrors(request, errors) And use something like                 In your web page. Regards David. -Original Message- From: [EMAIL PROTECTED] [

Error Message Problem (Again)

2005-07-28 Thread BHansard
Hi All, Seems this is a constant area of irritation. I am attempting to put an error message into the ActionMessage in an Action Class and redisplay this on a JSP page. This application is using tiles and is located in a Struts Module. Seems simple enough, but I can't get the darn thing to dis

UrlValidator

2005-07-28 Thread Marc Logemann
Hi, can it be that UrlValidator from Commons-Validator doesnt validate URLs with localhost in it? The following URL -> http://localhost:8081/context/jsp/versand_1.jsp breaks in isValidAuthority() within UrlValidator. It seems he tries to check for toplevel domain length and sees my "localhos

RE: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Marco Mistroni
Hello Joe, Yes I actually reverted to using c:if, and it worked Just fine I wanted just to report the situation to see if I was Using the taglib incorrectly... Thanx again and regards marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 28 J

  1   2   >