Tooltip with logic:iterate tag

2004-11-10 Thread Heligon Sandra

Hi,

I have a table in my application that I display through the 
logic:iterate Struts tag,
One of the column contents a long text, I would like to add a 'Tooltip' 
in order
to view the whole text, is it possible ?

Thanks a lot in advance

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



FW: tab UI controls for struts

2004-10-28 Thread Heligon Sandra

The tiles-doc example works very well the defintion is in the 
file tiles-examples-defs.xml and the result page is
tiles-doc/examples/tabs.jsp.

I would like to use the nestedTabsLayout 
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp)
Has someone an example of tiles-def.xml that use this layout.
I would like to display sub-tabs according to user rights,
is it possible ?

Thanks a lot in advance

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 02:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: tab UI controls for struts


Have you looked at tiles-documentation.war?

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 7:23 PM
Subject: Re: tab UI controls for struts


>I see that struts has a Tabbed Layout. Are there any examples around on 
> how to use it.
> 
> 
> Eddie Bush wrote:
> 
>> Try Tiles.  It has a tabbed-layout, I believe.  If that doesn't suit 
>> your needs, try:
>>
>> Google Query:  Struts +Layout +Tabbed
>>
>> - Original Message - From: "kjc" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, October 25, 2004 10:36 AM
>> Subject: tab UI controls for struts
>>
>>
>>> looking for a tab UI control for use with struts.
>>
>>
>>
>>
>> ---
>> avast! Antivirus: Outbound message clean.
>> Virus Database (VPS): 0443-3, 10/22/2004
>> Tested on: 10/25/2004 7:04:41 PM
>> avast! - copyright (c) 2000-2004 ALWIL Software.
>> http://www.avast.com
>>
>>
>>
>>
>> -
>> 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]
>


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0443-3, 10/22/2004
Tested on: 10/25/2004 7:24:09 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: tab UI controls for struts

2004-10-28 Thread Heligon Sandra
The tiles-doc example works very well the defintion is in the 
file tiles-examples-defs.xml and the result page is
tiles-doc/examples/tabs.jsp.

I would like to use the nestedTabsLayout 
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp)
Has someone an example of tiles-def.xml that use this layout.
I would like to display sub-tabs according to user rights,
is it possible ?

Thanks a lot in advance

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 02:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: tab UI controls for struts


Have you looked at tiles-documentation.war?

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 7:23 PM
Subject: Re: tab UI controls for struts


>I see that struts has a Tabbed Layout. Are there any examples around on 
> how to use it.
> 
> 
> Eddie Bush wrote:
> 
>> Try Tiles.  It has a tabbed-layout, I believe.  If that doesn't suit 
>> your needs, try:
>>
>> Google Query:  Struts +Layout +Tabbed
>>
>> - Original Message - From: "kjc" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, October 25, 2004 10:36 AM
>> Subject: tab UI controls for struts
>>
>>
>>> looking for a tab UI control for use with struts.
>>
>>
>>
>>
>> ---
>> avast! Antivirus: Outbound message clean.
>> Virus Database (VPS): 0443-3, 10/22/2004
>> Tested on: 10/25/2004 7:04:41 PM
>> avast! - copyright (c) 2000-2004 ALWIL Software.
>> http://www.avast.com
>>
>>
>>
>>
>> -
>> 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]
>


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0443-3, 10/22/2004
Tested on: 10/25/2004 7:24:09 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: tab UI controls for struts

2004-10-27 Thread Heligon Sandra
Hi,

There is an example in the file tiles-examples-def.xml in tiles-doc.war





  
  

  

It works.

I would like to use NestedTabsLayout 
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp) but I don't know which 
syntax use in
tiles-def.xml.
Has someone alreday used this layout ?

Thanks in advance

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 02:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: tab UI controls for struts


Have you looked at tiles-documentation.war?

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 7:23 PM
Subject: Re: tab UI controls for struts


