Re: How to Resize the window in my popup

2005-02-09 Thread senthil Kumar
Sir., Now it is comming, thanks. How to set autosize of the Window. I mean without scroll bar the window size show according to the data available in window. Thanks in advance. - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent:

Re: How to Resize the window in my popup

2005-02-09 Thread Frank W. Zammetti
Simply add width and height to your window.open() call parameters... function MM_callProjectSummary() { previewSummary = window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.value +"","previewwin","previewwin","width=1180,height=924,scrollbars=yes,resizable=yes, location=

How to Resize the window in my popup

2005-02-09 Thread senthil Kumar
my code is here. function MM_callProjectSummary() { previewSummary = window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.value +"","previewwin","previewwin","scrollbars=yes,resizable=yes, location=no "); previewSummary.focus(); }

Re: Redirect instead of forward in action mapping

2005-02-09 Thread Bill Siggelkow
Set the redirect attribute on the forward to true: Of course, if the success page displays data you will need to make sure that is is available in the session since it you will be issuing a new request. (You may want to look into the saveMessages(HttpSession session) method). Neil Aggarwal wro

RE: JSP produces invalid XML?

2005-02-09 Thread Jason Long
I always use numeric references such as & = & Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineerring http://www.supernovasoftware.com -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal Sent: Wednesday, February

RE: JSP produces invalid XML?

2005-02-09 Thread Jason Long
I always use numeric references such as & = & Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineerring http://www.supernovasoftware.com -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal Sent: Wednesday, February

Re: request Processor in struts-2.

2005-02-09 Thread Bill Siggelkow
What I like about Chain is that it allows the "step-by-step" definition needed for request processing (ala the Template Method); with the loose coupling provided by CoR and Command patterns. Joe Germuska wrote: There are thousands of lines of discussion on this in the mailing list archives, if

Re: hml:select question

2005-02-09 Thread Bill Siggelkow
I didn't quite follow code sample, but I believe that your Vendor object (not your ActionForm) needs to have getName() getVendor() methods. -Bill Siggelkow Sergey Livanov wrote: I have a vendors collection consisting of bean Vendor( long vendor, String name ) When I'm writing

RE: SessionState vs. request state.

2005-02-09 Thread Martin Gainty
Brian I vote for storing information in session variables for the simple reason most Admins do not allow Browsers writing cookies on the hard drive for fear of introducing viruses to the system +1 for session variables Martin Gainty From: "Brian McGovern" <[EMAIL PROTECTED]> Reply-To: "Struts

Re: SessionState vs. request state.

2005-02-09 Thread Eric Lemle
Use the >> [EMAIL PROTECTED] 2/9/2005 3:47:19 PM >>> Hi, I'm planning my approach to a data driven app that I have to write in the near future. I've used struts before in more of a demo-type, proof of concept scenarios, and am no where near and expert, but now need to build a production level s

SessionState vs. request state.

2005-02-09 Thread Brian McGovern
Hi, I'm planning my approach to a data driven app that I have to write in the near future. I've used struts before in more of a demo-type, proof of concept scenarios, and am no where near and expert, but now need to build a production level system. For a web app that needed to display a usern

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
My the action method that I call before visiting the form is as follows: if (form == null) { form = new LazyValidatorForm(); } CommonTools.formDataCopy(request, form); request.setAttribute("searchNameForm", form); return mapping.findForward("searchName"); The form is always null. I guess tha

RE: How do I prefill a form

2005-02-09 Thread Norris Shelton
Sorry, I was using the wrong form. It should have been a LazyValidatorForm. --- Marco Mistroni <[EMAIL PROTECTED]> wrote: > Hello, > What does the getFormData method return? > It should be a bean with exactly the same properties as your > dynavalidatoraction form.. > > > Regards >

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
Oopsie, that should have been LazyValidatorForm. That was part of my problem. Thx. I took a look at using the FBC, but I was very clumsy. What would I put as the ActionServlet in createActionForm(ActionServlet)? BTW, I was able to get it to work. However, I would rather have it work correctly

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
Jeff Beal wrote: Laurent wrote: Of course, I can perfectly understand that in non-XML JSP mode there may be glitches in the way the XML is parsed. However, I don't believe it is acceptable to output something that isn't XML when you've explicitly demanded to have XML. (For example, Mozilla-based

