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

2005-07-28 Thread Tamas Szabo
Hi Frank, Doesn't the sessionCount get decremented regardless of whether the session is being destroyed as the result of a regular logoff or timeout as well as if it was a rejected logon (i.e., max sessions already in use)? I dealt with this problem in the code I'm adding to Java Web Parts

Problem with Dyna Form

2005-07-28 Thread Kade Jeevan Kumar
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 way if u have any solution

Re: [OT] Create/Edit Form

2005-07-28 Thread Emmanouil Batsis
You need an identifier to update an object, which usually corresponds to a PK in your database. When the identifier is not present or does not correspond to a persisted entry, you probably want to create. hth, Manos Andrew Tomaka wrote: Hey all, The following is pretty hard to

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

2005-07-28 Thread netsql
news to some: http://bugs.sakaiproject.org/confluence/pages/viewpage.action?pageId=4981 I think it was said us Java dudes should talk less and produce apps more in this thread, which is what I said +1 too. It's hard to debate PHP vs Java on the server, which is better, which is bigger... bla,

Re: mutli-checkbox

2005-07-28 Thread Sagar Naik
Hi Sorry for bothering u guys , I could figure out the mistake But now the problem is , I dont get the values vback in the Action (when submit is hit). I am using form oy type DynaValidatorForm and my Form Bean has all the properties of type String Can u pl help. Thanks Floowing is the JSP Page

Re: How to have logical 'OR' between two validator rules ?

2005-07-28 Thread Marc Demlenne
Thanks for the reply, This only allows you to compare fields, not to enter a regular expression mask in the test var. So uit's not enought, except if I'm totally wrong. I don't need to have an 'OR' between fields, but between validator results. That's the problem. In fact, OR between validwhen

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

2005-07-28 Thread Marco Mistroni
Hello all, I have an app which is using struts 1.3.. I wanted to 'replace' existing struts tag with struts-el tag. So I downloaded struts-el-1.3.0-dev and put it into my jar, (along with struts-taglib-1.3.0-dev) I have declared taglibs in web.xml, and I wrote a simple page which uses

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

2005-07-28 Thread Joe Germuska
At 11:08 AM +0100 7/28/05, Marco Mistroni wrote: anyone could give me some hints on what's wrong? Do you think the fact that I have both struts-taglib and struts-el in my Lib directory could cause problems? No, because el actually depends on taglib -- you have to have taglib to use el. If

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

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 localhost

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

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 logic:messagesPresent message=true tr tdnbsp;/td tdnbsp;/td tdnbsp;/td /tr html:messages id=message message=true tr tdnbsp;/td td colspan=8

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... logic:present name=${sessionScope.results} Even if you're going to use an expression, the 'name'

RE: Error Message Problem (Again)

2005-07-28 Thread BHansard
No luck. I also added test inside the logic:messagesPresent ... 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

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 user@struts.apache.org To Struts Users Mailing

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): bean:define id=dictionaryId

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:

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 : bean:define id=myBean value=%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING % / html:form action=%= action % ... Don't forget that you can

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.. logic:present name=${sessionScope.results} 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.

Re: String concatenation

2005-07-28 Thread ichy
hi, Konrad. do you need to put dictionaryId to querystring? i come up with html:form action=createDictionaryEntity input type=hidden name=dictionaryId value=bean:write name=dictionaryId/ as an alternative regards ichy

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 claim

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

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

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

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 Protection.

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 user@struts.apache.org To

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

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

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

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

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

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 form name= is not rendered when html:html xhtml=true however when only html:html is specified, without turning on the xhtml

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

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

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

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

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.. logic:present name=${sessionScope.results} Even if you're going to use an expression, the 'name' attribute should still evaluate to the _name_ of the bean, not the bean

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 the

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

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

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: 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

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

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

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

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

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 has to take

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 : bean:define id=myBean value=%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING % / html:form action=%= action % ... It's not exactly what I expected,

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
do you need to put dictionaryId to querystring? i come up with html:form action=createDictionaryEntity input type=hidden name=dictionaryId value=bean:write name=dictionaryId/ as an alternative It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in

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.

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

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

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: String concatenation

2005-07-28 Thread Dave Newton
Konrad Billewicz wrote: bean:define id=myBean value=%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING % / html:form action=%= action % It's not exactly what I expected, but it's better solution than mine. Ideally I thought about complete

[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

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: c:if test=${myParameter==true}tdprint my stuff here/td /c:if Im not sure how to do it with just struts, someone else might know that. -Original Message- From: news

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 some

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
Dave Newton newton at 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

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: 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)

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

bean:write 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

Re: bean:write 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 user@struts.apache.org To user@struts.apache.org cc Subject bean:write format

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: [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: 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 secure

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

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'

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

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 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 sets of

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.

htnm:base rewrites anchor tag

2005-07-28 Thread Shekhar Jain
I have a jsp page which in which I am using the html:base 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

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 many problems

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 html:base 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,

Re: htnm:base rewrites anchor tag

2005-07-28 Thread Shekhar Jain
No I'm just using a plain a href=#top ... to go to the top of the page Shekhar On 7/28/05, Dave Newton [EMAIL PROTECTED] wrote: Shekhar Jain wrote: I have a jsp page which in which I am using the html:base at the top of the page. However I find that then all the links to anchor tags get

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

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

Re: htnm:base rewrites anchor tag

2005-07-28 Thread Dave Newton
Shekhar Jain wrote: No I'm just using a plain a href=#top ... to go to the top of the page I think you need to look at what the html base... tag does. http://www.faqs.org/docs/htmltut/linking/_BASE.html Dave - To

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

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 PROTECTED]

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

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. No rush

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 would

Re: String concatenation

2005-07-28 Thread Laurie Harper
Konrad Billewicz wrote: Dave Newton newton at 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

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.copyProperties

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

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 Laurie

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; import

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:

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

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 bean

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

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 Tomcat

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 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: 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

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

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

  1   2   >