logic:iterate question

2004-02-06 Thread Turner Benjamin

hello,

i have a question about the  tag. My tag iterates over an ArrayList 
which contains an amount of beans. However, in the last iteration i want to perform 
some special action. My current code looks something like this:



...

...




However, i have no idea what to fill in in the dots (should be something like 
"bar.length-1"), or whether this kind of construction is even supposed to work. As far 
as i can make up out of the docs, logic:equal is only for constant comparison.

any hints on how to do this?

ty,

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: repost: validator & retrieving data

2004-02-06 Thread Leonardo Francalanci
> in other words, your setup action will be called only when you enter
> the page for the first time

Suppose I have:

1) A listbox with values retrieved from db
2) a form with values retrieved from db that the user can change.

Now, if I don't call the setup action when there's a validation error,
I won't get data for my list box.
But if I call the setup action, it will overwrite data entered by the user
in the form with data from the db.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: repost: validator & retrieving data

2004-02-06 Thread Leonardo Francalanci
I'm sorry, I'll try to explain better.

> 
> >If I used your solution in case of a validation error my list box
> >would not be filled.
> 
> When you have a validation error it returns to the page where you 
> filled the
> list box and these values are the same that the user introduced.

The listbox and the data the user entered are 2 different things.
The listbox is a list of values the user can only choose, not change.
The data the user modified is on a form that is filled with values
from the db by the "prepare" action.

Here is a pseudo-code:

prepareaction.execute(Form form) {

mylistbox.fillfromDB();
form.fillfromDB();
}


I'd like something like:

prepareaction.execute(Form form) {


mylistbox.fillfromDB(); // as before
if (!comingFromAValidationError())
form.fillfromDB();  
else
// leave form as is, with data entered by the user
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: logic:iterate question

2004-02-06 Thread Otto, Frank
Hello Ben,

you can do this in this way:




...

...




Regards,

Frank

-Ursprüngliche Nachricht-
Von: Turner Benjamin [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 09:08
An: [EMAIL PROTECTED]
Betreff: logic:iterate question



hello,

i have a question about the  tag. My tag iterates over an ArrayList 
which contains an amount of beans. However, in the last iteration i want to perform 
some special action. My current code looks something like this:



...

...




However, i have no idea what to fill in in the dots (should be something like 
"bar.length-1"), or whether this kind of construction is even supposed to work. As far 
as i can make up out of the docs, logic:equal is only for constant comparison.

any hints on how to do this?

ty,

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: logic:iterate question

2004-02-06 Thread Otto, Frank
Sorry, I mean:

"foo.length-1" instead "bar.length-1"

-Ursprüngliche Nachricht-
Von: Otto, Frank [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 10:41
An: 'Struts Users Mailing List'
Betreff: AW: logic:iterate question


Hello Ben,

you can do this in this way:




...

...




Regards,

Frank

-Ursprüngliche Nachricht-
Von: Turner Benjamin [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 09:08
An: [EMAIL PROTECTED]
Betreff: logic:iterate question



hello,

i have a question about the  tag. My tag iterates over an ArrayList 
which contains an amount of beans. However, in the last iteration i want to perform 
some special action. My current code looks something like this:



...

...




However, i have no idea what to fill in in the dots (should be something like 
"bar.length-1"), or whether this kind of construction is even supposed to work. As far 
as i can make up out of the docs, logic:equal is only for constant comparison.

any hints on how to do this?

ty,

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: REPOST: Question on Frames within Tiles

2004-02-06 Thread Mark Lowe
IE on mac used the same dom as standard frames. Although I imagine that  
you can use getElementById for IE 6 as well as other browsers.

document.all is a legacy dom from ie4 , if you're support NS4 then you  
can use a div and load content into that and drill using  
document.layers["mydiv"]. The extra work required for ns4 will probably  
make it an undesirable activity to engage in, as you may also need to  
sniff the width and height of the window and then position where the  
display area (iframe) should be. There's also a reload issue with ns4  
where you need to reload when users change window sizes.

Most punks you see site building these days seem to think that only  
supporting IE6 is okay, even though its marred client-side development  
with its support for poorly formed html. getElementById is probably the  
best way to support mozilla, ie5+, safari to name a few. document.all  
support in ie6 i imagine is legacy support.

Cheers Mark

On 5 Feb 2004, at 22:26, Anand Patil wrote:

I have done this in Internet Explorer.
 From any frame you can get reference to any frame using
'window.top.document.all.'. once you get reference to
the iframe , I think you can get reference to the document in it and
then the from inside that document.
 Look @ microsoft's DHTML reference for IFRAME :
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/ 
iframe
.asp.

 ONCE AGAIN, I HAVE TESTED THIS ONLY WITH INTERNET EXPLORER v 6.0

Good Luck

Anand

-Original Message-
From: Mutreja, Shitij [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 1:03 PM
To: 'Struts Users Mailing List'
Subject: RE: REPOST: Question on Frames within Tiles
Thanks so much. will try it out.
However there is another issue. How do u communicate between these
iframes. For example I have a footer tile that has some control  
buttons.
When I click on one buton, I need to submit the form associated with  
one
of these iframes.

-Original Message-
From: Anand Patil [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 2:27 PM
To: Struts Users Mailing List
Subject: RE: REPOST: Question on Frames within Tiles
Have to tried using IFRAME instead of FRAMEs... IFRAME will do the  
trick

Anand

-Original Message-
From: Mutreja, Shitij [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 10:08 AM
To: 'Struts Users Mailing List'
Subject: REPOST: Question on Frames within Tiles
Any suggestions please. Am desperate at this point. Can framesets even
be loaded from tiles?
-Original Message-
From: Mutreja, Shitij [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 2:16 PM
To: '[EMAIL PROTECTED]'
Subject: Question on Frames within Tiles
Is there a good place/article/sample code  to check out, for mixing
framesets and tiles. The App that I am working on seems to need to use
both. Basically, we have to display content such that there are 2
frames, the left one showing some text, while the right one accepts  
user
input. Both these also need to be scrollable separately.

My intention is to somehow include these frames within a Body tile. The
other issue is that there is also a footer tile, which might need to
include a frameset. The reason being the the control buttons need to
always be visible(without having to scroll to view them).
Here is what i tried:

Layout used for the Body:




quiz actually has a value in the tile-defs that points to the
quizcontent.jsp shown below:








The problem with this is that the "/practicequizzes/quiz.jsp" is never
actually sourced and I just see nothing in the body tile.
Thanks,



Shitij Mutreja

Shitij Mutreja
The College Board
11911 Freedom Drive, Suite 300
Reston, VA 20190
571.262.5701 (Phone)
703.707.5596 (Fax)
[EMAIL PROTECTED]
http://www.collegeboard.com/highered/index.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Tomcat 5 + j_security_check + login-error-page

2004-02-06 Thread Ronald Rotteveel
Hello everybody,

I am porting my application from Tomcat 4.1.29 to Tomcat 5.0.18.

I have a Struts ForwardAction mapped to "/Login.do" that produces the page
with login form.
Form based authentication is set with the following fragment of the
deployment descriptor:


FORM

/Login.do
/Login.do?error=true



When the servlet is called with "?error=true" query string it displays
additional warning besides the login form.

It was working perfectly in Tomcat 4.1.29 but it works in Tomcat 5.0.18 only
in half:

When user tries to access protected page he is presented with login page. If
he enters valid login/password then he receives access to the resourse.

But if the user enters invalid login/password then instead of
form-error-page Tomcat displays the right page, but within the uri it says
"j_security_check" instead of /Login.do?error=true.


I have tried to set up AccessLogValve and RequestDumpValve and to set debug
attribute on every element in servlet.xml and my context.xml (where
applicable) in order to try to understand what is going on inside Tomcat 5,
but no luck so far - request damp just shows that 1) there was request to
protected resourse 2) Tomcat returned form-login-page 3) user sent it back
with invalid login/password 4) Tomcat returned to j_security_check.

I had expected that there should be output from Realm between 3) and 4) but
there is not.

So, at the moment the conclusion is that the code that worked perfectly in
Tomcat 4.1.29 doesn 't work in Tomcat 5.0.18 and i don 't know why but i
would
be delighted if somebody will help me to find this out :)

Thanks in advance!


Cheers,

Ronald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: repost: validator & retrieving data

2004-02-06 Thread Alvaro Martinez
Well, when I said: "these values are the same that the user introduced" I
would want to say: "the values selected by the user in the listbox" .And the
values introduced in fields, checkbox, ... stay too
When an error occur, it doesnt return to preprare action. It just back to
the page selected in the tag "input" (input="/prepare.jsp" )
You dont need to write code like this...

if (!comingFromAValidationError())
form.fillfromDB();
else
// leave form as is, with data entered by the user
}

When an error occurs it just redirects the request with the values
introduced by the user to the page "prepare.jsp".
Please, try it. It's very easy and simple. If you have any problem or you
dont understand anything I´ll help you
Alvaro

- Original Message - 
From: "Leonardo Francalanci" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 9:03 AM
Subject: R: repost: validator & retrieving data


I'm sorry, I'll try to explain better.

>
> >If I used your solution in case of a validation error my list box
> >would not be filled.
>
> When you have a validation error it returns to the page where you
> filled the
> list box and these values are the same that the user introduced.

The listbox and the data the user entered are 2 different things.
The listbox is a list of values the user can only choose, not change.
The data the user modified is on a form that is filled with values
from the db by the "prepare" action.

Here is a pseudo-code:

prepareaction.execute(Form form) {

mylistbox.fillfromDB();
form.fillfromDB();
}


I'd like something like:

prepareaction.execute(Form form) {


mylistbox.fillfromDB(); // as before
if (!comingFromAValidationError())
form.fillfromDB();
else
// leave form as is, with data entered by the user
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Friday] Java in Aus

2004-02-06 Thread Adam Hardy
Since it's Friday, I thought I'd ask you Aussie java guys what the deal 
is on this strange points system Australia has for its working visas.

I thought for a few years I'd never meet the target, whenever I thought 
about moving to down under. I'm too old, too British, not enough 
relatives living there etc etc.

