On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
> If you care about where your action is called from,
Only so much as to have a page for the server to send back to the user -
ie: the page that they were on - not some other interim page.
So we have two concepts:
* A certain page sends reques
Michael Jouravlev wrote:
>> > On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
>> >> ... action knowing dynamically what jsp it's called from ...
>
> Despite that HTTP is stateless, the application has its state,
> which is defined by
> * state stored on the server, like session-scoped data
> *
Michael Jouravlev wrote:
> First, about input="pagename" bit. I personally believe that
>
> * "input" property should be deprecated
> * if it is not deprecated, then it should be at least renamed to
> "error", because "input" is a misleading name
>
> "input" property is not an input page, it is th
On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
Thanks Michael. I'm just picking my way through your answer ...
Ok, the bit is interesting ... and I'm going to consume
that in detail later, that's a lesser case at present.
One question on the non-include side ... ->
Michael Jouravlev wrote:
Michael Jouravlev wrote:
> On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
>
>> ... action knowing dynamically what jsp it's called from ...
>
> [1] http://www.caucho.com/resin-3.0/webapp/faq.xtp
request attributes available in target.jsp
request.getAttribute("javax.servlet.forward.request_uri
Michael Jouravlev wrote:
> On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
>
>> action knowing dynamically what jsp it's called from ...
>
> ... If you like, you can stick
> your last location into your HTML forms as a hidden field, or into all
> links as a parameter in a rewrite-URL manner
Thanks Michael. I'm just picking my way through your answer ...
Ok, the bit is interesting ... and I'm going to consume
that in detail later, that's a lesser case at present.
One question on the non-include side ... ->
Michael Jouravlev wrote:
> On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
Hi,
I have some actions that I have decoupled from their jsps, so that I can
use the corresponding html components on various pages and move them
around as the client changes their mind about requirements.
I have implemented a programmatic mechani
Hi,
I have some actions that I have decoupled from their jsps, so that I can
use the corresponding html components on various pages and move them
around as the client changes their mind about requirements.
I have implemented a programmatic mechanism for the action to know which
assets to populate a
Have you seen this one?
http://sourceforge.net/projects/jsecurity/
--
James Mitchell
On Apr 27, 2006, at 8:25 AM, Ted Husted wrote:
Sadly, multiple extension mappings is not supported by Action 1 (*).
"There can only be one".
The usual workaround is to use different "folders" to represent
On 5/3/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote:
But the prerender() is called before the tag being processed. when the
prerender() is called, the reference is still null if this is an initial
request. Tree hasn't been constructed, when the prerender() is called.
I guess maybe if I want to s
Great link, thanks!!
-ed
On 5/3/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote:
Hi
I think JMS is only valid , i.e. following specification solution.
Take a look at:
http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html
2006/5/3, Dave Newton <[EMAIL PROTECTED]>:
>
But the prerender() is called before the tag being processed. when the
prerender() is called, the reference is still null if this is an initial
request. Tree hasn't been constructed, when the prerender() is called.
I guess maybe if I want to set a initial value of a component when the page
is v
Kyle, this is not exactly what you are looking for, but maybe it can
help a little:
http://wiki.apache.org/struts/DataEntryForm
(as you might have noticed, I like to draw pictures with blocks and arrows).
Michael.
-
To unsubsc
Are you saying that you've tried to call two mappings, one with an
associated actionForm and another without, and when calling action
without associated form you get a valid reference to a form? Are you
sure? Because it does not sound right, you should get null.
On 5/3/06, Kyle W. Cartmell <[EMAI
I found this recent par on a local JUG resonated for me and had some
theme parallels to Rick's current thread ... how much do we over-code in
ignorance of the natural mechanisms available? (Sure, the uber-coders
among us can code better frameworks and deserve the fruits, but not we
lesser-lings, w
So in a Struts web application if I supply two mappings for a single
action, one that has a form and one that does not, and I call the one
with the form and then a few seconds later call the one without, the
form parameter to the execute method is not null on the second call. I
don't understand
On 5/3/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
On 5/3/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> I think I've read over most of the conventional wisdom that talks
> about how throwing aRuntimeExceptions are a bad idea, especially from
> within a catch in a finally block (at least IDEA
On Wednesday, May 3, Nathan Coast wrote:
> You need to change your javascript to
> document.getElementById('tryItForm').submit();
That does it.
Thanks for your help.
-DB
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Thank you Michael. This is extremely descriptive, and I'm going to
devote my nightly reading time to your article this evening. :)
What this tells me for right now is that this method of transferring
data isn't really something I should be using. I'm going to put my
temporary session object ma
On 5/3/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
I think I've read over most of the conventional wisdom that talks
about how throwing aRuntimeExceptions are a bad idea, especially from
within a catch in a finally block (at least IDEA is warning me about
it:) But my question is it really 'that'
On 5/3/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote:
Oh,yeah,I see, that's why you use "new" keyword in the code above.
>private HtmlOutputText dynamicText = new HtmlOutputText();
Then,I have a pretty weird idea. If you dosen't new a HtmlOutputText,will
there be a NullpointerException popped up i
I think I've read over most of the conventional wisdom that talks
about how throwing aRuntimeExceptions are a bad idea, especially from
within a catch in a finally block (at least IDEA is warning me about
it:) But my question is it really 'that' bad?
For example let's say for an "updateSomething"
On 5/3/06, Kyle W. Cartmell <[EMAIL PROTECTED]> wrote:
I did some tinkering and found that even though my setup action is
indeed associated with a form bean, and my reset method is defined and
sets my values to null, when I return to an action from a validation
failure or forwarded from another a
without struts inserts the name="tryItForm" attribute for
the form. With struts inserts the id="tryItForm"
attribute. You need to change your javascript to
document.getElementById('tryItForm').submit();
David Byron wrote:
I've inherited some struts code and I have a question about the ht
I did some tinkering and found that even though my setup action is
indeed associated with a form bean, and my reset method is defined and
sets my values to null, when I return to an action from a validation
failure or forwarded from another action, the form that I originally
used to populate th
I've inherited some struts code and I have a question about the html
that it generates. I have a feeling there's a bunch more stuff I need
to read but I'm having trouble finding it.
I've run the generated html through validator.w3.org and it gave me
errors that I don't have end tags on input elem
Hi
I think JMS is only valid , i.e. following specification solution.
Take a look at:
http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html
2006/5/3, Dave Newton <[EMAIL PROTECTED]>:
Ed Griebel wrote:
> The tricky part is that you can't create a new thread in your a
Michael,
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 3. Mai 2006 19:31
> An: Struts Users Mailing List; [EMAIL PROTECTED]
> Betreff: Re: How to POST data to an external site from an action?
>
>
> On 5/3/06, Martin Kindler <[EMAI
On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote:
Dave Newton wrote:
> Kyle W. Cartmell wrote:
>
>> I understand the concept behind this, but does anyone actually use
>> this in production code? Seems more trouble than it's worth since the
>> user could simply start multiple sessions.
>>
>
> Ho
Do you have the properties file (MessageResources.properties) deployed
in the correct directory (com/xxx/i18nMessages) somewhere on your
classpath? Either under WEB-INF/classes, or within a jar in WEB-INF/lib?
Does the properties file actually contain an entry with the key
'loginEntry.userName
Meenakshi Singh wrote:
> However, When i view the same webpage on my Pocket PC 2003 emulator, it does
> not work. I was under the impression Pocket PC 2003 runs javascript? Does
> anyone know how i can make the emulator support the javascript on the above
> webpage???
>
No, but maybe try a grou
Dave Newton wrote:
Kyle W. Cartmell wrote:
I understand the concept behind this, but does anyone actually use
this in production code? Seems more trouble than it's worth since the
user could simply start multiple sessions.
How? Isn't that browser-dependent?
And OS dependent too. On
Kyle W. Cartmell wrote:
> I understand the concept behind this, but does anyone actually use
> this in production code? Seems more trouble than it's worth since the
> user could simply start multiple sessions.
How? Isn't that browser-dependent?
And no, I wouldn't bother dealing with this use-case
Ed Griebel wrote:
> The tricky part is that you can't create a new thread in your action
> as it violates the servlet spec (as you don't know what thread will
> get subsequent requests from the same session, so you've lost the
> handle to your child thread),
Oh, yeah? Is that equally valid for a
Tarek Nabil wrote:
> Do you mean that you're doing a redirect after processing the post?
>
Who, me? If no, ignore the following.
I'm not sure I understand the question. In a nutshell: for a GET I do
whatever population/misc. stuff I need to do then return the input
forward. For a POST I valida
Ed,
We've used this:
http://wiki.apache.org/struts/StrutsPleaseWait?highlight=%28wait%29
To great effect in our struts apps. Hope it helps.
-Bill Hansley
DHTS Perioperative Services
Dev Team CoLead
10083 Hock Plaza
w) 919.668.1388
f) 919.668.5568
"Ed Griebe
I've done exactly this in another app with both a meta-tag to resubmit
and a button to do same. It would check a "status flag" somewhere (db,
session var, whatever) and when set it will jump to a "done" action.
The tricky part is that you can't create a new thread in your action
as it violates th
You do it by redefining the form relation to the action so that a form
acts as a passage between actions Action1 --> Form12 --> Action2.
Using action chaining is horrible. Look at the code and you will see
why.
On 4/30/06, David Evans <[EMAIL PROTECTED]> wrote:
below...
On Sun, 2006-04-30 at
On 5/3/06, Martin Kindler <[EMAIL PROTECTED]> wrote:
Thank you all for answering!
But I seem not to have stated my problem clearly: I know how I can POST to
an uri using Java.
My problem is that I want the user to be redirected (or forwarded) to the
page my action has posted the data to.
The ea
I understand the concept behind this, but does anyone actually use this
in production code? Seems more trouble than it's worth since the user
could simply start multiple sessions.
Michael Jouravlev wrote:
On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote:
Is there a way in struts to chain a
On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote:
Is there a way in struts to chain a series of requests (paging through a
list) and pass data through request scope?
In my scenario, I keep the a result list in session, but this prevents
me from opening two windows (same session)
and paging thro
Is there a way in struts to chain a series of requests (paging through a
list) and pass data through request scope?
In my scenario, I keep the a result list in session, but this prevents
me from opening two windows (same session)
and paging through two different lists (one in each window)
indepe
u meant using tag or what? I tried to use the
, but it doesn't work.
I think the reason is. struts is not allow use java or tag for the
paramater's value. like
the result html is
<<<
If you don't associate your setup action with a form bean, the reset
method will not be called, and whatever was in the form will be
retained.
-Original Message-
From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 2:39 AM
To: Struts Users Mailing List
Subject:
Hello all,
I have an application to edit some data stored in the database. I have
2 situations.
1. When a user clicks New or Edit Mouse, the user is brought to a form
that either displays an empty form or one that is pre-populated. This
is done with the following mapping:
Hi all,
I have the following requirement in my application(For pocket PC2003 on
windows CE 4):
Links become active on user selections. Inactive links are grayed out.
I tried this with onmouseover="this.style.color='black';"
onmouseout="this.style.color='gray';"
If I use the desktop IE, it works j
shame I can't spell :) admininistration anyone?
Nathan Coast wrote:
Hi,
I am pleased to announce the alpha release of the codeczar i18n web-app.
The purpose is to provide an intuitive gui for managing all
internationalised resources within struts web-apps. Messages are stored
in a db rathe
Hi,
I am pleased to announce the alpha release of the codeczar i18n web-app.
The purpose is to provide an intuitive gui for managing all
internationalised resources within struts web-apps. Messages are stored
in a db rather than properties files. i18n.war is released under an
Apache OS Lic
I have used div and js and it works fine. but if u dont want to use
it...maybe
just an idea. redirect the user to a page with the waiting message and the
hidden form and resubmit that..
-shanky
On 5/3/06, Julian Tillmann <[EMAIL PROTECTED]> wrote:
Hi again,
thanks for the suggestions, but I
Thank you all for answering!
But I seem not to have stated my problem clearly: I know how I can POST to
an uri using Java.
My problem is that I want the user to be redirected (or forwarded) to the
page my action has posted the data to.
The easy way to handle this is:
put a button on my page by wh
Hi,
A good amount of resource on Tiles can be found here:
http://www.lifl.fr/~dumoulin/tiles/index.html
HTH,
On 5/3/06, Manopriya Jagadeesan , Tidel Park - Chennai <[EMAIL PROTECTED]>
wrote:
Can someone give me good start for tiles? I need a step by step details
abt
using tiles with struts f
Hi,
http://www.roseindia.net/struts/struts_tiles.shtml will give you a good
start for tiles.
Also try downloading Struts Live PDF from the serverside.com
Thanks and Regards,
S.Ramkumar
Associate Consultant - Investment Banking
PrimeSourcing(tm) "Add Value Reduce Risk"
i-flex solutions limited
Can someone give me good start for tiles? I need a step by step details abt
using tiles with struts framework.
Thanks in advance
mano
Hi again,
thanks for the suggestions, but I'd rather not use JavaScript, so any advice
besides that?
ciao 4 now
Julian
> --- Ursprüngliche Nachricht ---
> Von: "Shshank Jain" <[EMAIL PROTECTED]>
> An: "Struts Users Mailing List"
> Betreff: Re: How to create a Waiting Page for long requests?
>
try using bean tags to write the specific values.
On 5/2/06, Joey Watson <[EMAIL PROTECTED]> wrote:
Hi All.
I got a problem when I was using . I used to use
before. like
Hii
One way could be to dynamically create a full page size div and place it
over the whole page on the higher z-index this will disable the access
to the underlying buttons etc. If you have select list with submission on
onchange event then you may have to disable them manually using javascript
Oh,yeah,I see, that's why you use "new" keyword in the code above.
private HtmlOutputText dynamicText = new HtmlOutputText();
Then,I have a pretty weird idea. If you dosen't new a HtmlOutputText,will
there be a NullpointerException popped up in this case?
--
Wang Zeng
58 matches
Mail list logo