>I see that struts has a Tabbed Layout. Are there any examples around on 
> how to use it.
> 
> 
> Eddie Bush wrote:
> 
>> Try Tiles.  It has a tabbed-layout, I believe.  If that doesn't suit 
>> your needs, try:
>>
>> Google Query:  Struts +Layout +Tabbed
>>
>> - Original Message - From: "kjc" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, October 25, 2004 10:36 AM
>> Subject: tab UI controls for struts
>>
>>
>>> looking for a tab UI control for use with struts.
>>
>>
>>
>>
>> ---
>> avast! Antivirus: Outbound message clean.
>> Virus Database (VPS): 0443-3, 10/22/2004
>> Tested on: 10/25/2004 7:04:41 PM
>> avast! - copyright (c) 2000-2004 ALWIL Software.
>> http://www.avast.com
>>
>>
>>
>>
>> -
>> 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]
>


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0443-3, 10/22/2004
Tested on: 10/25/2004 7:24:09 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: tab UI controls for struts

2004-10-26 Thread Heligon Sandra
Hi,

There is an example of tabsLayout in tiles-doc.war

Tiles-examples-defs.xml




  
  

  
It works.

In my application I try to use NestedTabsLayout
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp)
but it does not work I would like to know if someone has already
used this layout and can send me a tiles-def.xml example.
Thanks a lot in advance

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 02:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: tab UI controls for struts


Have you looked at tiles-documentation.war?

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 7:23 PM
Subject: Re: tab UI controls for struts


>I see that struts has a Tabbed Layout. Are there any examples around on 
> how to use it.
> 
> 
> Eddie Bush wrote:
> 
>> Try Tiles.  It has a tabbed-layout, I believe.  If that doesn't suit 
>> your needs, try:
>>
>> Google Query:  Struts +Layout +Tabbed
>>
>> - Original Message - From: "kjc" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, October 25, 2004 10:36 AM
>> Subject: tab UI controls for struts
>>
>>
>>> looking for a tab UI control for use with struts.
>>
>>
>>
>>
>> ---
>> avast! Antivirus: Outbound message clean.
>> Virus Database (VPS): 0443-3, 10/22/2004
>> Tested on: 10/25/2004 7:04:41 PM
>> avast! - copyright (c) 2000-2004 ALWIL Software.
>> http://www.avast.com
>>
>>
>>
>>
>> -
>> 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]
>


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0443-3, 10/22/2004
Tested on: 10/25/2004 7:24:09 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: tab UI controls for struts

2004-10-26 Thread Heligon Sandra
Hi,

There is an example of tabsLayout in tiles-doc.war

Tiles-examples-defs.xml




  
  

  
It works.

In my application I try to use NestedTabsLayout
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp)
but it does not work I would like to know if someone has already
used this layout and can send me a tiles-def.xml example.
Thanks a lot in advance

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 02:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: tab UI controls for struts


Have you looked at tiles-documentation.war?

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 7:23 PM
Subject: Re: tab UI controls for struts


>I see that struts has a Tabbed Layout. Are there any examples around on 
> how to use it.
> 
> 
> Eddie Bush wrote:
> 
>> Try Tiles.  It has a tabbed-layout, I believe.  If that doesn't suit 
>> your needs, try:
>>
>> Google Query:  Struts +Layout +Tabbed
>>
>> - Original Message - From: "kjc" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, October 25, 2004 10:36 AM
>> Subject: tab UI controls for struts
>>
>>
>>> looking for a tab UI control for use with struts.
>>
>>
>>
>>
>> ---
>> avast! Antivirus: Outbound message clean.
>> Virus Database (VPS): 0443-3, 10/22/2004
>> Tested on: 10/25/2004 7:04:41 PM
>> avast! - copyright (c) 2000-2004 ALWIL Software.
>> http://www.avast.com
>>
>>
>>
>>
>> -
>> 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]
>


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0443-3, 10/22/2004
Tested on: 10/25/2004 7:24:09 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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]



Nested tables and Map

2004-10-19 Thread Heligon Sandra

Hi,

I would like to add a 'nested table' in my Struts application.

<><><>
<>  <>

1980Pop  TitiA
 TotoB

I should make hyper link on the 'Title' column. And when the user 
select a 'song' I should retrun in the hyper link the name of the song
and the 'year'. I know that display tag has limitations, 
does somebody know if it is possible ?