But then I found the Australian visa site and answered several pages of 
questions, and then the last one was "Do you have any experience with 
Java Security?" - so I clicked the box and with that, it seems I'm 
eligible for a visa.

I tried it all again, and without that Java Security experience, your 
lovely government wouldn't want me.

What's that all about?

Adam

On 02/05/2004 03:09 AM [EMAIL PROTECTED] wrote:
Okay, OT is okay as far as it goes but lets not turn the struts mailing 
list into a forum for the great Sydney/Melbourne rivalry. Please.

Anyway, everyone knows that Canberra is best. :-)

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






ajay <[EMAIL PROTECTED]>
05/02/2004 12:53 PM
Please respond to "Struts Users Mailing List"
 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:RE:[OT]Looking for junior Java/Struts developers

hi!

thanks for the suggestion. that is pretty much what i had decided to do ie 

write something and try and market it.
however i'd beg to differ on the weather.
i dont think cold, grey, wet, clammy, uncertain weather qualifies as good 
weather esp compared to the sunny predictable weather down here.

Quoting [EMAIL PROTECTED]:


ajay,

The best way to demonstrate you skills is to look for an idea and write
something and sell it, you end up as your own boss and you gain the
experience.
You seem to think the no-experience vs employeers want experience issue 
is

new, but it was the same 15 years or so ago when I started out. You can
sit around and frett about it or just get on with it yourself.
If you want to work for someone else, that is fine, you just need to
work hard and you'll do fine, there are so many lazy programmers out in
the market these days that there is a shortage of dedicated professional
graduates.
Thirdly, move down to Melbourne, the weather is nicer down here:)

Chris

On Thu, 5 Feb 2004, ajay wrote:


when: 2004
where: sydney
citizenship: australian
the problem though is that most people here thesedays want some level 
of

experience before they are willing to hire you, the trend is a lot 
towards

contract/temp jobs.
the problem ofcourse is where to get that elusive experience, and uni
project

experience doesn't count for anything.
so you have this cycle where you are looking to get some experience 
and

most

companies want only experienced personnel.
and when it comes to tax i believe australia has one of the world's 
highest

tax

rate, and sydney is way too pricey.

but what i would like to know is whats the scenario outside, like int 
he

states, singapore, UK etc. is there a good demand for qualified but
inexperienced IT graduates. would a move abroad be good?
Quoting [EMAIL PROTECTED]:


Jiin-Her hits the nail on the head
I certainly wouldn't want to make 50K while living in Boston or New
York

City...
Here's the cost of living for Herndon VA
http://realestate.yahoo.com/re/neighborhood/search.html?sa=&c=Herndon&s=VA&z=

Cost of living (taxes, expenses, insurance, etc...) can change from 
town

to town even. As the add says you need to move to Herndon VA to live 
on

that 50K. ;)

-R^3

On Wed, 4 Feb 2004, Jiin-Her Lu wrote:


Depends on when, where, and what is your citizenship. It can be up 
to

$

85000+  in US.

Jiin-Her Lu
(816) 926-2145


-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
ajay
---
Who Dares Wins
-
This mail sent through IMP: www-mail.usyd.edu.au
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
--

Request.getParameter()

2004-02-06 Thread Kamal Gupta
Can I set the request to null once I have got the value i required.

I have a parameter which has to be set to null in the request object once it
is been used as i dont want that request to go to the next page

Can anyone help

Regards

Kamal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: repost: validator & retrieving data

2004-02-06 Thread Leonardo Francalanci
> When an error occur, it doesnt return to preprare action. It just back to
> the page selected in the tag "input" (input="/prepare.jsp" )
> You dont need to write code like this...
>
> if (!comingFromAValidationError())
> form.fillfromDB();
> else
> // leave form as is, with data entered by the user
> }
>
> When an error occurs it just redirects the request with the values
> introduced by the user to the page "prepare.jsp".

If I don't call

mylistbox.fillfromDB();

My list box will be empty! That's way I need to go to the prepare action!
I know that values the user entered would be already in the request and
ready
for the jsp page, but the listbox has to be loaded from the db.
Think about the list as a list of States in USA. It is something I
have to retrieve each time I go to the jsp page (unless I put it in the
session,
of course).

That's way I need

mylistbox.fillfromDB(); // this should always be called before going to the
jsp

if (!comingFromAValidationError())
form.fillfromDB();
else
do nothing; // leave form as is, with data entered by the user


Did I make myself clearer?

thank you for your answers (and for your patience!)





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: repost: validator & retrieving data

2004-02-06 Thread Alvaro Martinez
Ok,
I understand you...
Let me I think it...

- Original Message - 
From: "Leonardo Francalanci" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 10:21 AM
Subject: R: repost: validator & retrieving data


> When an error occur, it doesnt return to preprare action. It just back to
> the page selected in the tag "input" (input="/prepare.jsp" )
> You dont need to write code like this...
>
> if (!comingFromAValidationError())
> form.fillfromDB();
> else
> // leave form as is, with data entered by the user
> }
>
> When an error occurs it just redirects the request with the values
> introduced by the user to the page "prepare.jsp".

If I don't call

mylistbox.fillfromDB();

My list box will be empty! That's way I need to go to the prepare action!
I know that values the user entered would be already in the request and
ready
for the jsp page, but the listbox has to be loaded from the db.
Think about the list as a list of States in USA. It is something I
have to retrieve each time I go to the jsp page (unless I put it in the
session,
of course).

That's way I need

mylistbox.fillfromDB(); // this should always be called before going to the
jsp

if (!comingFromAValidationError())
form.fillfromDB();
else
do nothing; // leave form as is, with data entered by the user


Did I make myself clearer?

thank you for your answers (and for your patience!)





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: repost: validator & retrieving data

2004-02-06 Thread Leonardo Francalanci
> Ok,
> I understand you...
> Let me I think it...

I found 2 solutions so far:

1) hidden field in the form
(extending a Form that has an hidden field and extending an action that has
a method
like isComingFromAValidatorError() that looks for the value of the hidden
par)

2) If the request is a GET then it's the first time, otherwise we are coming
from an validator error (ugly...)

3) Anant's solution (3  elements and 2 actions)



But I don't like them :(

Any other ideas?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: repost: validator & retrieving data

2004-02-06 Thread Alvaro Martinez
You could use the mapping class and then compare what is the action tag
execute.
Some like this:

if (mapping.getPath().compareTo("/prepare")==0)
form.fillfromDB();
else
do nothing; // leave form as is, with data entered by the user

Dou you like this...?

- Original Message - 
From: "Leonardo Francalanci" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 10:44 AM
Subject: R: repost: validator & retrieving data


> Ok,
> I understand you...
> Let me I think it...

I found 2 solutions so far:

1) hidden field in the form
(extending a Form that has an hidden field and extending an action that has
a method
like isComingFromAValidatorError() that looks for the value of the hidden
par)

2) If the request is a GET then it's the first time, otherwise we are coming
from an validator error (ugly...)

3) Anant's solution (3  elements and 2 actions)



But I don't like them :(

Any other ideas?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts-user@jakarta.apache.org

2004-02-06 Thread Mlinar, Mario
My Action put´s a JavaBean into my request. Depending on the instance Type
of my Bean I choose different Parameter names for my Bean.
 
Code snippet Action:
if (object instanceof A) {
request.setAttribute("y", object);
}  else if(object instanceof B) {
request.setAttribute("x", object);
}
 
 
 
Code snippet JSP:



 




Now every time a Bean of type A was put in the request I get the
message:org.apache.jasper.JasperException: Cannot find bean x in scope
request
Now every time a Bean of type B was put in the request I get the
message:org.apache.jasper.JasperException: Cannot find bean y in scope
request
 
Using only one   works perfect 
Where is the problem ???
 
Thanks for any help in advance.
 
by the way: using struts 1.1 with Tomcat 4.1.
 


RE: logic:iterate question

2004-02-06 Thread Turner Benjamin
hi otto,

that solution didnt work - it wouldn't recognise bar as a variable in the <%= %>.

this solution does work for me:


...

...

...

...


the value parameter must be a string, so i used the String.valueOf method.

however this isnt very clean - are there better solutions?

Ben

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: vrijdag, februari 06, 2004 10:46
To: 'Struts Users Mailing List'
Subject: AW: logic:iterate question


Sorry, I mean:

"foo.length-1" instead "bar.length-1"

-Ursprüngliche Nachricht-
Von: Otto, Frank [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 10:41
An: 'Struts Users Mailing List'
Betreff: AW: logic:iterate question


Hello Ben,

you can do this in this way:




...

...




Regards,

Frank

-Ursprüngliche Nachricht-
Von: Turner Benjamin [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 09:08
An: [EMAIL PROTECTED]
Betreff: logic:iterate question



hello,

i have a question about the  tag. My tag iterates over an ArrayList 
which contains an amount of beans. However, in the last iteration i want to perform 
some special action. My current code looks something like this:



...

...




However, i have no idea what to fill in in the dots (should be something like 
"bar.length-1"), or whether this kind of construction is even supposed to work. As far 
as i can make up out of the docs, logic:equal is only for constant comparison.

any hints on how to do this?

ty,

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: repost: validator & retrieving data

2004-02-06 Thread anant.parnami

You don't need 2 actions only 3 mappings yes
But action would only be 1 Single Class


-Original Message-
From: Leonardo Francalanci [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 3:15 PM
To: Struts Users Mailing List
Subject: R: repost: validator & retrieving data


> Ok,
> I understand you...
> Let me I think it...

I found 2 solutions so far:

1) hidden field in the form
(extending a Form that has an hidden field and extending an action that
has a method like isComingFromAValidatorError() that looks for the value
of the hidden
par)

2) If the request is a GET then it's the first time, otherwise we are
coming from an validator error (ugly...)

3) Anant's solution (3  elements and 2 actions)



But I don't like them :(

Any other ideas?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Friday] Java in Aus

2004-02-06 Thread Mark Lowe
Did you put down that you like to play rugby :o)

On 6 Feb 2004, at 11:06, Adam Hardy wrote:

Since it's Friday, I thought I'd ask you Aussie java guys what the  
deal is on this strange points system Australia has for its working  
visas.

