It can be done in old versions of internet explorer, but other than
that, it can't be done. And in most cases if you think you need it,
you're approaching a problem the wrong way. Can you elaborate on what
you're trying to achieve?
--
"His comrades fought beside him, Van Owen and the rest...
Hi,
Can anybody tell me how can I detect the browser's close button. & which
works across all browsers.
I have a requirement wherein I have to perform some steps if the browser
window is closed.
Some code example would be appreciated.
Please help me it's urgent.
Thanks & Regards,
Meenakshi.
-
http://wiki.apache.org/struts/StrutsFileUpload
Niall
- Original Message -
From: "David Thielen" <[EMAIL PROTECTED]>
Sent: Thursday, January 19, 2006 1:32 AM
> Hi;
>
> Is the best way to do this still FormFile and anyone have a url to a
> good/correct example? (I've written tons of ente
Hi;
Is the best way to do this still FormFile and anyone have a url to a
good/correct example? (I've written tons of enterprise level java code, but
never a file upload or browse button.)
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544
my form will construct different number of combo boxes on the screen.
for example user will enter 3 and submit the form. then the coming form
will show 3 combo boxes.
how can i do that with struts. The number of combo boxes is not static
so i can not define to action form my combo boxes so can not
I think that jsp 2.1 is all part of the new j2ee stuff, and has been
brought more in line with jsf (1.2). The #{foo.bar} notion from jsf
and ${foo.bar} have been aligned with unified EL (expression
language), so all those bits of code where you need a bit of room to
move can be done using jstl and
On 1/18/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 1/18/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> In particular I mean what you wrote about, that JSTL does not replace
> > Struts html tags. That is, JSTL (1) does not generate element names
> > that reflect hierarchy of backing be
On 1/18/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
>
> Because JSP 1.2 --> 2.0 was such a big change, there was not a lot of need
> to fundamentally enhance JSP this time around. Instead, most of the effort
> was expended on unifying the expression language syntax and semantics
> between JS
On 1/18/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 1/18/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> > On 1/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> > >
> > > It might be worth noting that the WebWork integration for Struts
> Action
> > > 2.0 will introduce another expres
On 1/18/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 1/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> >
> > It might be worth noting that the WebWork integration for Struts Action
> > 2.0 will introduce another expression syntax, OGNL (?). But any
> > investment you make now in JSTL will
Servlet 2.4 lets you use EL all over the place in JSPs? That rocks me,
can someone please send me a link to some good examples of just how
out-there you can get?
-Josh
--
"His comrades fought beside him, Van Owen and the rest...
But of all the thompson gunners- Roland was the best."
On 1/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> It might be worth noting that the WebWork integration for Struts Action
> 2.0 will introduce another expression syntax, OGNL (?). But any
> investment you make now in JSTL will still be valid as JSTL should work
> in any JSP regardless of wha
> Try adding a span that spans your span :-)
>
>
>
>
> I think that should fix it for now. It looks like the symbol table is built
> after
That fixed it, thanks Gary.
> I agree that this is a bug and hopefully my diagnosis is correct. Please
> file a
> bugzilla ticket on this one.
I
Hello
On Jan 18, 2006, at 7:41 AM, Martin Ravell wrote:
Is there a simple way to put an object into a globally available
spot for
access by any current session? Something like the
session.setAttribute()
method?
I have some info that I'd like to be able to load up and then have
accessed
On 1/18/06, David Thielen <[EMAIL PROTECTED]> wrote:
> Hello;
>
> I am using:
> Tomcat 5.5 - so I assume servlet 2.4
> JSTL - 1.1.2
> Struts - 1.2.8
>
> So I assume I can just ignore the old struts-el part and just use the
> default struts and jstl jar files?
JSTL 1.0 is a separate tag library; th
Wicket had OGNL expressions in 1.0 version, but they decided to drop
it, supposedly for performance reasons. I did not follow the details.
Michael.
On 1/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> It might be worth noting that the WebWork integration for Struts Action
> 2.0 will introduce a
>From: Ryan Wynn <[EMAIL PROTECTED]>
>
> I just upgraded to struts-shale-20060117 and I think I may have found
> a bug. I am now getting an exception
>
> component identifier's first character must be a letter or an
> underscore ('_')! But it is "@"
>
>
> managed-bean-name="person">
>
>
It might be worth noting that the WebWork integration for Struts Action
2.0 will introduce another expression syntax, OGNL (?). But any
investment you make now in JSTL will still be valid as JSTL should work
in any JSP regardless of what framework you're using.
L.
Gary Feidt wrote:
Thanks fo
Hello;
I am using:
Tomcat 5.5 - so I assume servlet 2.4
JSTL - 1.1.2
Struts - 1.2.8
So I assume I can just ignore the old struts-el part and just use the
default struts and jstl jar files?
And for struts tags, do I use just the html (and maybe bean) tags?
Thanks - dave
Ps - this has all evolve
David Thielen asked:
>
> I've been looking and can't find it - there is an "EL"
> version of either Struts or JSTL from what I rememeber and I
> think the recommendation is a do want to use it. What is it,
> do I want it, and where do I get it?
EL is "Expression Language" and it'll make your J
On 1/18/06, David Thielen <[EMAIL PROTECTED]> wrote:
> I've been looking and can't find it - there is an "EL" version of either
> Struts or JSTL from what I rememeber and I think the recommendation is a do
> want to use it. What is it, do I want it, and where do I get it?
>
> Also, any rec's for b
This is great!!
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544
-Original Message-
From: Rick R [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 17, 2006 7:05 PM
To: Struts Users Mailing List
Subject: Re: Starting with struts again
David Thielen wrote:
>
Hi;
I've been looking and can't find it - there is an "EL" version of either
Struts or JSTL from what I rememeber and I think the recommendation is a do
want to use it. What is it, do I want it, and where do I get it?
Also, any rec's for books on the latest version of Struts, JSTL, and/or J
I just upgraded to struts-shale-20060117 and I think I may have found
a bug. I am now getting an exception
component identifier's first character must be a letter or an
underscore ('_')! But it is "@"
This is on the following component.
The weird thing is that I have other compon
fea jabi wrote the following on 1/18/2006 9:24 AM:
request.set("List1 ", List1 );
Is this exactly what you are trying to type? (Is there even a set method
in Request? Also note the extra space you have before the closing quote.)
You want request.setAttribute("List1", List1 );
Don't
JSTL is a great tool. I have been using it for 1 1/2 years.
It is easy to use and learn.
Here is even a better book if you want to learn the core language in around
200 pages:
http://www.amazon.com/gp/product/0126567557/qid=1137607645/sr=2-3/ref=pd_bbs
_b_2_3/102-9083545-6464912?s=books&v=glance
thanks for sugesting the article.
I did implement the way you suggested.
Thanks.
From: Rick Reumann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: cannot find bean error, when cliked on submit button
Date: Tue, 17 Jan 2006 16:08:01 -0500
Could someone please direct me to the proper way to forward a response
*after* a call is made to response.getOutputStream( )?
Thanks,
Mike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
FYI, there are some important details about this, should you decide to use
it...
* This is different than using window.open() in that the child window has
no relationship to the parent, i.e., you can't script from one to the
other in either direction. The only exception is that you can do
window.
Hi Rafael,
You can do this via scripting, but it is unfortunately AFAIK an IE-only
trick...
window.showModalDialog("http://www.google.com","","dialogWidth:500px;dialogHeight:500px";);
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzam
Hi folks. I have my app where a jsp calls another jsp.. "mother" jsp calls a
"son" jsp where the user can modify some settings..
I need the user can't use "mother" jsp till "son" jsp is closed... Something
like modal and nomodal window..
Could u know kow I can do that?.. any code?
Thanks in adva
On 1/18/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
> Hello Everybody,
>
> I've been developing Struts applications for a couple of years (the
> last using Struts 1.2.4), but have not used JSTL. Is JSTL the next
> logical progression? Is there a good place to start learning JSTL? Any
> good books,
Néstor Boscán wrote the following on 1/18/2006 10:48 AM:
set ("variables", new VariableTo [count]);
}
}
Now the first time I call the JSP it works fine. I have a refresh button
that refreshes the page. The reset method is called with no problems and
then I get the exception java.lan
Hi
>There seems to be some problems with this aproach with respect to name
>resolving.
>
>Scenario : @managed-bean-name is a backing bean X, the table that you want to
>display (see: Outer HTML template include) is from a bean Person as person on
>X,
>and has properties firstName and middleNam
On 1/18/06, Joe Germuska <[EMAIL PROTECTED]> wrote:
> >but I wonder if that's a good idea.
> >Am I missing something here? Is there a way to ensure that the
> >action is called each time with the set of parameters it was
> >supposed to receive?
>
> If your forms are request scoped, there should be
Frank W. Zammetti wrote:
Hi Frank,
[...]
But then again, this would only occur for session-scoped forms as
request-scoped forms would be created anew with each request.
Ahem.. I totally forgot about the scoping problem. Dunno why, but the
ability to define forms as being request-scope or s
I tried content type as application/msword but it did not help .Any other ways to solve this problem? thanks & regards Note: forwarded message attached.
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.--- Begin Message ---
Just a thought. I
Hi Arnaud,
On Wed, January 18, 2006 10:56 am, Arnaud Diederen said:
>
> Hello,
>
> [I've searched the web and the archives, but couldn't find anything
> useful (I'm not sure the terms of my queries were appropriate/efficient)]
>
> My problem is this (I'm using struts 1.2.7):
>
> When someone uses
StrutsTestCase tests the navigation of your web app. If you cannot
separate the GUI from the business logic, then you cannot use the mock
objects approach and would have to fall back on the Cactus approach.
Unless your business layer is better organized than your GUI layer
apparently is, you proba
but I wonder if that's a good idea.
Am I missing something here? Is there a way to ensure that the
action is called each time with the set of parameters it was
supposed to receive?
If your forms are request scoped, there should be no problem; a new
object would be created each time.
If you
Hello,
[I've searched the web and the archives, but couldn't find anything
useful (I'm not sure the terms of my queries were appropriate/efficient)]
My problem is this (I'm using struts 1.2.7):
When someone uses my webapp, some javascript sometimes triggers twice
the same action in a very s
On 1/18/06, Rivka Shisman <[EMAIL PROTECTED]> wrote:
(Rearranged a bit)
> 3. Is there a easy way to adjust struts-menu so it will take the
> menu-to-roles data from a my database instead of from menu-config?
Apparently this is possible-- the release notes for version 2.2 mention it:
http://str
Hi Rick
Thanks again for the quick replies.
Ok, basically I have a DTO called VaribleTo which has name, dataType and
value attributes. Then I define my dynamic form bean:
Ok and I'm displaying the content using the struts tags:
This works fine. I can load the variables
Gary Feidt wrote:
> Thanks for the quick responses, but is using JSTL with Struts the next
> logical step to using just Struts?
Depends.
It's a step up from using many of the Struts taglibs (logic:iterate, etc.)
> Or is Struts going in another direction in the future?
>
Depends. But be aware th
I agree, application context is a good answer to this question, and its
what I use today for most shared data of any type.
But, don't forget one simpler answer: static!
For a while, I was in the habit of having an AppConfig object that was
just a typical bean with private fields, accessors and mu
> Gary Feidt wrote the following on 1/18/2006 9:28 AM:
>
> I've been developing Struts applications for a couple of years (the
> last using Struts 1.2.4), but have not used JSTL. Is JSTL the next
> logical progression? Is there a good place to start learning JSTL? Any
> good books, or web sites?
Gary Feidt wrote the following on 1/18/2006 10:32 AM:
Thanks for the quick responses, but is using JSTL with Struts the next
logical step to using just Struts? Or is Struts going in another
direction in the future?
JSTL doesn't have much to do with Struts. It's just a standard tag
library for
Just a thought. Isn't there a specific content type for .doc
documents? That might solve your problem.I looked it up. .doc
documents are "application/msword". Try that and see what happens. I
am actually building a list of all the extensions and their content
types. Hope this helps.
On 1/18/
Thanks for the quick responses, but is using JSTL with Struts the next
logical step to using just Struts? Or is Struts going in another
direction in the future?
Gary
>>> [EMAIL PROTECTED] 1/18/2006 8:33:39 AM >>>
Gary Feidt wrote the following on 1/18/2006 9:28 AM:
> I've been developing Strut
George,
i am using it and one of my controllers have business logic in it and the
test is not working.
can i seperate the controller from the action while testing using
StrutsTestCase?
many thanks
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 18 January 2006
Néstor Boscán wrote the following on 1/18/2006 10:05 AM:
Hi Rick
If I comment the reset method I get:
java.lang.ArrayIndexOutOfBoundsException: 0 at
I'm assuming you get that when you submit your form? Some of these
things have to be broken down into baby stteps since sometimes the error
StrutsTestCase (http://strutstestcase.sourceforge.net/) works well for
well-factored struts applications. It does not work so well where
developers have not layered the application, and have shoved business
logic into the actions, controllers, and JSPs.
- George
http://www.idiacomputing.com
I am using struts action class to download a file .
Here is the action class
public ActionForward execute(ActionMapping aActionMapping, ActionForm
aActionForm,
HttpServletRequest aHttpServletRequest, HttpServletResponse
aHttpServletResponse)
throws
Hi Rick
If I comment the reset method I get:
java.lang.ArrayIndexOutOfBoundsException: 0 at
java.lang.reflect.Array.get(Native Method) at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:296)at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils
Gary Feidt wrote the following on 1/18/2006 9:28 AM:
I've been developing Struts applications for a couple of years (the
last using Struts 1.2.4), but have not used JSTL. Is JSTL the next
logical progression? Is there a good place to start learning JSTL? Any
good books, or web sites?
I lik
JSTL(JavaServer Pages Standard Tag Library) is the Library of Tags those are
simillar to the Tags you used in Struts Based JSPs like html,logic,bean
etc..
On 1/18/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
>
> Hello Everybody,
>
> I've been developing Struts applications for a couple of years (the
Néstor Boscán wrote the following on 1/18/2006 8:06 AM:
Hi Rick
I created a class that extends DynaActionForm and checked the parameters to
determine the size of the array. After I determine the size of the array I
set the attribute with a new array. I tested the code but after the reset
method
Hello Everybody,
I've been developing Struts applications for a couple of years (the
last using Struts 1.2.4), but have not used JSTL. Is JSTL the next
logical progression? Is there a good place to start learning JSTL? Any
good books, or web sites? All the standard question to get started.
Th
Initially I tried to do the same i.e placing the List1 in the form. But for
some reason the options were not displaying.
I am using DynaValidatorForm and form-bean is defined in the struts config.
In my prepare action I have
LabelValueBean lblValueBean1 = new LabelValueBean("Visa", "V");
Hi Wendy - thank you for your time :-)
I have some more questions:
1. Does the getRoles() method in the BenWebUser Class get the roles for
a specific menu from the menu-config?
2. How do you secure your web app if not by container security? only by
hiding menus? What if someone knows the url to
Dave Newton wrote:
Néstor Boscán wrote:
Is there a way to use Dates with Dynamic Action Forms using a pattern. We
would like to use all our DTOs with Dynamic Form Beans but we're having
problem with Date and Numbers were we need to apply patterns. Is there a way
to do this?
I'm not s
Hi
There seems to be some problems with this aproach with respect to name
resolving.
Scenario : @managed-bean-name is a backing bean X, the table that you want to
display (see: Outer HTML template include) is from a bean Person as person on
X, and has properties firstName and middleName and so
Néstor Boscán wrote:
> Yes I know I can use Strings but the idea is to reuse my java beans
> properties that are Date or Number and not have extra attributes for them.
>
Generally speaking it's a Best Practice to use ActionForms _only_ as a
way to get String data from the client to the server, p
Hi Dave
Thanks for the anster.
Yes I know I can use Strings but the idea is to reuse my java beans
properties that are Date or Number and not have extra attributes for them.
You said something about IIRC, how can I use this?
Regards,
Néstor
-Mensaje original-
De: Dave Newton [mailto:
Hi Rick
I created a class that extends DynaActionForm and checked the parameters to
determine the size of the array. After I determine the size of the array I
set the attribute with a new array. I tested the code but after the reset
method I get:
java.lang.IllegalArgumentException: No bean specif
Putting variables in application context should work for you. You can
get/set those values as long as the application is active.
Vidya
-Original Message-
From: Martin Ravell [mailto:[EMAIL PROTECTED]
Sent: Wednesday 18 January 2006 14:19
To: 'Struts Users Mailing List'
Subject: RE: Globa
Martin Ravell wrote:
> I don't know. Will look into this but is it possible to have a session write
> an object to this app context and have another session see the result?
>
> I had a suspicion that stuff in the application context was setup during the
> app being deployed and could not be changed
Néstor Boscán wrote:
> Is there a way to use Dates with Dynamic Action Forms using a pattern. We
> would like to use all our DTOs with Dynamic Form Beans but we're having
> problem with Date and Numbers were we need to apply patterns. Is there a way
> to do this?
>
I'm not sure which use of the
>-Original Message-
>From: ALEX HYDE [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 18 January 2006 10:47 PM
>To: Struts Users Mailing List
>Subject: Re: Globally available variables
>
>Can't you put it in the application context instead of all the sessions?
>
I don't know. Will look into th
Hi,
I am currently working on an application which uses Indexed properties.
And I am not able to update the indexed bean properties properly. I have
included some code snippets here.. The problem is when the check box on
the jsp is checked it update correctly, but when the check box is uncked
a
Hi,
I am currently working on an application which uses Indexed properties.
And I am not able to update the indexed bean properties properly. I have
included some code snippets here.. Any help on this much appreciated.
Thanks,
Vidya
Action form has a Collection of bean objects like thi
Can't you put it in the application context instead of all the sessions?
Martin Ravell <[EMAIL PROTECTED]> wrote: Is there a simple way to put an
object into a globally available spot for
access by any current session? Something like the session.setAttribute()
method?
I have some info that I'd
Is there a simple way to put an object into a globally available spot for
access by any current session? Something like the session.setAttribute()
method?
I have some info that I'd like to be able to load up and then have accessed
by any user logged into my app. I'm thinking of a cache type of dea
hi guys,
how do you test your struts application? can you test up to the action
level maybe using mocks? can you share your experience and maybe tools
you use.
i found this while surfing:
http://www.jnetdirect.com/products.php?op=conv
has anyone has any experience using it?
thanks & more p
74 matches
Mail list logo