I have a first Map 'Years' each object of this Map has a Map .

I know that display tag allows to do 'nested tables' but I don't find a 
complete example
with struts-config.xml, action.java and JSP page.

I think that this tag use only ArrayList or Vector, isn't it ?

Is there an other tag that allows to do this with Map object ?

Thanks a lot in advance.

 

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



Struts validator unauthorized string value

2004-06-16 Thread Heligon Sandra

I have a field (string) in my DynaValidatorForm 'type' and I would
like
to return an error 'Invalid type name' when the selected value
is 'undefined'.
Has someone an example of validation.xml file wich do that ?

Thanks a lot in advance

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



Struts with XSLT

2004-06-15 Thread Heligon Sandra

It seems that it is rather easy to use XSLT with Struts.
Two plug-in are available StrutsCX and stxx 
I will wish to have returns on their use:

- which is the easiest tool for a XSLT beginner  ?
- is it possible to use simultaneously JSP and XSLT with the two
plug-in ?

Thanks a lot

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



RE: HTML pages convert to Struts/JSP pages

2004-06-10 Thread Heligon Sandra
One person said me that it could be possible to use Struts Console.
Has soemone already used this tool to do that ?

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 09 June 2004 23:03
To: Struts Users Mailing List
Subject: Re: HTML pages convert to Struts/JSP pages


well you could start by grabbing your webapp with something like wget 
or curl.

wget -r www.mysite.com/

This would give you the rendered html to then start working from, you'd 
still have to deal with the form input when the user submits it. I dont 
know if there' s a zero-cognition, abracadabra widget to do this for 
you. It would depend on what language you where porting to.

Mark

On 9 Jun 2004, at 11:42, Heligon Sandra wrote:

>
>   Hi,
>
>   I would like to shared basic HTML pages with an other web
> application
>   which does not used Struts.
>   Is it possible to convert HTM pages to Struts views automatically ?
>   Is it an existing toolkit to do this ?
>
>   Thanks a lot in advance
>   Sandra
>
> -
> 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]



HTML pages convert to Struts/JSP pages

2004-06-09 Thread Heligon Sandra

Hi,

I would like to shared basic HTML pages with an other web
application
which does not used Struts.
Is it possible to convert HTM pages to Struts views automatically ?
Is it an existing toolkit to do this ?

Thanks a lot in advance
Sandra

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



RE: HTML pages convert to Struts/JSP pages

2004-06-09 Thread Heligon Sandra
In my Struts application I use JSP pages with DynaValidatorForm effectively
I used Struts tags html:form, html:radio, bean:message, logic:equal etc..
I would like to use basic html pages (created for an other web application)
and convert them to Struts pages in order to have all Struts facilities.


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: 09 June 2004 17:53
To: Struts Users Mailing List
Subject: Re: HTML pages convert to Struts/JSP pages


Heligon Sandra wrote:

>   I would like to shared basic HTML pages with an other web
> application
>   which does not used Struts.
>   Is it possible to convert HTM pages to Struts views automatically ?
>   Is it an existing toolkit to do this ?

Not sure what you mean by these questions? Are you sure you mean "view" 
or do you mean "forms"?

-- 
Rick

-
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 embedded web application server

2004-06-09 Thread Heligon Sandra

Hi,

I would like to know if someone has already made a Struts embedded
web application
server.
I have a lot of questions about minimum space memory, tools to embed
?

Thanks a lot in advance



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



HTML pages convert to Struts/JSP pages

2004-06-09 Thread Heligon Sandra

Hi,

I would like to shared basic HTML pages with an other web
application
which does not used Struts.
Is it possible to convert HTM pages to Struts views automatically ?
Is it an existing toolkit to do this ?

Thanks a lot in advance
Sandra


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



RE: Html:link/html:select and submit

2004-05-14 Thread Heligon Sandra
Do you confirm that the submit erase all parameters ?

I will replace the html:link by a button, 
but I have the problem for the html:select onchange.
I should use a submit to display my form again.
Is there another way ?