[OT] Identify web user in intranet

2005-02-09 Thread Ashish Kulkarni
Hi Is there any thing unique to identify the client machine(desktop) other then IP address? I have a situtation where in my intranet, i need to identify the machine uniquely and do some processing, But the problem is that we dont haev static IP address, but dynamic IP address. I want to display a p

Re: URL pattern for validation

2005-02-09 Thread Niall Pemberton
Theres an open bugzilla ticket for this, http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: "Daniel Watrous" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, February 09, 2005 5:54 PM Subject: URL pattern for validation Hello,

Re: LazyDynaBean question

2005-02-09 Thread Niall Pemberton
Now I'm just confused. sorry. Niall - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Wednesday, February 09, 2005 7:15 PM Subject: RE: LazyDynaBean question > But I still have to implement my own ActionForm class, no? > > I just can't

Re: JSP produces invalid XML?

2005-02-09 Thread Jeff Beal
Laurent wrote: Of course, I can perfectly understand that in non-XML JSP mode there may be glitches in the way the XML is parsed. However, I don't believe it is acceptable to output something that isn't XML when you've explicitly demanded to have XML. (For example, Mozilla-based browsers refuse

Re: URL pattern for validation

2005-02-09 Thread Daniel Watrous
I have found that the only url that passes validation in the struts package is a url that references a specific page. For example http://www.maintainfit.com/ will not pass but http://www.maintainfit.com/index.php will pass. I suspected that the nofragments set to false would allow the first u

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
Although & is a *workaround* that will work, the JSP parser is still modifying the data in the file, as & in an XML file represents the "&" string, *not* the "&" string. This is more a question of conforming to the XML spec than the JSP spec. Of course, I can perfectly understand that i

Re: URL pattern for validation

2005-02-09 Thread Jeff Beal
I ended up getting curious, so rather than just speculate, I dug into both RFC's, it looks like I was wrong. According to the both RFC's (1738 and 3986) the '/' is not required for an empty path in a URL/URI. Sorry, Daniel, no help here. -- Jeff Craig McClanahan wrote: On Wed, 09 Feb 2005 13:

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
But I still have to implement my own ActionForm class, no? I just can't plug in an alternative dynabean implementation for the a DynaForm class to be backed by? > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 09, 2005 3:30 AM > To: Str

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
But I still have to implement my own ActionForm class, no? I just can't plug in an alternative dynabean implementation for the a DynaForm class to be backed by? > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 09, 2005 3:30 AM > To: Str

Re: URL pattern for validation

2005-02-09 Thread Craig McClanahan
On Wed, 09 Feb 2005 13:13:19 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > I think that, strictly speaking, a URL needs at least the first '/' in > the path portion. Have you tried http://www.maintainfit.com/ ? When in > doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html > FYI, there a

Re: JSP produces invalid XML?

2005-02-09 Thread Jeff Beal
I'm not familiar enough with the JSPX portion of the JSP documentation to be able to definitively say what is and is not according to the specification. My guess is that the behavior you are seeing is in accordance with the specification. The '&' is parsed normally as XML, creating a simple '

Re: URL pattern for validation

2005-02-09 Thread Jeff Beal
I think that, strictly speaking, a URL needs at least the first '/' in the path portion. Have you tried http://www.maintainfit.com/ ? When in doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html -- Jeff Daniel Watrous wrote: I am trying to use the URL validation for a form in my applic

URL pattern for validation

