[OT] ConvertUtils Mess

2005-08-16 Thread Nitish Kumar
I am using my custom converters to convert from String to Date, we are using Quartz as well, which also does the same with its own DateConverters. Unfortunately my date formats and quartz date formats are different. Initially my idea was to register the converters as a part of plugin, which has

Session Problem

2005-08-16 Thread Senthilrajan VS
Hi all, I am having serious session problem in some of the browsers(Not all). I'm using struts. In the Action class I am using HttpSession Session=request.getSession(true); to get the session and I'm keep on calling this action for different condition. The problem is For each request it is

Populate drop down box

2005-08-16 Thread Gooshy GooSHY
Hi, I'm pretty new to struts and haven't been using it for very long. I have spent the past few days trawling though web sites and usenet trying to find the answer to my problem below. If anyone can help it would be much appreciated. I am trying to find an example of code that will populate a

Problem with Html File Object

2005-08-16 Thread Pramod
Hi All, I am facing a problem with html file object. Can we assign value to file object externally ?. Thanks in Advance Pramod.

SV: Session Problem

2005-08-16 Thread hermod . opstvedt
Hi Yes, indeed this will happen: use geSession() or getSession(false), also avoid redirect combined with this. Hermod -Opprinnelig melding- Fra: Senthilrajan VS [mailto:[EMAIL PROTECTED] Sendt: 16. august 2005 11:08 Til: Sturts Mailing list Emne: Session Problem Hi all, I am having

SV: Populate drop down box

2005-08-16 Thread hermod . opstvedt
Hi Use : html:optionsCollection name=MakeCollectionFormBean property=values label=label value=label / From the docs: This tag operates on a collection of beans, where each bean has a label property and a value property. The actual names of these properties can be configured using the

Re: Struts weaknesses question

2005-08-16 Thread Ted Husted
On 8/15/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: The latest buzzword being tossed around lately is RIA, Rich Internet Applications. Some of us laugh at the term because we've been doing RIA's for 5+ years now and never thought to attach a special term to it :) But I digress...

Fwd: null pointer exception

2005-08-16 Thread Balkan Guler
Thanks I changed it to session.setAttribute and fixed it, But now I have another problem even I push the edit link of the second or third or any row, the projectname and seqno of the last row is sent to the action. What can I do? On 8/15/05, Michael Rasmussen [EMAIL PROTECTED] wrote:

How JSESSIONID is passes

2005-08-16 Thread Senthilrajan VS
Hi all, How Jsessionid is passed in the struts application and I don't have any control for that. how to avoid that. In my application I am facing the problem in the session it is creating the new session for every request. Is this problem related to Jsessionid? Thanks Regards, SenthilRajan

Re: Can nested tile layouts be done?

2005-08-16 Thread BHansard
It can get a little difficult to keep up with. Basically, you have to know the Hierarchy of your tile and call the top most one. In this case, you would call .base which would intern call myEndUserPage.page1 and finally myEndUserPage.jsp. to change to another.jsp you would call .anotherPage in

RE: Struts weaknesses question

2005-08-16 Thread Robert Nicholls
For those who may want to see an event model built on top of Struts I suggest that they look at the code base generated by Common-Controls: http://www.common-controls.com The software may be considered as two interrelated parts: View and Control. The control is built on Struts with events that

RE: Error: java.lang.ClassCastException: org.apache.struts.taglib .htm l.MessagesTei

2005-08-16 Thread Christian Dionne
Nick! Big Big Big thanks to you that was the problem! Now everything is working fine. Thanks to Laurie too for trying hard to help me. Christian -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: August 15, 2005 11:17 PM To: Struts Users Mailing List Subject: Re:

RE: Merging form properties

2005-08-16 Thread Cadariu, Mihai
I couldn't find any utility method to only copy non-null properties from the form bean. I tried your suggestion to describe() the formbean then filter out the nulls, then populate() the destination formbean. That worked for formbeans which do not have nested indexed formbeans. A describe() of

Re: How JSESSIONID is passes

2005-08-16 Thread GRamani
Hi Senthilrajan: As Hermod mentioned in his note, your session problems are caused because you have (from your previous note): HttpSession Session=request.getSession(true); The true means create a new session. So instead use: HttpSession Session=request.getSession(false); or just: HttpSession