I thought for a few years I'd never meet the target, whenever I  
thought about moving to down under. I'm too old, too British, not  
enough relatives living there etc etc.

But then I found the Australian visa site and answered several pages  
of questions, and then the last one was "Do you have any experience  
with Java Security?" - so I clicked the box and with that, it seems  
I'm eligible for a visa.

I tried it all again, and without that Java Security experience, your  
lovely government wouldn't want me.

What's that all about?

Adam

On 02/05/2004 03:09 AM [EMAIL PROTECTED] wrote:
Okay, OT is okay as far as it goes but lets not turn the struts  
mailing list into a forum for the great Sydney/Melbourne rivalry.  
Please.
Anyway, everyone knows that Canberra is best. :-)
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779
-- 
--
This is a PRIVATE message. If you are not the intended recipient,  
please delete without copying and kindly advise us by e-mail of the  
mistake in delivery. NOTE: Regardless of content, this e-mail shall  
not operate to bind CSC to any order or other contract unless  
pursuant to explicit written agreement or government initiative  
expressly permitting the use of e-mail for such purpose.
-- 
--
ajay <[EMAIL PROTECTED]>
05/02/2004 12:53 PM
Please respond to "Struts Users Mailing List"
 To: Struts Users Mailing List  
<[EMAIL PROTECTED]>
cc: Subject:RE:[OT]Looking for junior  
Java/Struts developers
hi!
thanks for the suggestion. that is pretty much what i had decided to  
do ie write something and try and market it.
however i'd beg to differ on the weather.
i dont think cold, grey, wet, clammy, uncertain weather qualifies as  
good weather esp compared to the sunny predictable weather down here.
Quoting [EMAIL PROTECTED]:
ajay,

The best way to demonstrate you skills is to look for an idea and  
write
something and sell it, you end up as your own boss and you gain the
experience.

You seem to think the no-experience vs employeers want experience  
issue
is
new, but it was the same 15 years or so ago when I started out. You  
can
sit around and frett about it or just get on with it yourself.

If you want to work for someone else, that is fine, you just need to
work hard and you'll do fine, there are so many lazy programmers out  
in
the market these days that there is a shortage of dedicated  
professional
graduates.

Thirdly, move down to Melbourne, the weather is nicer down here:)

Chris

On Thu, 5 Feb 2004, ajay wrote:


when: 2004
where: sydney
citizenship: australian
the problem though is that most people here thesedays want some  
level
of
experience before they are willing to hire you, the trend is a lot
towards
contract/temp jobs.
the problem ofcourse is where to get that elusive experience, and  
uni
project

experience doesn't count for anything.
so you have this cycle where you are looking to get some experience
and
most

companies want only experienced personnel.
and when it comes to tax i believe australia has one of the world's
highest
tax

rate, and sydney is way too pricey.

but what i would like to know is whats the scenario outside, like  
int
he
states, singapore, UK etc. is there a good demand for qualified but
inexperienced IT graduates. would a move abroad be good?
Quoting [EMAIL PROTECTED]:


Jiin-Her hits the nail on the head
I certainly wouldn't want to make 50K while living in Boston or New
York

City...
Here's the cost of living for Herndon VA
http://realestate.yahoo.com/re/neighborhood/search.html? 
sa=&c=Herndon&s=VA&z=

Cost of living (taxes, expenses, insurance, etc...) can change from
town
to town even. As the add says you need to move to Herndon VA to  
live
on
that 50K. ;)

-R^3

On Wed, 4 Feb 2004, Jiin-Her Lu wrote:


Depends on when, where, and what is your citizenship. It can be up
to
$

85000+  in US.

Jiin-Her Lu
(816) 926-2145


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:  
[EMAIL PROTECTED]




--
ajay
---
Who Dares Wins
-
This mail sent through IMP: www-mail.usyd.edu.au
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional

nested iterators and writing back to the form

2004-02-06 Thread Michael Wiles

I have a nested list...

something like:


..
..
..

..

..



How do I map the html:text tag back to the form?

Without anything extra added to the form, it doesn't work.




Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nested iterators and writing back to the form

2004-02-06 Thread Claire Wall
if you use the nested tags rather than the logic and html tags then this
should solve your problem.


- Original Message -
From: "Michael Wiles" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 12:32 PM
Subject: nested iterators and writing back to the form


>
> I have a nested list...
>
> something like:
>
>  id="element">
> ..
> ..
> ..
>  id="subElement">
> ..
> 
> ..
> 
> 
>
> How do I map the html:text tag back to the form?
>
> Without anything extra added to the form, it doesn't work.
>
>
>
>
> Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
> If you don't have web access, the disclaimer can be mailed to you on
request.
> Disclaimer requests to be sent to [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request.getParameter()

2004-02-06 Thread Adam Hardy
On 02/06/2004 11:11 AM Kamal Gupta wrote:
Can I set the request to null once I have got the value i required.

I have a parameter which has to be set to null in the request object once it
is been used as i dont want that request to go to the next page
No, you're not allowed to edit the request parameters. You can set and 
remove request attributes though.

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: logic:iterate question

2004-02-06 Thread Slattery, Tim - BLS
> i have a question about the  tag. My tag 
> iterates over an ArrayList which contains an amount of beans. 
> However, in the last iteration i want to perform some special 
> action. My current code looks something like this:
> 
> 
> 
> ...
> 
> ...
> 
> 
> 

This is something that JSTL does *extremely* well:


   
   
 


--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nested iterators and writing back to the form

2004-02-06 Thread Mark Lowe
The second list just needs the have the name of the object that 
contains the list.

At the moment you've got

orders.getOrders()

which i assume is wrong. If each order contains an iterate-able object 
then that's what you want to reference in the nested one.

i think you want



Notice the bean that is cast via the id attibute is what is referenced, 
and then the iterate-able  structure in the property attribute.

orders[0].getOrderDetails();

Cheers Mark

On 6 Feb 2004, at 13:32, Michael Wiles wrote:

I have a nested list...

something like:


..
..
..

..

..


How do I map the html:text tag back to the form?

Without anything extra added to the form, it doesn't work.



Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on 
request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logic:iterate question

2004-02-06 Thread James Mitchell
Oops, did you mean to do this?

> 
>
^^^
>
>  
> 


shouldn't that be?
>
 ^^ ^


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message - 
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 9:29 AM
Subject: RE: logic:iterate question


> > i have a question about the  tag. My tag 
> > iterates over an ArrayList which contains an amount of beans. 
> > However, in the last iteration i want to perform some special 
> > action. My current code looks something like this:
> > 
> > 
> > 
> > ...
> > 
> > ...
> > 
> > 
> > 
> 
> This is something that JSTL does *extremely* well:
> 
> 
>
>
>  
> 
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logic:iterate question

2004-02-06 Thread Slattery, Tim - BLS
> shouldn't that be?
> >

Yes, it sure should. And the first line should be:

 

So the whole thing should look like this:


   
   
 

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enable the log for RequestProcessor and other classes

2004-02-06 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi,

 

Is there a configuration variable (web.xml / struts-config.xml / other file) for 
enabling the log for the RequestProcessor class (and the like)?

 

Regards,

Freddy.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 


Back to the originating screen...

2004-02-06 Thread Jesse Alexander (KAID 11)
Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Back to the originating screen...

2004-02-06 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi,

IMHO, this is a difficult problem to solve (100%, that is). Including the redo-URL on 
the language link is the most practical of those options, if you are able to generate 
"redo-URLs" that do not "redo" the last action itself but only "recompose" the current 
view (not that simple, I know). Remember to be careful with issues such as redo-ing 
posts that, for instance, involve persistency-related tasks. Say: "saveNewProduct".

Hth,
Freddy.

-Mensaje original-
De: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 06 de febrero de 2004 16:07
Para: 'Mailing List [EMAIL PROTECTED]'
Asunto: Back to the originating screen...

Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nested iterators and writing back to the form

2004-02-06 Thread Michael Wiles

Even with the id's set correctly it doesn't write the value you enter
into the html text box back onto the form.

On Fri, 2004-02-06 at 16:31, Mark Lowe wrote:
> The second list just needs the have the name of the object that 
> contains the list.
> 
> At the moment you've got
> 
> orders.getOrders()
> 
> which i assume is wrong. If each order contains an iterate-able object 
> then that's what you want to reference in the nested one.
> 
> i think you want
> 
> 
>   
> 
> Notice the bean that is cast via the id attibute is what is referenced, 
> and then the iterate-able  structure in the property attribute.
> 
> orders[0].getOrderDetails();
> 
> Cheers Mark
> 
> On 6 Feb 2004, at 13:32, Michael Wiles wrote:
> 
> >
> > I have a nested list...
> >
> > something like:
> >
> >  > id="element">
> > ..
> > ..
> > ..
> >  > id="subElement">
> > ..
> > 
> > ..
> > 
> > 
> >
> > How do I map the html:text tag back to the form?
> >
> > Without anything extra added to the form, it doesn't work.
> >
> >
> >
> >
> > Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
> > If you don't have web access, the disclaimer can be mailed to you on 
> > request.
> > Disclaimer requests to be sent to [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
> If you don't have web access, the disclaimer can be mailed to you on request.
> Disclaimer requests to be sent to [EMAIL PROTECTED]
-- 
Michael Wiles <[EMAIL PROTECTED]>
Pick 'n Pay IS - 1665


Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Back to the originating screen...

2004-02-06 Thread Jesse Alexander (KAID 11)
difficult indeed, that's why I wanted to hear what other's think.
Fortunately, at the moment, this application is read-only...

But I want something that works also in a read/write app. Thanks for
reminding

Alexander

-Original Message-
From: Villalba Arias, Fredy [BILBOMATICA] [mailto:[EMAIL PROTECTED]
Sent: Freitag, 6. Februar 2004 16:26
To: Struts Users Mailing List
Subject: RE: Back to the originating screen...


Hi,

IMHO, this is a difficult problem to solve (100%, that is). Including the redo-URL on 
the language link is the most practical of those options, if you are able to generate 
"redo-URLs" that do not "redo" the last action itself but only "recompose" the current 
view (not that simple, I know). Remember to be careful with issues such as redo-ing 
posts that, for instance, involve persistency-related tasks. Say: "saveNewProduct".

Hth,
Freddy.

-Mensaje original-
De: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 06 de febrero de 2004 16:07
Para: 'Mailing List [EMAIL PROTECTED]'
Asunto: Back to the originating screen...

Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Back to the originating screen...

2004-02-06 Thread shirishchandra.sakhare
Hi,
We have implemented similar concept.And you are right.You have to be careful not to 
redo the last posts.

Luckily for us, the desin we had solved the problem.We have a concept of 
OpenAction(Actions that prepare data for view) and Save action(Post actions,actions 
that update DB).So in AbstractOpenAction, the called URL is saved in session under a 
specific key(Open actions always use GET.So the saved URL can always recreate the 
request if you forward to it :-))) and when the user changes the language, we change 
the language in session and just forward to last action called.And as the last action 
called will be always be the OpenAction which created the last screen seen by user.So 
chance of a post being done again.

Some users have pointed out that having such Reusable small actions lends itself to 
action chaining(e.g. To complete a user Preference save request, you will first call 
SaveUserPrefrrenceAction which will then forward to UserdetaislOpenAction,assuming you 
are showing user details after he saves them) And qwe had a long discussion on this 
forum about action chainning.

So you may want to review all of this before you take this route.

HTH.
regards,
Shirish

-Original Message-
From: Villalba Arias, Fredy [BILBOMATICA] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 4:26 PM
To: Struts Users Mailing List
Subject: RE: Back to the originating screen...


Hi,

IMHO, this is a difficult problem to solve (100%, that is). Including the redo-URL on 
the language link is the most practical of those options, if you are able to generate 
"redo-URLs" that do not "redo" the last action itself but only "recompose" the current 
view (not that simple, I know). Remember to be careful with issues such as redo-ing 
posts that, for instance, involve persistency-related tasks. Say: "saveNewProduct".

Hth,
Freddy.

-Mensaje original-
De: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 06 de febrero de 2004 16:07
Para: 'Mailing List [EMAIL PROTECTED]'
Asunto: Back to the originating screen...

Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Back to the originating screen...

2004-02-06 Thread Jesse Alexander (KAID 11)
Sounds good.
I normally try to follow a similar design... (open- and save-actions...)

thanks for the hint
Alexander

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Freitag, 6. Februar 2004 16:40
To: [EMAIL PROTECTED]
Subject: RE: Back to the originating screen...


Hi,
We have implemented similar concept.And you are right.You have to be careful not to 
redo the last posts.

Luckily for us, the desin we had solved the problem.We have a concept of 
OpenAction(Actions that prepare data for view) and Save action(Post actions,actions 
that update DB).So in AbstractOpenAction, the called URL is saved in session under a 
specific key(Open actions always use GET.So the saved URL can always recreate the 
request if you forward to it :-))) and when the user changes the language, we change 
the language in session and just forward to last action called.And as the last action 
called will be always be the OpenAction which created the last screen seen by user.So 
chance of a post being done again.