I tried to use a JavaScript but the submit erase parameters.
At the end of the queryString (parameter of the HttpServletRequest) 
I don't have the string "typeUpdate=change".


var enableSubmit=false;
function updateForm(form) {
if(enableSubmit) {
   form.action ='/my.do?typeUpdate=change';
   form.submit();
}
}


If I remove the submit in the JavaScript the action is not called.



Has someone already use a submit for combo change ?
I don't know very well JavaScript there is perhaps a syntax error.
I read some example with return value (true) in the JavaScript.

Thanks in advane for your help
Sandra

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 12:32
To: Struts Users Mailing List
Subject: Re: Html:link and save form



A link in HTML does not submit a form. Only submit inputs (buttons) an
images input does.
You can use javascript to do it (as you did), but then it overrides the href
set on the link (/myAction.do) and its
parameters.

Nico.


> I have a form with a htlm:link
>
>  paramName="address" onclick="document.forms[0].submit();">
>
> I need to add submit on the onclick to have changes of the form.
>
> If I don't make submit the state of the form is not saved.
>
> Is it a bug ?
>
> Sandra
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Our name has changed.  Please update your address book to the following
format: "[EMAIL PROTECTED]".

This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use
this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


-
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: Html:link and save form

2004-05-13 Thread Heligon Sandra
Hi,

Thanks for you response.

I was probably not very clear, so I prefer to explain the
configuration again.

My form is associated to a LookupDispatchAction


we have a lot of data in our form that we want to save before
displaying the next page.
That is why we add submit on the onchange



The execute function of setupLookupDispatchAction seems to be called twice.
In debug mode (step by step) several thread seem to work simultaneously: it
jumps
from a line to another without logic.

Replacing the hyperlink by an image or a button works but we need to solve
the problem for combobox (html:select).
On the Onchange method we should update fields on the form.

Sandra

-Original Message-
From: Axel Stahlhut [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 16:05
To: Struts Users Mailing List
Subject: Re: Html:link and save form


Hi Sandra,

a link never submits data of the surrounding form. If you do it the way 
you did, this should work, but if the user has javascript disabled, 
nothing is submitted. You have got to check at least for errors from 
that. But the user will never know or understand, ehat is happening. You 
should use a button, maybe an image button, and the image is the linktext?!

Regards axel

Heligon Sandra wrote:

>I have a form with a htlm:link 
>
>paramName="address" onclick="document.forms[0].submit();">
>
>I need to add submit on the onclick to have changes of the form.
>
>If I don't make submit the state of the form is not saved.
>
>Is it a bug ?
>
>Sandra
>
>
>-
>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]



Html:link and save form

2004-05-13 Thread Heligon Sandra
I have a form with a htlm:link 



I need to add submit on the onclick to have changes of the form.

If I don't make submit the state of the form is not saved.

Is it a bug ?

Sandra


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



FW: Action parameter and JavaScript

2004-05-12 Thread Heligon Sandra
In fact the parameter QueryString of the HttpRequestServlet
does not contain the method attribute when the combo box change.
For the hyperlink or button the method parameter is automlatically
added to the QueryString.
Can I force the add of the parameter through JavaScript or scriplet
on the onchange function.

-Original Message-
From: Heligon Sandra 
Sent: 12 May 2004 11:56
To: 'Struts Users Mailing List'
Subject: RE: Action parameter and JavaScript



I have only one form in my JSP.
My question was not clear that is why I explain agin my problem.

My problem is the following I have a form:


 
- with hyperlinks:
 

- with buttons


In the setupLookupDispatchAction I test the method parameter
public ActionForward execute() throws Exception
{
if ( request.getParameter( mapping.getParameter() ) == null )
{   
...
}
}

The parameter is not null for hyperlinks and buttons but not for
a combo box.

In my JSP I have a combo box and I would like to update the form
when the selection change to do this I should pass a parameter
method which should be equals to update:


function updateForm(form) {
form.action='/myLookupDispatchAction.do?method=update'; 
form.submit();
return true;
}