Re: Struts weaknesses question

2005-08-16 Thread Frank W. Zammetti
On Tue, August 16, 2005 7:01 am, Ted Husted said: On 8/15/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: The latest buzzword being tossed around lately is RIA, Rich Internet Applications. Some of us laugh at the term because we've been doing RIA's for 5+ years now and never thought to attach

Re: null pointer exception

2005-08-16 Thread Michael Rasmussen
I'm really not sure I see what it is you are trying to do. I don't see any submit buttons in your jsp...so I don't see what is being submitted on a form click. Also I don't see you writing to any fields that will get submitted to your bean. There is also no attempt to pull anything out of your

[OT] Re: How JSESSIONID is passes

2005-08-16 Thread Dave Newton
[EMAIL PROTECTED] wrote: HttpSession Session=request.getSession(true); The true means create a new session. For which J2EE versions is that correct? In my 1.3 JavaDocs it says: Returns the current |HttpSession| associated with this request or, if if there is no current session and

Re: [OT] Re: How JSESSIONID is passes

2005-08-16 Thread GRamani
You are quite right; I was being sloppy.. Should have added the if there's no current session bit.. thanks for the catch.. Geeta Dave Newton [EMAIL PROTECTED] wrote on 08/16/2005 10:54:39 AM: [EMAIL PROTECTED] wrote: HttpSession Session=request.getSession(true); The true means create a

Re: [OT] Re: How JSESSIONID is passes

2005-08-16 Thread Dave Newton
[EMAIL PROTECTED] wrote: You are quite right; I was being sloppy.. Should have added the if there's no current session bit.. thanks for the catch.. Which makes me wonder why the original poster was continually getting new sessions; seems weird. Dave Dave Newton [EMAIL PROTECTED] wrote

accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Hi, Currently I have a action class which does session.setAttribute(recurringTaskSummary,v_recurringTaskSummary), where v_recurringTaskSummary is a vector of type SpRecurringTaskSummary which has certain variables such as EmployeeName, EmployeeRef etc. I am using logic:iterate as follows:

Re: Can nested tile layouts be done?

2005-08-16 Thread Daniel Hannum
I was able to get it working now. Thanks. On 8/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It can get a little difficult to keep up with. Basically, you have to know the Hierarchy of your tile and call the top most one. In this case, you would call .base which would intern call

Re: [OT] Re: How JSESSIONID is passes

2005-08-16 Thread GRamani
I was thinking of that too.. He did say in his initail post: I'm keep on calling this action for different condition.. so the clue maybe hidden in that.. But then again, having been up since 3am, I perhaps shouldn't be posting to any lists..;) Geeta Dave Newton [EMAIL PROTECTED] wrote on

Re: [OT] Tomcat, JAAS and Kerberos

