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:
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=
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();
}
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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,
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
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
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
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
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:
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
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
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
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 '
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
56 matches
Mail list logo