I don't understand how it works.
In my setupLookupDispatchAction I test request.getParameter("method")
in the JavaScript I set the parameter for the action not the request
then I is normal that in the execute method this parameter is null.

It is probably not the best way to set action it will be better to use
hidden field.
Do you have an example for what I try to do ?

Thanks in advance







-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: 12 May 2004 11:12
To: 'Struts Users Mailing List'
Subject: RE: Action parameter and JavaScript


Do you have mutiple forms on the page? Your JS function takes an argument
which it ignores and always sets the action of 'myForm'.

Try debugging with a JS alert just before you submit, showing the action
value for your action.

Having said all that, I would set the method via a hidden field on your form
rather than modifying the action.

HTH,

Paul

> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 12, 2004 8:42 AM
> To: '[EMAIL PROTECTED]'
> Subject: Action parameter and JavaScript
> 
> 
> I use a JavaScript in a form to set an action.
> But I am the following problem, I should pass
> a parameter to the action. I would like to know 
> the syntax.
> 
> Here is my code:
> 
> 
> 
> function updateForm(form) 
> {
>   myForm.action='/myLookupDispatchAction.do?method=newSVC_One';   
>   myForm.submit();
>   return true;
> }
> 
> 
> 
> 
> 
> At the runtime when the combo box change the parameter method 
> is null.
> I tried document.forms[0].method.value="newSVC_One";
> but it does not work.
> 
> Thanks a lot in advance
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.
**


-
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: Action parameter and JavaScript

2004-05-12 Thread Heligon Sandra

I have only one form in my JSP.
My question was not clear that is why I explain agin my problem.

My problem is the following I have a form:


 
- with hyperlinks:
 

- with buttons


In the setupLookupDispatchAction I test the method parameter
public ActionForward execute() throws Exception
{
if ( request.getParameter( mapping.getParameter() ) == null )
{   
...
}
}

The parameter is not null for hyperlinks and buttons but not for
a combo box.

In my JSP I have a combo box and I would like to update the form
when the selection change to do this I should pass a parameter
method which should be equals to update:


function updateForm(form) {
form.action='/myLookupDispatchAction.do?method=update'; 
form.submit();
return true;
}



I don't understand how it works.
In my setupLookupDispatchAction I test request.getParameter("method")
in the JavaScript I set the parameter for the action not the request
then I is normal that in the execute method this parameter is null.

It is probably not the best way to set action it will be better to use
hidden field.
Do you have an example for what I try to do ?

Thanks in advance







-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: 12 May 2004 11:12
To: 'Struts Users Mailing List'
Subject: RE: Action parameter and JavaScript


Do you have mutiple forms on the page? Your JS function takes an argument
which it ignores and always sets the action of 'myForm'.

Try debugging with a JS alert just before you submit, showing the action
value for your action.

Having said all that, I would set the method via a hidden field on your form
rather than modifying the action.

HTH,

Paul

> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 12, 2004 8:42 AM
> To: '[EMAIL PROTECTED]'
> Subject: Action parameter and JavaScript
> 
> 
> I use a JavaScript in a form to set an action.
> But I am the following problem, I should pass
> a parameter to the action. I would like to know 
> the syntax.
> 
> Here is my code:
> 
> 
> 
> function updateForm(form) 
> {
>   myForm.action='/myLookupDispatchAction.do?method=newSVC_One';   
>   myForm.submit();
>   return true;
> }
> 
> 
> 
> 
> 
> At the runtime when the combo box change the parameter method 
> is null.
> I tried document.forms[0].method.value="newSVC_One";
> but it does not work.
> 
> Thanks a lot in advance
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.
**


-
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]



Action parameter and JavaScript

2004-05-12 Thread Heligon Sandra
I use a JavaScript in a form to set an action.
But I am the following problem, I should pass
a parameter to the action. I would like to know 
the syntax.

Here is my code:



function updateForm(form) 
{
myForm.action='/myLookupDispatchAction.do?method=newSVC_One';   
myForm.submit();
return true;
}





At the runtime when the combo box change the parameter method 
is null.
I tried document.forms[0].method.value="newSVC_One";
but it does not work.

Thanks a lot in advance

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