2005-08-16 Thread Adam Hardy
Hi Wendy, if you set up tomcat to use the JAAS realm, then tomcat will set up a LoginContext, which is what you configure by pointing it to your LoginModule(s). You either code your LoginModule or perhaps use the Sun one you mention (if the code does what it's meant to), you just need to

Re: accessing variables using logic:iterate

2005-08-16 Thread Stéphane Zuckerman
Hi Jay, session.setAttribute(recurringTaskSummary,v_recurringTaskSummary), SpRecurringTaskSummary [...] has certain variables such as EmployeeName, EmployeeRef etc. I am using logic:iterate as follows: logic:iterate id = rtSummary name=recurringTaskSummary bean:write

RE: Struts weaknesses question

2005-08-16 Thread Paranj, Bala
Developers who are really busy don't have time to give a fancy name to something that already has a name. Looks like there are enough idiots out there who have lot of time in their hands to rename things that already have names. This would spread their name and popularity among the developer

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Stéphane Zuckerman wrote: I am using logic:iterate as follows: logic:iterate id = rtSummary name=recurringTaskSummary bean:write name=rtSummary/ /logic:iterate The output is name of objects. However I want to somehow access the variables employeename, employeeref etc. How do I do

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute

Re: [OT] Tomcat, JAAS and Kerberos

2005-08-16 Thread Wendy Smoak
From: Adam Hardy [EMAIL PROTECTED] if you set up tomcat to use the JAAS realm, then tomcat will set up a LoginContext, which is what you configure by pointing it to your LoginModule(s). You either code your LoginModule or perhaps use the Sun one you mention (if the code does what it's meant

RE: Displaying errors for all except one key

2005-08-16 Thread Chris Loschen
Thank you very much for the idea. I'm starting to wrestle with it. My first instinct is that I'm going to need to extend html:messages because the JSP solution below wouldn't work (I think!) with the HTML structure -- in other words, I'm going to end up with a new divul for every new error

Re: Multiple file upload

2005-08-16 Thread Laurie Harper
C.F. Scheidecker Antunes wrote: Is there any way to perform multiple file uploads using Jakarta Commons Upload on a Struts application? Is there any howto on this issu? Just use multiple file inputs on the form. There's no way to provide a single 'select multiple files to upload' widget, if

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Thanks a lot. Got it. As you said, the naming conventions were followed, but I made a typo in the property attribute. Sorry for the trouble. Jay On 8/16/05, Dave Newton [EMAIL PROTECTED] wrote: Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary

Re: scope=request attribute in action mapping

2005-08-16 Thread Laurie Harper
Hard to tell what's going wrong without the full stack trace. Where, exactly, is the error raised? L. Joe Smith wrote: When I put scope=request in action mappings, I got the following HTTP 500 error. But if i take it out, then everything is fine. any ideas?? [Servlet Error]-[Cannot find

Re: Problem with Html File Object

2005-08-16 Thread Laurie Harper
Pramod wrote: I am facing a problem with html file object. Can we assign value to file object externally ?. I'm not sure what it is you want to do; if you're asking if it's possible to pre-populate a file input with a file to upload if the user doesn't change it, the answer is no: browsers

Re: Displaying errors for all except one key

2005-08-16 Thread Kishore Senji
On 8/16/05, Chris Loschen [EMAIL PROTECTED] wrote: Thank you very much for the idea. I'm starting to wrestle with it. My first instinct is that I'm going to need to extend html:messages because the JSP solution below wouldn't work (I think!) with the HTML structure -- in other words, I'm

Re: scope=request attribute in action mapping

2005-08-16 Thread Rick Reumann
Joe Smith wrote the following on 8/15/2005 7:30 PM: When I put scope=request in action mappings, I got the following HTTP 500 error. But if i take it out, then everything is fine. any ideas?? [Servlet Error]-[Cannot find bean logonForm in any scope]: javax.servlet.jsp.JspException: Cannot

html:messages

2005-08-16 Thread glenn . deschenes
Greetings, I am unable to find a solution... even after searching... and waiting for the espresso to kick in. I have messages and would like to determine the number of messages in the bean. If there is more than one message format the output as a list or else just display the message. Unable

JasperReports issue

2005-08-16 Thread Rafael Nami
Hi everyone. What is the best approach to configure and manage reports using jasperreports? I don't know if I have to implement a Controller, or an extension point of DispatchAction, or if I have to implement it on a servlet directly. Best Regards Rafael Mauricio Nami

Re: [OT] Tomcat, JAAS and Kerberos

2005-08-16 Thread Adam Hardy
Wendy Smoak on 16/08/05 17:26, wrote: The User and Role classes are more or less simple DTOs, one User object for the user and x Role objects for each role the User is in. This is where I'm stuck. Right now I'm playing with extending Krb5LoginModule, just wrapping it and passing through all

RE: Displaying errors for all except one key

2005-08-16 Thread Chris Loschen
Yes, I wouldn't be able to get away with the empty div tag -- it would create a great big red box on my page which wouldn't be acceptable. I'm working on extending html:messages, and it's working quite well (and surprisingly easily) so far. I'll do some more testing tomorrow and if all goes well,

Re: Multiple file upload

2005-08-16 Thread C.F. Scheidecker Antunes
Thanks that's what I thought regarding the form. But what I really want is to know how to separate them when they are uploaded. Files are uploaded like email mime attachments. So there is a begining and end of each file. Therefore, how do you separate them? I image that you would have to create

Re: Multiple file upload

2005-08-16 Thread Laurie Harper
Parsing the data from the request is all handled for you by Struts. You just get a bunch of java.io.File objects to work with. L. C.F. Scheidecker Antunes wrote: Thanks that's what I thought regarding the form. But what I really want is to know how to separate them when they are uploaded.