Some users have pointed out that having such Reusable small actions lends itself to 
action chaining(e.g. To complete a user Preference save request, you will first call 
SaveUserPrefrrenceAction which will then forward to UserdetaislOpenAction,assuming you 
are showing user details after he saves them) And qwe had a long discussion on this 
forum about action chainning.

So you may want to review all of this before you take this route.

HTH.
regards,
Shirish

-Original Message-
From: Villalba Arias, Fredy [BILBOMATICA] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 4:26 PM
To: Struts Users Mailing List
Subject: RE: Back to the originating screen...


Hi,

IMHO, this is a difficult problem to solve (100%, that is). Including the redo-URL on 
the language link is the most practical of those options, if you are able to generate 
"redo-URLs" that do not "redo" the last action itself but only "recompose" the current 
view (not that simple, I know). Remember to be careful with issues such as redo-ing 
posts that, for instance, involve persistency-related tasks. Say: "saveNewProduct".

Hth,
Freddy.

-Mensaje original-
De: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 06 de febrero de 2004 16:07
Para: 'Mailing List [EMAIL PROTECTED]'
Asunto: Back to the originating screen...

Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: img tag with action as src

2004-02-06 Thread Greg Blomquist

"Michael McGrady" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> At 10:13 AM 2/3/2004, Greg Blomquist wrote:
> >I apologize in advance if this question has already been answered
somewhere.
> >Looks like basebeans is down so I can't search the struts-user archives.
> >
> >I'm trying to do the following:
> >
> >
> >The only problem is that it doesn't like the relative path.
>
>
> Your question indicates some misunderstanding is going on.  The "path" is
> irrelevant, since the controller will take the action no matter what.

And your response indicates some inability to read a message board.  At
1:48PM on 2/3/2004, I posted a message in this thread with ""
appended to the subject.  Of course, your post occured just 10 minutes after
mine did.  So, perhaps cyberspace time delay could account for you having
not seen my post.

With the help of Ben Anderson, I was able to figure out that I should be
using the "path" attribute of the  tag instead of the "src"
attribute.  At least, this is what fixed my problem.  So, my final
assumption is that  or even  will not work.  Instead, one my use .  I'm not sure if this has to do with the
fact that in using the "src" attribute, you're telling the container (or
browser, or controller) that it's an exisiting _filesystem_ path, vs. some
virtual path.  All I know if that "src" didn't work, and "path" did work.

Thanks for the post anyhow.

-
 Greg




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Back to the originating screen...

2004-02-06 Thread Joe Germuska
I would suggest intercepting the request processing cycle early on 
and looking for the evidence that the language has changed and adjust 
the user's session to the requested language before your other 
actions even execute.

You can extend org.apache.struts.action.RequestProcessor and override 
"processPreprocess", for example, to look for a request parameter 
name that you only use for this purpose, and if it finds it, set the 
language up.

http://jakarta.apache.org/struts/api/org/apache/struts/action/RequestProcessor.html

You specify your alternate processor class in the struts-config 
 element:
http://jakarta.apache.org/struts/userGuide/configuration.html#controller_config

There are issues with extending RequestProcessor if you want to use 
Tiles, for example, because RequestProcessor is a class, not an 
interface, and Tiles already extends RequestProcessor.  In the 
simplest case, just extend TilesRequestProcessor instead.

If you really want flexibility, check out struts-chain, a project to 
make the request processing flow completely composable.

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-chain/

Note that struts-chain is still under development and may not do 
everything you expect, although it's getting close.

Joe

At 4:06 PM +0100 2/6/04, Jesse Alexander (KAID 11) wrote:
Hi
I need a hint on how to return always to the originating action preserving
all input-parameters to that originating action...
problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately presented
 the same screen again in the new UI-language.
So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order
to be able to redo the last action before the change of language?
The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.
What do you do in such a case?
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enable the log for RequestProcessor and other classes

2004-02-06 Thread Joe Germuska
Is there a configuration variable (web.xml / struts-config.xml / 
other file) for enabling the log for the RequestProcessor class (and 
the like)?
Struts uses the commons-logging API.

If Log4J is on the classpath, then you don't need any additional 
configuration besides the Log4J config files.  Otherwise, you may 
need to place a "commons-logging.properties" file on your classpath 
with config details.

http://jakarta.apache.org/commons/logging.html
http://jakarta.apache.org/commons/logging/userguide.html
http://logging.apache.org/log4j/docs/manual.html
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: nested iterators and writing back to the form

2004-02-06 Thread Mark Lowe
the method names and the scoped id name need to be the same i think, 
Its a quirk.

On 6 Feb 2004, at 16:38, Michael Wiles wrote:

Even with the id's set correctly it doesn't write the value you enter
into the html text box back onto the form.
On Fri, 2004-02-06 at 16:31, Mark Lowe wrote:
The second list just needs the have the name of the object that
contains the list.
At the moment you've got

orders.getOrders()

which i assume is wrong. If each order contains an iterate-able object
then that's what you want to reference in the nested one.
i think you want


	

Notice the bean that is cast via the id attibute is what is 
referenced,
and then the iterate-able  structure in the property attribute.

orders[0].getOrderDetails();

Cheers Mark

On 6 Feb 2004, at 13:32, Michael Wiles wrote:

I have a nested list...

something like:


..
..
..

..

..


How do I map the html:text tag back to the form?

Without anything extra added to the form, it doesn't work.



Read our disclaimer at: 
http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on
request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on 
request.
Disclaimer requests to be sent to [EMAIL PROTECTED]
--
Michael Wiles <[EMAIL PROTECTED]>
Pick 'n Pay IS - 1665
Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on 
request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Back to the originating screen...

2004-02-06 Thread Guillermo Meyer
The action that changes the Language should target in a hidden frame and
the forwarding JSP to be rendered in this hidden frame could reload the
frames that need to be changed by language change:


.


When you submit this form, the action is executed, the language changed
and forwards to the JSP that is rendered in the HiddenFrame:

This JSP could have something like this:





Saludos.
Guillermo.


-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Viernes, 06 de Febrero de 2004 12:07 p.m.
To: 'Mailing List [EMAIL PROTECTED]'
Subject: Back to the originating screen...


Hi
I need a hint on how to return always to the originating action
preserving all input-parameters to that originating action...

problem: From any screen in my application the user is allowed to
 change the language of the UI. He should be immediately
presented
 the same screen again in the new UI-language.

So far I think I create an action (and a global forward) to change the
UI-language. That's the easy part. But what strategy to use in order to
be able to redo the last action before the change of language?

The possibilities I thought of are:
- on the language link, include always the "redo"-URL
- on each primary action (actions called from the UI, opposed to
secondary
  actions called from primary actions...) I store the "redo"-URL in the
  session.

What do you do in such a case? 

thanks in advance
Alexander
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tiles & Dynamic Menu: Design Question

2004-02-06 Thread ZCurtis
Struts v1.1

We are currently using Struts and Tiles and have a dynamic navigation menu 
with 2-3 nested levels for each top-level menu item (over 100 total menu 
items). Currently, we are generating links with the action mapping and 
then appending parameters to determine what level in the menu hierarchy 
the user is requesting. The parameters are passed in the URL which are 
then read in scriptlet code in the navigation menu tile to display the 
appropriate menu item. Action mappings are pointed to Tiles definitions.