2005-02-09 Thread Daniel Watrous
Hello, I am trying to use the URL validation for a form in my application. It always fails and so I'm not sure that I understand what it expects to see. In my validation.xml I have the following: allowallschemes

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-09 Thread Joe Germuska
At 10:15 AM -0700 2/9/05, Daniel Watrous wrote: Some googling brought me to a solution (http://www.junlu.com/msg/50968.html). It would seem that the input attribute of an action element in the configuration file must reference the logical name of a forward. With this in place the validation w

Re: How do I prefill a form

2005-02-09 Thread Joe Germuska
At 9:08 AM -0800 2/9/05, Norris Shelton wrote: Here is the entire contents of my init method: if (form == null) { form = new DynaValidatorActionForm(); } You can never simply instantiate a DynaBean and use it; it needs to be configured to know what it's properties are. (Well, the LazyDynaBe

Re: How do I prefill a form

2005-02-09 Thread Dakota Jack
On Wed, 9 Feb 2005 09:08:02 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > Here is the entire contents of my init method: > if (form == null) { > form = new DynaValidatorActionForm(); > } > CommonTools.formDataCopy(request, form); > return mapping.findForward("searchName"); This i

RE: How do I prefill a form

2005-02-09 Thread Marco Mistroni
Hello, What does the getFormData method return? It should be a bean with exactly the same properties as your dynavalidatoraction form.. Regards marco -Original Message- From: Norris Shelton [mailto:[EMAIL PROTECTED] Sent: 09 February 2005 17:08 To: Struts Users Mailing

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-09 Thread Daniel Watrous
Some googling brought me to a solution (http://www.junlu.com/msg/50968.html). It would seem that the input attribute of an action element in the configuration file must reference the logical name of a forward. With this in place the validation works fine. DW - Original Message - From

Re: How do I prefill a form

2005-02-09 Thread Norris Shelton
Here is the entire contents of my init method: if (form == null) { form = new DynaValidatorActionForm(); } CommonTools.formDataCopy(request, form); return mapping.findForward("searchName"); If I break on the CommonTools line and put my mouse on the form, I see form is not null, but is empty.

Re: Log4j: Hibernate, Struts Logging in TC

2005-02-09 Thread Joe Germuska
At 9:49 AM -0600 2/9/05, Karan wrote: Any help is greatly appreciated. I suggest starting by specifying the "log4j.debug" system property when you launch startup. You can often find out exactly what's going wrong with that. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germusk

Re: session race / transfer issue

2005-02-09 Thread Joe Germuska
At 9:37 AM -0700 2/9/05, Wendy Smoak wrote: From: "Brown, James" <[EMAIL PROTECTED]> We have encountered a problem in which it appears (from user's description, transaction records, web application logs, and web server access logs), that user sessions are being transferred from one user to anot

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
I just realised the problem only occures when my JSP files have the ".jspx" file extension. Files whose names end in ".jsp" do not have this problem. However, my question remains... Thank you. Laurent wrote: Hi, There is something I do not understand with the way JSP outputs XML: If in my sourc

Is 'announce' mailing list's address correct?

2005-02-09 Thread Serguei Mokhov
Hi, Following the guidelines on http://struts.apache.org/mail.html, I tried subscribing on the announce list, but it barked at me as per below. The email address copy-pasted as-is from the page above, and the spelling seems fine. Thank you, -s -- Forwarded message -- Date: 9 Feb

Re: session race / transfer issue

2005-02-09 Thread Wendy Smoak
From: "Brown, James" <[EMAIL PROTECTED]> > We have encountered a problem in which it appears (from user's > description, transaction records, web application logs, and web server > access logs), that user sessions are being transferred from one user to > another. > * Netscape iPlanet 6.1 connected

Re: How do I prefill a form

2005-02-09 Thread Dakota Jack
On Wed, 9 Feb 2005 08:04:44 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > I am using a LazyValidatorForm for each area of my site. They > want information entered on a form in one part of the site to be > the default value when a form in another part of the site is > displayed. I am a

How do I prefill a form

2005-02-09 Thread Norris Shelton
I am using a LazyValidatorForm for each area of my site. They want information entered on a form in one part of the site to be the default value when a form in another part of the site is displayed. I am accumulating the information that is entered in a session bean. I then tried to copy that to

Log4j: Hibernate, Struts Logging in TC

2005-02-09 Thread Karan
Hi, I am running TC + Hib + Struts. I have log4j.jar in the classpath. The following is the log4j.properties of my web application. The files struts.html and hibernate.html are created automatically everytime TC reads log4j.properties. However, nothing is ever written into them. I have log4j.ja

session race / transfer issue

2005-02-09 Thread Brown, James
We have encountered a problem in which it appears (from user's description, transaction records, web application logs, and web server access logs), that user sessions are being transferred from one user to another. For example, two authenticated users: * user "A" with session id "1" from ip "1.2

RE: request Processor in struts-2.

2005-02-09 Thread Joe Germuska
There are thousands of lines of discussion on this in the mailing list archives, if you really want to get into it. The earliest discussions I have hanging around in my archives are May 2003, but they may go back even further. In short, having RequestProcessor be a concrete class severely ham

RE: Struts Wireless Question

2005-02-09 Thread Marco Mistroni
Hello, Not sure if I can help... but last year I wrote a Struts-based application that was communicating with a J2ME Emulator phone via XML. I was using kXML on the emulator.. the emulator was just loading a struts URL, which was getting the input stream and parse it to get the data for re

AW: Struts Wireless Question

2005-02-09 Thread Martin Kindler
Brandon, the easiest way I can think of is using http headers. You may have a look on http://wurfl.sourceforge.net. They strive to build a list of the capabilities of mobile phones. There is even a standard (I think) for manufacturers of mobile phones to give access to the capabilities of their de

Struts Wireless Question

2005-02-09 Thread Brandon Mercer
Does anyone in here have any experience converting existing struts applications to work on wireless? If so, I'd appreciate any docs/advice you could give. Also, if anyone knows of a linux emulator that I could test these apps out on as I go, I'd really appreciate it. I've already found the s

Re: request Processor in struts-2.

2005-02-09 Thread Joe Germuska
I am all for people downloading the nightly builds and acquainting themselves with the new designs in Struts (which is not Struts 2, by the way; it's Struts 1.3.0). But, I want to make sure that people understand -- this is code under rapid development; there are no API guarantees; and it may b

RE: request Processor in struts-2.

2005-02-09 Thread mohan.radhakrishnan
Hi, It is not clear to me why CoR would be so special in the new Struts architecture. After reading the proposal it seems that the 3 types of controllers seem to be more interesting. Was CoR chosen to leverage Commons Chain ? Why does a Web application need the flexibility of CoR ? I know

Re: Extending Action Mapping

2005-02-09 Thread Todd Nine
I came to a solution where I just passed a comma delimited string of properties, then when I set the ignore value, they are parsed into a list which my validate uses to check if it should validate. This approach seems similar to the validator when multiple xml files are defined. On Tue, 8 Feb 200

Error 404: FileNotFound : sortError

2005-02-09 Thread Gaet
Hello to all, I use a tage around a tag in my jsp (very simple ;o)). The problem is when I click on a link of the pager to go to the next page and then press the "Refresh button" of Internet Explorer. If I try to navigate again on my pager links, I got the following error : "Error 404: FileNot

RE: Struts validator [ client side error when using date validator]

2005-02-09 Thread Amjad I. Shahrour
Any ideas please ? Amjad -Original Message- From: Amjad I. Shahrour [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 8:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Struts validator [ client side error when using date validator] Already tried, but stil

Re: request Processor in struts-2.

2005-02-09 Thread Niall Pemberton
In Struts 1.2 you can configure different RequestProcessors for different modules, but you can' t have different RequestProcessors for the same module. Struts 1.3 (under development) is based on the Chain of Responsibilty (CoR) pattern (using Jakarta Commons Chain) - that introduces alot more flex

request Processor in struts-2.

2005-02-09 Thread Sandip Khetle
hi Thank You very much for ur help NiallI have one more question .. Can we have multiple RequestProcessor classes for a single application .I mean as we have a single ActionServlet is it mandatory to have a single RequestProcessor as well...? thanks in advance... On Wed

Re: request Processor in struts.

2005-02-09 Thread Niall Pemberton
You can configure it using the element in the struts-config.xml... http://struts.apache.org/userGuide/configuration.html#controller_config Niall - Original Message - From: "Sandip Khetle" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 09, 2005 7:42 AM Subject: request Processor i

Re: LazyDynaBean question

2005-02-09 Thread Niall Pemberton
Yes BeanValidatorForm is just a DynaBean wrapper - it can wrap either other DynaBean or POJO beans. FormBeanConfig has become the ActionForm factory (since Struts 1.2) which makes it straight forward to plug in your own mechanism by overriding the createActionForm() method. You can get it to defaul