The problems with this approach inlcude:
1) All URLs are defined in the ApplicationResources.properties file (e.g., 
menu.itemA=mapping.do?top=topMenuItem&sub1=subMenu1&sub2=subMenu2).
2) 3-4 parameters passed in the URL for every request to determine 
navigational level.
3) A great deal of scriptlet code in the navigation menu tile.

I have searched the archive list, Google, and looked at Struts Menu at 
sf.net and nothing seems to jump out at me. This is my first J2EE project 
and first Struts/Tiles project, so I may have missed (not comprehended) 
some things when searching.

In my relative inexperience, it would seem that the menu items would be 
better defined in XML (instead of ApplicationResources), although the link 
label would need to still be in ApplicationResources, perhaps just a 
single key could be passed in the URL, and replace scriptlet code with a 
tag (custom?). Can any one offer me some insights or point me to some 
resources that help me?

Thanks much!

Zach Curtis
TSYS Technology Center
[EMAIL PROTECTED]
208-424-2145


-
The information contained in this communication (including any attachments hereto) is 
confidential and is intended solely for the personal and confidential use of the 
individual or entity to whom it is addressed.  The information may also constitute a 
legally privileged confidential communication.  If the reader of this message is not 
the intended recipient or an agent responsible for delivering it to the intended 
recipient, you are hereby notified that you have received this communication in error 
and that any review, dissemination, copying, or unauthorized use of this information, 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited.  If you have received this communication in error, please notify 
us immediately by e-mail, and delete the original message.  Thank you

DisplayTag: each element in a table of it's own

2004-02-06 Thread Avinash Gangadharan
Hello All,
I have a question for people using the displaytag tablib for table
rendering. I was wondering is there an easy way I can display each of the
object in my list that gets rendered as a row to show in a table of its own(
showing the header again ).

Thx
Avinash

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



logic:iterate question

2004-02-06 Thread Dragos Madalin Popa
Hi,
How can I iterate over a collection which depends of a request
parameter? 
 
Thank You a lot,
Dragos


RE: logic:iterate question

2004-02-06 Thread Wendy Smoak
> From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] 
> How can I iterate over a collection which depends of a request
> parameter? 

JSTL and/or Struts-EL can probably help, but I'm not quite sure what
your question is.  Can you give an example?

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logic:iterate question

2004-02-06 Thread Dragos Madalin Popa
Hi,

Thank you for your answer.I would like to change the code shown below,
to pass a request parameter to the modelList function;something like
this:
public Collection getModelList(String requestString){}, where
requestString is a parameter of the http request..

Warmest Regards,
Dragos


  


  


> From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED]
> How can I iterate over a collection which depends of a request
> parameter? 

JSTL and/or Struts-EL can probably help, but I'm not quite sure what
your question is.  Can you give an example?

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Data truncation in request scope

2004-02-06 Thread Namasivayam, Sudhakar (Cognizant)
Title: Data truncation in request scope







hi all,


I am passing a lot of data from the action class through the request =

scope


but the data is getting truncated... ie there are 50 elements in the arraylist only 25 are displayed

Is there any limit on the amount of data that can be sent or there any =

time out pbms 



Thanks & regards,

N Sudhakar

+91-44-2254055x7360



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: logic:iterate question

2004-02-06 Thread Wendy Smoak
> From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] 
> Thank you for your answer.I would like to change the code shown below,
> to pass a request parameter to the modelList function;something like
> this:
> public Collection getModelList(String requestString){}, where
> requestString is a parameter of the http request..
> 
>   
> 
> 
>   
> 

I don't think you can pass parameters in JSTL, at least not yet.  But
you could, in your action, call getModelList passing the String you got
from the request, and then when you forward to the JSP, iterate over
that Collection.

If getModelList returned a Map, or you made a getAllModelLists method
that returns a Map, you might have this:




That depends on how big they are, and whether they change for each user.
If you models are fixed and change infrequently, you might be able to
put a big Map in Application scope and use it across the entire webapp.

Out of curiosity, what class is getModelList from?

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logic:iterate question

2004-02-06 Thread Kris Schneider
You should be able to use BeanUtils' mapped property access for this, right?





Which should give you a bean called "modelList" that holds your collection. This
assumes there's a bean called "bean" whose class implements the getModelList method.

Quoting Wendy Smoak <[EMAIL PROTECTED]>:

> > From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] 
> > Thank you for your answer.I would like to change the code shown below,
> > to pass a request parameter to the modelList function;something like
> > this:
> > public Collection getModelList(String requestString){}, where
> > requestString is a parameter of the http request..
> > 
> >   
> > 
> > 
> >   
> > 
> 
> I don't think you can pass parameters in JSTL, at least not yet.  But
> you could, in your action, call getModelList passing the String you got
> from the request, and then when you forward to the JSP, iterate over
> that Collection.
> 
> If getModelList returned a Map, or you made a getAllModelLists method
> that returns a Map, you might have this:
> 
>  item="${model}>
>
> 
> 
> That depends on how big they are, and whether they change for each user.
> If you models are fixed and change infrequently, you might be able to
> put a big Map in Application scope and use it across the entire webapp.
> 
> Out of curiosity, what class is getModelList from?
> 
> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management 

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logic:iterate question

2004-02-06 Thread Kris Schneider
Forgot the obligatory, "but you should really do this in an action". There's no
reason to clog your JSP with this kind of stuff. Grab the collection in an
action, set it as a request attribute, forward to the JSP, and...

Quoting Kris Schneider <[EMAIL PROTECTED]>:

> You should be able to use BeanUtils' mapped property access for this,
> right?
> 
> 
> 
> 
> 
> Which should give you a bean called "modelList" that holds your collection.
> This
> assumes there's a bean called "bean" whose class implements the getModelList
> method.
> 
> Quoting Wendy Smoak <[EMAIL PROTECTED]>:
> 
> > > From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] 
> > > Thank you for your answer.I would like to change the code shown below,
> > > to pass a request parameter to the modelList function;something like
> > > this:
> > > public Collection getModelList(String requestString){}, where
> > > requestString is a parameter of the http request..
> > > 
> > >   
> > > 
> > > 
> > >   
> > > 
> > 
> > I don't think you can pass parameters in JSTL, at least not yet.  But
> > you could, in your action, call getModelList passing the String you got
> > from the request, and then when you forward to the JSP, iterate over
> > that Collection.
> > 
> > If getModelList returned a Map, or you made a getAllModelLists method
> > that returns a Map, you might have this:
> > 
> >  > item="${model}>
> >
> > 
> > 
> > That depends on how big they are, and whether they change for each user.
> > If you models are fixed and change infrequently, you might be able to
> > put a big Map in Application scope and use it across the entire webapp.
> > 
> > Out of curiosity, what class is getModelList from?
> > 
> > -- 
> > Wendy Smoak
> > Application Systems Analyst, Sr.
> > ASU IA Information Resources Management 
> 
> -- 
> Kris Schneider 
> D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OT: question about using CVS to download commons-scaffold

2004-02-06 Thread Jim Anderson
I followed the instructions on page 
http://jakarta.apache.org/commons/sandbox/scaffold/cvs-usage.html,
namely:

	cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
 	cvs -z3 -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co 
jakarta-commons/scaffold

and got the following error:

cvs server: cannot find module `jakarta-commons/scaffold' - ignored
cvs [checkout aborted]: cannot expand modules
What am I doing wrong?

Thanks,

jim


Query String for tiles

2004-02-06 Thread Wayne Kidd
Is it possible to attach a query string to a tiles forward.

my struts-config.xml has an entry like







My Tiles-defs.xml has an entry like





I want the net result of forward "startapp" to have a query string like

"?remember=test001"

I want the remember to be dynamically settable (during the execution of 
the LoginAction code I want to pick whether it is "test001" or "test002"

Anybody know a way.

Wayne



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DispatchAction Problem

2004-02-06 Thread Ricardo de Souza Moura
Hello Folks

I am having problems with my DispatchAction.

The name of the my method parameter is "method", and I have been receiveing 
this message error:

Request [/testAction] does not contain handler parameter named method

But this error has been happening only sometimes.

Have somebody ever seen this error ?

I am using Tomcat 4(Servlet container), Fedora(SO), Apache(HttpServlet)

Thanks

_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: DispatchAction Problem

2004-02-06 Thread Wendy Smoak
> From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED] 
> Request [/testAction] does not contain handler parameter named method
> But this error has been happening only sometimes.
> Have somebody ever seen this error ?

Yes, when the request doesn't contain the handler parameter.  Take a
look at the page just before you get the error.  Whatever is happening
there, it's not sending the 'method' parameter.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query String for tiles

2004-02-06 Thread Anand Patil
I assume you want to pass the query string "remember=test001" to
"/pages/time_inputeffort_body_nested.jspf". One way I can think of is
put the "remember=test001" as a request attribute in the logic of
com.rdlogic.struts.control.LoginAction. 

try reading the attribute directly from the request, since tiles does
"include" , you share the same request. So you could probably use
request.getAttribute()" ;

If that does not work use the tile controller concept 

Put a controller on the definition "tiles.self.effort". Your definition
modifies as 


 
 



In your struts-config.xml add this.


Make sure ur tile controller extends from TilesAction

In your tilecontroller guy u can get the attribute from the request and
put in the tilecontext and in your jsp for the tile you can use
 look @ tiles documentation to figure how to use
the tag. Then get that value and pass it to your jsp include via
 tag. 

HTH 

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: Query String for tiles


Is it possible to attach a query string to a tiles forward.

my struts-config.xml has an entry like




 

My Tiles-defs.xml has an entry like

  



I want the net result of forward "startapp" to have a query string like

"?remember=test001"

I want the remember to be dynamically settable (during the execution of 
the LoginAction code I want to pick whether it is "test001" or "test002"


Anybody know a way.

Wayne



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: DispatchAction Problem

2004-02-06 Thread Ricardo de Souza Moura
I know it, but It happen only sometimes. The same form sometimes works, and 
sometimes doesn't work.
I don't get to make a simulation because this mistake only happens when I 
open my app to internet. My app work very well in my intranet.

Does anybody have a sugestion ?


From: Wendy Smoak <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: RE: DispatchAction Problem
Date: Fri, 06 Feb 2004 13:06:48 -0700
> From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
> Request [/testAction] does not contain handler parameter named method
> But this error has been happening only sometimes.
> Have somebody ever seen this error ?
Yes, when the request doesn't contain the handler parameter.  Take a
look at the page just before you get the error.  Whatever is happening
there, it's not sending the 'method' parameter.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
If I were using a straight action, I would simply get the path from my 
ActionForward  subclass and append the query string to it.  This seems 
ponderous for placing a parameter in the url.

Is there any other way?

Wayne

Anand Patil wrote:
I assume you want to pass the query string "remember=test001" to
"/pages/time_inputeffort_body_nested.jspf". One way I can think of is
put the "remember=test001" as a request attribute in the logic of
com.rdlogic.struts.control.LoginAction. 

try reading the attribute directly from the request, since tiles does
"include" , you share the same request. So you could probably use
request.getAttribute()" ;
If that does not work use the tile controller concept 

Put a controller on the definition "tiles.self.effort". Your definition
modifies as 


controllerUrl="/tilecontroller.do"> 
 



In your struts-config.xml add this.

Make sure ur tile controller extends from TilesAction

In your tilecontroller guy u can get the attribute from the request and
put in the tilecontext and in your jsp for the tile you can use
 look @ tiles documentation to figure how to use
the tag. Then get that value and pass it to your jsp include via
 tag. 

HTH 

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: Query String for tiles
Is it possible to attach a query string to a tiles forward.

my struts-config.xml has an entry like




 

My Tiles-defs.xml has an entry like

  

I want the net result of forward "startapp" to have a query string like

"?remember=test001"

I want the remember to be dynamically settable (during the execution of 
the LoginAction code I want to pick whether it is "test001" or "test002"

Anybody know a way.

Wayne



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Data truncation in request scope

2004-02-06 Thread Robert Nocera
It may sound strange, and may not be what is happening to you, but I have
seen similar things occur if your jsp page has a tag referencing a bean or
list that isn't there somewhere further down on the page.

 

-Rob

 

  _  

From: Namasivayam, Sudhakar (Cognizant) [mailto:[EMAIL PROTECTED]

Sent: Friday, February 06, 2004 1:19 PM
To: Struts Users Mailing List
Subject: Data truncation in request scope

 

 

hi all, 

I am passing a lot of data from the action class through the request = 
scope 

but the data is getting truncated... ie there are 50 elements in the
arraylist only 25 are displayed 
Is there any limit on the amount of data that can be sent or there any = 
time out pbms 

 

Thanks & regards, 
N Sudhakar 
+91-44-2254055x7360 



[OT] Examining Response Headers

2004-02-06 Thread Robert Taylor
Sorry for the OT post, but Googling and searching the mailing list archives are not 
producing much.
I may not be asking the right question though.

Anyhow, I need a tool (free) to examine the request and response headers.

Any suggestions?

robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Examining Response Headers

2004-02-06 Thread David Erickson
Filters + Eclipse + Debug?
-David

- Original Message - 
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 11:44 AM
Subject: [OT] Examining Response Headers


> Sorry for the OT post, but Googling and searching the mailing list
archives are not producing much.
> I may not be asking the right question though.
>
> Anyhow, I need a tool (free) to examine the request and response headers.
>
> Any suggestions?
>
> robert
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Examining Response Headers

2004-02-06 Thread Desai, Sunny
Try JMeter on soureceforge.net

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 1:45 PM
To: [EMAIL PROTECTED]
Subject: [OT] Examining Response Headers


Sorry for the OT post, but Googling and searching the mailing list archives
are not producing much.
I may not be asking the right question though.

Anyhow, I need a tool (free) to examine the request and response headers.

Any suggestions?

robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Examining Response Headers

2004-02-06 Thread Richard Yee
Robert,
You can use the org.apache.soap.util.net.TcpTunnelGui
tool to monitor your request and response messages. It
comes in the Jakarta SOAP distribution. It acts like a
proxy. You will need to run it using something like
java org.apache.soap.util.net.TcpTunnelGui 
server_host_name 80

where  is the port the tool listens on.
server_host_name is your app server name
80 is the port your server listens on.

You then need to configure your browser to use 
and localhost to proxy.

Regards,

Richard

--- Robert Taylor <[EMAIL PROTECTED]> wrote:
> Sorry for the OT post, but Googling and searching
> the mailing list archives are not producing much.
> I may not be asking the right question though.
> 
> Anyhow, I need a tool (free) to examine the request
> and response headers.
> 
> Any suggestions?
> 
> robert
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



iterate over list of maps

2004-02-06 Thread Daniel Lipofsky
I want to iterate over a list where each object in the
list is a map, and print values from the map.  The problem,
of course, is Map is not a bean - no getters and setters.
Do I have to wrap each map in a bean, or is there a
more clever approach.

(I am pretty much stuck with list:iterate, not c:forEach,
because I am actually using a specialize tag that extends
list:iterate).

Thanks,
Dan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Examining Response Headers

2004-02-06 Thread Robert Taylor
Thanks to all who responded. 

Richard, the TcpTunnelGui looks like what I want. 
I'll check it out. 

Thanks again.

robert

> -Original Message-
> From: Richard Yee [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 06, 2004 5:01 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Examining Response Headers
> 
> 
> Robert,
> You can use the org.apache.soap.util.net.TcpTunnelGui
> tool to monitor your request and response messages. It
> comes in the Jakarta SOAP distribution. It acts like a
> proxy. You will need to run it using something like
> java org.apache.soap.util.net.TcpTunnelGui 
> server_host_name 80
> 
> where  is the port the tool listens on.
> server_host_name is your app server name
> 80 is the port your server listens on.
> 
> You then need to configure your browser to use 
> and localhost to proxy.
> 
> Regards,
> 
> Richard
> 
> --- Robert Taylor <[EMAIL PROTECTED]> wrote:
> > Sorry for the OT post, but Googling and searching
> > the mailing list archives are not producing much.
> > I may not be asking the right question though.
> > 
> > Anyhow, I need a tool (free) to examine the request
> > and response headers.
> > 
> > Any suggestions?
> > 
> > robert
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query String for tiles

2004-02-06 Thread Anand Patil
I am confused. What I meant was that you are using a jsp or some form of
jsp (judging by the extension as jspf) to render the body of the tile.
The logic (if I may) must be that the jsp attached on the tile , will
include the body attribute as a dynamic include. All I could think of is
that you need to PASS 'remember' as a parameter to that jsp. My solution
assumes that and hence says u have to use a tile controller to transfer
attributes from request to the tile context. 

Am I missing something? 

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


If I were using a straight action, I would simply get the path from my 
ActionForward  subclass and append the query string to it.  This seems 
ponderous for placing a parameter in the url.

Is there any other way?

Wayne

Anand Patil wrote:
> I assume you want to pass the query string "remember=test001" to 
> "/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
> put the "remember=test001" as a request attribute in the logic of 
> com.rdlogic.struts.control.LoginAction.
> 
> try reading the attribute directly from the request, since tiles does 
> "include" , you share the same request. So you could probably use 
> request.getAttribute()" ;
> 
> If that does not work use the tile controller concept
> 
> Put a controller on the definition "tiles.self.effort". Your 
> definition modifies as
> 
> 
>  controllerUrl="/tilecontroller.do">
> 
> 
> 
> 
> In your struts-config.xml add this.
>  type="
> 
> Make sure ur tile controller extends from TilesAction
> 
> In your tilecontroller guy u can get the attribute from the request 
> and put in the tilecontext and in your jsp for the tile you can use 
>  look @ tiles documentation to figure how to use 
> the tag. Then get that value and pass it to your jsp include via 
>  tag.
> 
> HTH
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 11:44 AM
> To: [EMAIL PROTECTED]
> Subject: Query String for tiles
> 
> 
> Is it possible to attach a query string to a tiles forward.
> 
> my struts-config.xml has an entry like
> 
>  type="com.rdlogic.struts.control.LoginAction" >
> 
> 
>  
> 
> My Tiles-defs.xml has an entry like
> 
>   name="head.title" value="/pages/title.jspf"/>  value="/pages/time_inputeffort_body_nested.jspf">
> 
> 
> 
> I want the net result of forward "startapp" to have a query string 
> like
> 
> "?remember=test001"
> 
> I want the remember to be dynamically settable (during the execution 
> of
> the LoginAction code I want to pick whether it is "test001" or
"test002"
> 
> 
> Anybody know a way.
> 
> Wayne
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: iterate over list of maps

2004-02-06 Thread Desai, Sunny
You can use LabelValueBean that's available in
org.apache.struts.util.LabelValueBean package


-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 5:12 PM
To: [EMAIL PROTECTED]
Subject: iterate over list of maps


I want to iterate over a list where each object in the
list is a map, and print values from the map.  The problem,
of course, is Map is not a bean - no getters and setters.
Do I have to wrap each map in a bean, or is there a
more clever approach.

(I am pretty much stuck with list:iterate, not c:forEach,
because I am actually using a specialize tag that extends
list:iterate).

Thanks,
Dan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: img tag with action as src

2004-02-06 Thread Michael McGrady
Well, Mr. Greg Bloomquist, Ben Anderson is not correct on that point, if 
you cite him correctly.  You can use the "src" attribute fine.  I do it all 
the time.  I explore this more below.  You said:



With the help of Ben Anderson, I was able to figure out that I should be
using the "path" attribute of the  tag instead of the "src"
attribute.  At least, this is what fixed my problem.  So, my final
assumption is that  or even  will not work.
This is not correct.  My original response is correct.  The use of .do is 
the important thing and that will take the request to the controller for 
processing.  So, you are not seeing what the problem is.  You seem a bit 
put out about my answer and expect me to spend my time monitoring all your 
messages, apparently, so as not to hurt your feelings or something.  I 
cannot promise that kind of dedication to you, I would still be happy to 
help you get this right, if you would like.  Just so you don't think this 
is merely arrogance, you can go to www.michaelmcgrady.com, look at the src 
attribute on the opening page under the "source" obtained from "View" in 
your browser, if you are using Internet Explorer for direct proof that your 
conclusions are mistaken.  Notice that I use .MICHAELMcGRADY instead of .do.

Okay?  Peace, shalom, namaste, handshake?  LOL  Relax a little man.  Try 
going wo, woo, w, a bit.

Remember that URLs are just file finding devices and that when you use .do, 
the URL part of that device is rendered essentially irrelevant.  I am quite 
serious that I would like to help you and quite serious that you need to 
chill a bit.

Michael Mcgrady



I




nstead, one my use .  I'm not sure if this has to do with the
fact that in using the "src" attribute, you're telling the container (or
browser, or controller) that it's an exisiting _filesystem_ path, vs. some
virtual path.  All I know if that "src" didn't work, and "path" did work.
Thanks for the post anyhow.

-
 Greg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: logic:iterate question

2004-02-06 Thread Michael McGrady

I don't think you can pass parameters in JSTL, at least not yet.  But
you could, in your action, call getModelList passing the String you got
from the request, and then when you forward to the JSP, iterate over
that Collection.
I am not sure what you meant, Wendy, but, in case you meant that you cannot 
use parameters, then check out: 
http://jakarta.apache.org/struts/faqs/indexedpropers.html .

If this is helpful, I use this with a BeanMap I whipped up:

public final class BeanMap
implements Map {
  private Map map;
  private BeanMap() {
  }
  public static Map getInstance(Map map) {
BeanMap bean = new BeanMap();
bean.setMap(map);
return bean;
  }
  public void setMap(Map map) {
this.map = map;
log.info(this.map);
  }
  public void setValue(Object key, Object value) {
map.put(key,value);
  }
  public Object getValue(Object key) {
return map.get(key);
  }
  // Forwarding, composition, methods
  public void   clear()   { map.clear(); }
  public booleancontainsKey(Object key)   { return 
map.containsKey(key);}
  public booleancontainsValue(Object value)   { return 
map.containsValue(value); }
  public SetentrySet(){ return map.entrySet(); }
  public booleanequals(Object object) { return 
map.equals(object); }
  public Object get(Object key)   { return map.get(key); }
  public inthashCode(){ return map.hashCode(); }
  public booleanisEmpty() { return map.isEmpty(); }
  public SetkeySet()  { return map.keySet(); }
  public Object put(Object key, Object value) { return 
map.put(key,value); }
  public void   putAll(Map map)   { map.putAll(map); }
  public Object remove(Object key){ return map.remove(key); }
  public intsize(){ return map.size(); }
  public Collection values()  { return map.values(); }
  public String toString(){ return map.toString(); }
}///;-)
Bye 'd bye,

Michael








Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
There is no include anywhere in my app.  I am just combining tiles (jspf 
is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
I am confused. What I meant was that you are using a jsp or some form of
jsp (judging by the extension as jspf) to render the body of the tile.
The logic (if I may) must be that the jsp attached on the tile , will
include the body attribute as a dynamic include. All I could think of is
that you need to PASS 'remember' as a parameter to that jsp. My solution
assumes that and hence says u have to use a tile controller to transfer
attributes from request to the tile context. 

Am I missing something? 

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
If I were using a straight action, I would simply get the path from my 
ActionForward  subclass and append the query string to it.  This seems 
ponderous for placing a parameter in the url.

Is there any other way?

Wayne

Anand Patil wrote:

I assume you want to pass the query string "remember=test001" to 
"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
put the "remember=test001" as a request attribute in the logic of 
com.rdlogic.struts.control.LoginAction.

try reading the attribute directly from the request, since tiles does 
"include" , you share the same request. So you could probably use 
request.getAttribute()" ;

If that does not work use the tile controller concept

Put a controller on the definition "tiles.self.effort". Your 
definition modifies as



value="/pages/time_inputeffort_body_nested.jspf">



In your struts-config.xml add this.


Make sure ur tile controller extends from TilesAction

In your tilecontroller guy u can get the attribute from the request 
and put in the tilecontext and in your jsp for the tile you can use 
 look @ tiles documentation to figure how to use 
the tag. Then get that value and pass it to your jsp include via 
 tag.

HTH

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: Query String for tiles
Is it possible to attach a query string to a tiles forward.

my struts-config.xml has an entry like




 
My Tiles-defs.xml has an entry like

 

name="head.title" value="/pages/title.jspf"/> 


I want the net result of forward "startapp" to have a query string 
like

"?remember=test001"

I want the remember to be dynamically settable (during the execution 
of
the LoginAction code I want to pick whether it is "test001" or
"test002"

Anybody know a way.

Wayne



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Examining Response Headers

2004-02-06 Thread Mike Duffy
Robert,

DevProxy is a great program for monitoring the request and response headers:

http://www.widgetbuilders.com/

I recently did some socket programming.  DevProxy was an invaluable tool.  You can see 
exactly
what flows through the socket between browser and host.  Very good GUI interface.

Mike


--- Robert Taylor <[EMAIL PROTECTED]> wrote:
> Sorry for the OT post, but Googling and searching the mailing list archives are not 
> producing
> much.
> I may not be asking the right question though.
> 
> Anyhow, I need a tool (free) to examine the request and response headers.
> 
> Any suggestions?
> 
> robert
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query String for tiles

2004-02-06 Thread Anand Patil
Oh ok ...
 I am sorry, I misunderstood ur requirement. 

Anand

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


There is no include anywhere in my app.  I am just combining tiles (jspf

is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
> I am confused. What I meant was that you are using a jsp or some form 
> of jsp (judging by the extension as jspf) to render the body of the 
> tile. The logic (if I may) must be that the jsp attached on the tile ,

> will include the body attribute as a dynamic include. All I could 
> think of is that you need to PASS 'remember' as a parameter to that 
> jsp. My solution assumes that and hence says u have to use a tile 
> controller to transfer attributes from request to the tile context.
> 
> Am I missing something?
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Query String for tiles
> 
> 
> If I were using a straight action, I would simply get the path from my
> ActionForward  subclass and append the query string to it.  This seems

> ponderous for placing a parameter in the url.
> 
> Is there any other way?
> 
> Wayne
> 
> Anand Patil wrote:
> 
>>I assume you want to pass the query string "remember=test001" to
>>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
>>put the "remember=test001" as a request attribute in the logic of 
>>com.rdlogic.struts.control.LoginAction.
>>
>>try reading the attribute directly from the request, since tiles does
>>"include" , you share the same request. So you could probably use 
>>request.getAttribute()" ;
>>
>>If that does not work use the tile controller concept
>>
>>Put a controller on the definition "tiles.self.effort". Your
>>definition modifies as
>>
>>
>>>controllerUrl="/tilecontroller.do">
>>
>> 
> value="/pages/time_inputeffort_body_nested.jspf">
> 
>>
>>
>>In your struts-config.xml add this.
>>>type="
>>
>>Make sure ur tile controller extends from TilesAction
>>
>>In your tilecontroller guy u can get the attribute from the request
>>and put in the tilecontext and in your jsp for the tile you can use 
>> look @ tiles documentation to figure how to use 
>>the tag. Then get that value and pass it to your jsp include via 
>> tag.
>>
>>HTH
>>
>>Anand.
>>
>>-Original Message-
>>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
>>Sent: Friday, February 06, 2004 11:44 AM
>>To: [EMAIL PROTECTED]
>>Subject: Query String for tiles
>>
>>
>>Is it possible to attach a query string to a tiles forward.
>>
>>my struts-config.xml has an entry like
>>
>>>type="com.rdlogic.struts.control.LoginAction" > >name="startapp" path="tiles.self.effort">
>>
>> 
>>
>>My Tiles-defs.xml has an entry like
>>
>>  
> 
>>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf">
>>
>>
>>
>>I want the net result of forward "startapp" to have a query string
>>like
>>
>>"?remember=test001"
>>
>>I want the remember to be dynamically settable (during the execution
>>of
>>the LoginAction code I want to pick whether it is "test001" or
> 
> "test002"
> 
>>
>>Anybody know a way.
>>
>>Wayne
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
So, do you have any ideas?

Wayne

Anand Patil wrote:

Oh ok ...
 I am sorry, I misunderstood ur requirement. 

Anand

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
There is no include anywhere in my app.  I am just combining tiles (jspf

is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:

I am confused. What I meant was that you are using a jsp or some form 
of jsp (judging by the extension as jspf) to render the body of the 
tile. The logic (if I may) must be that the jsp attached on the tile ,


will include the body attribute as a dynamic include. All I could 
think of is that you need to PASS 'remember' as a parameter to that 
jsp. My solution assumes that and hence says u have to use a tile 
controller to transfer attributes from request to the tile context.

Am I missing something?

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
If I were using a straight action, I would simply get the path from my
ActionForward  subclass and append the query string to it.  This seems


ponderous for placing a parameter in the url.

Is there any other way?

Wayne

Anand Patil wrote:


I assume you want to pass the query string "remember=test001" to
"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
put the "remember=test001" as a request attribute in the logic of 
com.rdlogic.struts.control.LoginAction.

try reading the attribute directly from the request, since tiles does
"include" , you share the same request. So you could probably use 
request.getAttribute()" ;

If that does not work use the tile controller concept

Put a controller on the definition "tiles.self.effort". Your
definition modifies as


value="/pages/time_inputeffort_body_nested.jspf">



In your struts-config.xml add this.

Make sure ur tile controller extends from TilesAction

In your tilecontroller guy u can get the attribute from the request
and put in the tilecontext and in your jsp for the tile you can use 
 look @ tiles documentation to figure how to use 
the tag. Then get that value and pass it to your jsp include via 
 tag.

HTH

Anand.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: Query String for tiles
Is it possible to attach a query string to a tiles forward.

my struts-config.xml has an entry like

 

 

My Tiles-defs.xml has an entry like

 

name="head.title" value="/pages/title.jspf"/> 

I want the net result of forward "startapp" to have a query string
like
"?remember=test001"

I want the remember to be dynamically settable (during the execution
of
the LoginAction code I want to pick whether it is "test001" or
"test002"


Anybody know a way.

Wayne



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
You could create an forward-action for the JSP.




And modify the  in your action to,



This may not fit within the "best practices".but will get it done.

hth
-jayash



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


There is no include anywhere in my app.  I am just combining tiles (jspf 
is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
> I am confused. What I meant was that you are using a jsp or some form of
> jsp (judging by the extension as jspf) to render the body of the tile.
> The logic (if I may) must be that the jsp attached on the tile , will
> include the body attribute as a dynamic include. All I could think of is
> that you need to PASS 'remember' as a parameter to that jsp. My solution
> assumes that and hence says u have to use a tile controller to transfer
> attributes from request to the tile context. 
> 
> Am I missing something? 
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Query String for tiles
> 
> 
> If I were using a straight action, I would simply get the path from my 
> ActionForward  subclass and append the query string to it.  This seems 
> ponderous for placing a parameter in the url.
> 
> Is there any other way?
> 
> Wayne
> 
> Anand Patil wrote:
> 
>>I assume you want to pass the query string "remember=test001" to 
>>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
>>put the "remember=test001" as a request attribute in the logic of 
>>com.rdlogic.struts.control.LoginAction.
>>
>>try reading the attribute directly from the request, since tiles does 
>>"include" , you share the same request. So you could probably use 
>>request.getAttribute()" ;
>>
>>If that does not work use the tile controller concept
>>
>>Put a controller on the definition "tiles.self.effort". Your 
>>definition modifies as
>>
>>
>>>controllerUrl="/tilecontroller.do">
>>
>> 
> value="/pages/time_inputeffort_body_nested.jspf">
> 
>>
>>
>>In your struts-config.xml add this.
>>>type="
>>
>>Make sure ur tile controller extends from TilesAction
>>
>>In your tilecontroller guy u can get the attribute from the request 
>>and put in the tilecontext and in your jsp for the tile you can use 
>> look @ tiles documentation to figure how to use 
>>the tag. Then get that value and pass it to your jsp include via 
>> tag.
>>
>>HTH
>>
>>Anand.
>>
>>-Original Message-
>>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
>>Sent: Friday, February 06, 2004 11:44 AM
>>To: [EMAIL PROTECTED]
>>Subject: Query String for tiles
>>
>>
>>Is it possible to attach a query string to a tiles forward.
>>
>>my struts-config.xml has an entry like
>>
>>>type="com.rdlogic.struts.control.LoginAction" >
>>
>>
>> 
>>
>>My Tiles-defs.xml has an entry like
>>
>>  
> 
>>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf">
>>
>>
>>
>>I want the net result of forward "startapp" to have a query string 
>>like
>>
>>"?remember=test001"
>>
>>I want the remember to be dynamically settable (during the execution 
>>of
>>the LoginAction code I want to pick whether it is "test001" or
> 
> "test002"
> 
>>
>>Anybody know a way.
>>
>>Wayne
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
typo in my previous email.

should have been..



-Original Message-
From: Gopalakrishnan, Jayesh 
Sent: Friday, February 06, 2004 3:47 PM
To: Struts Users Mailing List
Subject: RE: Query String for tiles


You could create an forward-action for the JSP.




And modify the  in your action to,



This may not fit within the "best practices".but will get it done.

hth
-jayash



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


There is no include anywhere in my app.  I am just combining tiles (jspf 
is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
> I am confused. What I meant was that you are using a jsp or some form of
> jsp (judging by the extension as jspf) to render the body of the tile.
> The logic (if I may) must be that the jsp attached on the tile , will
> include the body attribute as a dynamic include. All I could think of is
> that you need to PASS 'remember' as a parameter to that jsp. My solution
> assumes that and hence says u have to use a tile controller to transfer
> attributes from request to the tile context. 
> 
> Am I missing something? 
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Query String for tiles
> 
> 
> If I were using a straight action, I would simply get the path from my 
> ActionForward  subclass and append the query string to it.  This seems 
> ponderous for placing a parameter in the url.
> 
> Is there any other way?
> 
> Wayne
> 
> Anand Patil wrote:
> 
>>I assume you want to pass the query string "remember=test001" to 
>>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
>>put the "remember=test001" as a request attribute in the logic of 
>>com.rdlogic.struts.control.LoginAction.
>>
>>try reading the attribute directly from the request, since tiles does 
>>"include" , you share the same request. So you could probably use 
>>request.getAttribute()" ;
>>
>>If that does not work use the tile controller concept
>>
>>Put a controller on the definition "tiles.self.effort". Your 
>>definition modifies as
>>
>>
>>>controllerUrl="/tilecontroller.do">
>>
>> 
> value="/pages/time_inputeffort_body_nested.jspf">
> 
>>
>>
>>In your struts-config.xml add this.
>>>type="
>>
>>Make sure ur tile controller extends from TilesAction
>>
>>In your tilecontroller guy u can get the attribute from the request 
>>and put in the tilecontext and in your jsp for the tile you can use 
>> look @ tiles documentation to figure how to use 
>>the tag. Then get that value and pass it to your jsp include via 
>> tag.
>>
>>HTH
>>
>>Anand.
>>
>>-Original Message-
>>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
>>Sent: Friday, February 06, 2004 11:44 AM
>>To: [EMAIL PROTECTED]
>>Subject: Query String for tiles
>>
>>
>>Is it possible to attach a query string to a tiles forward.
>>
>>my struts-config.xml has an entry like
>>
>>>type="com.rdlogic.struts.control.LoginAction" >
>>
>>
>> 
>>
>>My Tiles-defs.xml has an entry like
>>
>>  
> 
>>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf">
>>
>>
>>
>>I want the net result of forward "startapp" to have a query string 
>>like
>>
>>"?remember=test001"
>>
>>I want the remember to be dynamically settable (during the execution 
>>of
>>the LoginAction code I want to pick whether it is "test001" or
> 
> "test002"
> 
>>
>>Anybody know a way.
>>
>>Wayne
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: img tag with action as src

2004-02-06 Thread Michael McGrady
Just to save you time looking, Greg Bloomquist, here is the tag that works:


Okay dokay?  Not trying to beat a dead horse or get one to float when led 
to water but just letting you know how it is, because code that works for 
the wrong reason is likely to come back and  on the 

Michael McGrady

At 07:49 AM 2/6/2004, you wrote:

So, my final assumption is that 
or even  will not work.  Instead, 
one my use .  I'm not sure if 
this has to do with the
fact that in using the "src" attribute, you're telling the container (or
browser, or controller) that it's an exisiting _filesystem_ path, vs. some
virtual path.  All I know if that "src" didn't work, and "path" did work.

Thanks for the post anyhow.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DispatchAction Problem

2004-02-06 Thread Edgar Silva
Hi Ricardo...

The only thing I can see in this situation is the some change in the value
of parameter "method", due to DispatchAction uses this value to call
selected method in the class, I mean: the value of method must be the nome
of method in the class.

I am using a lot of  DispatchActions, beacause for me is a reflect from a
UseCase Diagram, where you can to refer all actions from views from system.

Some additional information, send a mail.

Edgar Silva


- Original Message -
From: "Ricardo de Souza Moura" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 8:30 PM
Subject: RE: DispatchAction Problem


> I know it, but It happen only sometimes. The same form sometimes works,
and
> sometimes doesn't work.
> I don't get to make a simulation because this mistake only happens when I
> open my app to internet. My app work very well in my intranet.
>
> Does anybody have a sugestion ?
>
>
> >From: Wendy Smoak <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: RE: DispatchAction Problem
> >Date: Fri, 06 Feb 2004 13:06:48 -0700
> >
> > > From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
> > > Request [/testAction] does not contain handler parameter named method
> > > But this error has been happening only sometimes.
> > > Have somebody ever seen this error ?
> >
> >Yes, when the request doesn't contain the handler parameter.  Take a
> >look at the page just before you get the error.  Whatever is happening
> >there, it's not sending the 'method' parameter.
> >
> >--
> >Wendy Smoak
> >Application Systems Analyst, Sr.
> >ASU IA Information Resources Management
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: img tag with action as src

2004-02-06 Thread Michael McGrady
Greg, maybe the best way to help you with this is to give you the simple 
view solution and just forget the fancy stuff.  If so, here is the URL: 
http://jakarta.apache.org/struts/userGuide/struts-html.html#img.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem in Multipage Validation with DynaValidatorForm

2004-02-06 Thread Joseph Jegan
Hello,

My application has two page form (wizard type).  To make the programming and 
maintenance simpler, I have selected Validator along with DynaValidatorForm.

The problem which i am facing is that, my first page validation works correctly. But, 
second page doesnt seems to work. It doesnt go in to the validation method itself.
For the fields in the first page, i have give page attribute for the Field element to 
be "0" and for the second page fields i have given "1". I am suspecting the problem 
could be with the "page" parameter in the DynaValidatorForm. How does the page 
parameter in the form gets incremented.. Does it happen automatically?
Can someone tell me the exact steps to implement a multipage validation with 
DynaValidatorForm?

Thanks in Advance
Joseph




PropertyDescriptor: internal error while merging PDs: with jdk1.4

2004-02-06 Thread Anand Stephen
Greetings,

I get the following error when I run a web app with:


java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

It works without any problems with:

java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

OS: Win XP professional.
Server: Resin 2.1.4


Thank you,
--a 




 Error -
500 Servlet Exception
java.lang.Error: PropertyDescriptor: internal error while merging PDs:
type mismatch between read and write methods
at
java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
at
java.beans.Introspector.processPropertyDescriptors(Introspector.java:649
)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
tyUtils.java:949)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
tyUtils.java:979)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:887)
at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUti
ls.java:1172)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
ls.java:772)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
a:801)
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:289)
at
_admin._site._products._productstab__jsp._jspService(/admin/site/product
s/productstab.jsp:173)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:213)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:100)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:77)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1033)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:268)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:436)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:311)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1393)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
va:96)
at
com.marketlive.admin.logon.AdminAccessFilter.doFilter(AdminAccessFilter.
java:72)
at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:534)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]