RE: Form not populating from post to struts.

2003-03-24 Thread Angelo . Andreetto
Try this:

action="/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912"


> -Original Message-
> From: Simon Kelly [SMTP:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 3:18 PM
> To:   Struts Users Mailing List
> Subject:  Form not populating from post to struts.
> 
> Hi all,
> 
> Cannot for the life of me spot the problem here.
> 
> Could someone check the following and see if there is an obvoius error
> that
> would mean struts wouldn't populate the form.
> 
> Cheers
> 
> Simon
> 
> Form, stripped from the html:
> 
> [snip]
>  action="/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912"
> method="post">
> [snip]
> 
> [snip]
>  -
> eg1_hv_01
>  -
> eg1_mag_01
>  -
> eg1_mag_02
> [snip]
> 
> 
> 
> Form and action-mapping from struts-conf.xml:
> 
> [snip]
>  type="com.katrin.presentation.actionform.SignalSelectForm">
> 
> [snip]
>  name="signalSelectForm"
> scope="request"
> validate="false"
> type="com.katrin.presentation.action.SignalSelectAction">
> 
> 
> 
> Form:
> =
> 
> public class SignalSelectForm extends ActionForm{
> 
> private ArrayList tables = new ArrayList();
> private String startDate;
> private String endDate;
> private String dateSearchType;
> private ArrayList signals = new ArrayList();
> 
> public void setTables(String newtable) {
> this.tables.add(newtable);
> }
> 
> public void setStartDate(String date) {
> this.startDate = new String(date);
> }
> 
> public void setEndDate(String date) {
> this.endDate = new String(date);
> }
> 
> public void setDataSearchType(String type) {
> this.dateSearchType = new String(type);
> }
> 
> public void setSignals(String newsignal) {
> this.signals.add(newsignal);
> }
> 
> public ArrayList getTables() {
> return this.tables;
> }
> 
> public String getStartDate() {
> return this.startDate;
> }
> 
> public String getEndDate() {
> return this.endDate;
> }
> 
> public String getDataSearchType() {
> return this.dateSearchType;
> }
> public ArrayList getSignals() {
> return this.signals;
> }
> 
> public void reset() {
> this.tables.clear();
> this.startDate = new String("");
> this.endDate = new String("");
> this.dateSearchType = new String("");
> this.signals.clear();
> }
> }
> 
> Institut fuer
> Prozessdatenverarbeitung
> und Elektronik,
> Forschungszentrum Karlsruhe GmbH,
> Postfach 3640,
> D-76021 Karlsruhe,
> Germany.
> 
> Tel: (+49)/7247 82-4042
> E-mail : [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



RE: Form not populating from post to struts.

2003-03-24 Thread Angelo . Andreetto
I know that, but simply I've never had to pass that info using a form. :-]
Why do you put the session id in the form?

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 3:29 PM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Form not populating from post to struts.
> 
>  jsessionid=XXX is the browsers way of passing session info..And it is not
> passed as a normal üparameter(some.do?jsessionid=XXX)..So what u have
> suggested will not work..
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Form not populating from post to struts.
> 
> 
> Try this:
>   
> action="/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912"
> 
> 
> > -Original Message-
> > From:   Simon Kelly [SMTP:[EMAIL PROTECTED]
> > Sent:   Monday, March 24, 2003 3:18 PM
> > To: Struts Users Mailing List
> > Subject:Form not populating from post to struts.
> > 
> > Hi all,
> > 
> > Cannot for the life of me spot the problem here.
> > 
> > Could someone check the following and see if there is an obvoius error
> > that
> > would mean struts wouldn't populate the form.
> > 
> > Cheers
> > 
> > Simon
> > 
> > Form, stripped from the html:
> > 
> > [snip]
> >  > action="/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912"
> > method="post">
> > [snip]
> > 
> > [snip]
> >  -
> > eg1_hv_01
> >  -
> > eg1_mag_01
> >  -
> > eg1_mag_02
> > [snip]
> > 
> > 
> > 
> > Form and action-mapping from struts-conf.xml:
> > 
> > [snip]
> >  > type="com.katrin.presentation.actionform.SignalSelectForm">
> > 
> > [snip]
> >  > name="signalSelectForm"
> > scope="request"
> > validate="false"
> > type="com.katrin.presentation.action.SignalSelectAction">
> > 
> > 
> > 
> > Form:
> > =
> > 
> > public class SignalSelectForm extends ActionForm{
> > 
> > private ArrayList tables = new ArrayList();
> > private String startDate;
> > private String endDate;
> > private String dateSearchType;
> > private ArrayList signals = new ArrayList();
> > 
> > public void setTables(String newtable) {
> > this.tables.add(newtable);
> > }
> > 
> > public void setStartDate(String date) {
> > this.startDate = new String(date);
> > }
> > 
> > public void setEndDate(String date) {
> > this.endDate = new String(date);
> > }
> > 
> > public void setDataSearchType(String type) {
> > this.dateSearchType = new String(type);
> > }
> > 
> > public void setSignals(String newsignal) {
> > this.signals.add(newsignal);
> > }
> > 
> > public ArrayList getTables() {
> > return this.tables;
> > }
> > 
> > public String getStartDate() {
> > return this.startDate;
> > }
> > 
> > public String getEndDate() {
> > return this.endDate;
> > }
> > 
> > public String getDataSearchType() {
> > return this.dateSearchType;
> > }
> > public ArrayList getSignals() {
> > return this.signals;
> > }
> > 
> > public void reset() {
> > this.tables.clear();
> > this.startDate = new String("");
> > this.endDate = new String("");
> > this.dateSearchType = new String("");
> > this.signals.clear();
> > }
> > }
> > 
> > Institut fuer
> > Prozessdatenverarbeitung
> > und Elektronik,
> > Forschungszentrum Karlsruhe GmbH,
> > Postfach 3640,
> > D-76021 Karlsruhe,
> > Germany.
> > 
> > Tel: (+49)/7247 82-4042
> > E-mail : [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> IMPORTANT: 
> This e-mail transmission is intended for the named addressee(s) only. 
> Its contents are private, confidential and protected from disclosure and
> should not be read, copied or disclosed by any other person. 
> If you are not the intended recipient, we kindly ask you to notify the
> sender immediately by telephone (+41-91-612 26 11), 
> to redirect the message to the account "[EMAIL PROTECTED]" and to delete
> this
> e-mail. 
> E-mail transmissions may be intercepted, altered or read by unauthorized
> persons and may contain viruses. Therefore, it is recommended that you use
> regular mail or courier services for any information intended to be
> confidential. However, by sending us messages through e-mail, you
> authorize
> and instruct us to correspond by e-mail in the relevant matter. 
> Thank you. 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -

RE: Pull-down-menue for "language select" at logon

2003-03-26 Thread Angelo . Andreetto
Why not using a toolbar with icons so users can change the language whenever
they want?
something like:



  
  function changeLanguage(language) {
 
document.location='<%=request.getContextPath()%>/changelanguage.do?input=<%=
request.getServletPath()%>&language=' + language;
  }




  
 

 
   
 
 
 
 


   
  
 



for (var i=0; i < document.all["icon"].length ;i++) 
document.all["icon"][i].style.cursor = 'hand';
document.all["ntext"].focus();


> -Original Message-
> From: Manuel Lenz [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 9:10 AM
> To:   [EMAIL PROTECTED]
> Subject:  Pull-down-menue for "language select" at logon
> 
> 
> Hi Struts-Community,
> I´m developing a smart workflow for ordering materials in our company.
> This web-application will be used in several countries, so we have to
> implement several languages.
> The most users may not have a browser using their language.
> I´d like to desing a "pull-down"-menue where every user can select his
> language at logon.
> Can anybody help me doing this?
> At the moment i have created some .properties-files and .jsp-files using
> them.
> 
> Greetings,
> Manuel Lenz
> 
> e-mail: [EMAIL PROTECTED]
> web: www.viessmann.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



RE: Pull-down-menue for "language select" at logon

2003-03-26 Thread Angelo . Andreetto
it could be something like this, but it depends mostly on your back end
system...


public final class ChangeLanguageAction extends Action {

  public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws IOException, ServletException {

Locale locale = getLocale(request);
MessageResources resource = getResources();
ActionErrors errors = new ActionErrors();
ModelBeans beans = new ModelBeans();

String method = "perform";
String className = this.getClass().getName();
String activity = resource.getMessage("activity.action." +
className.substring(className.lastIndexOf(".") + 1));
Log log = LogFactory.getLog(className);

if (beans.isNew(request)) return mapping.findForward("home");

// Get unsuccess action forward
String input = ((LocaleForm) form).getInput();
log.debug(method + ":input = " + input);
ActionForward forward = new ActionForward((input !=
null?input:mapping.getInput()));

log.info(method + ":begin");

String language = ((LocaleForm) form).getLanguage();
log.debug(method + ":language = " + language);

ProfileBean profileBean = (ProfileBean)
beans.getBean(BEANFACTORY.PROFILE_KEY, request);

setLocale(request,new Locale(language, ""));

if (language.compareTo(Locale.ITALIAN.getLanguage()) == 0)
  profileBean.setLanguageId(APP._IT);
else if (language.compareTo(Locale.ENGLISH.getLanguage()) == 0)
  profileBean.setLanguageId(APP._EN);
else if (language.compareTo(Locale.GERMAN.getLanguage()) == 0)
  profileBean.setLanguageId(APP._DE);
else if (language.compareTo(Locale.FRENCH.getLanguage()) == 0)
  profileBean.setLanguageId(APP._FR);
else if (language.compareTo("es") == 0)
  profileBean.setLanguageId(APP._ES);
else
  profileBean.setLanguageId(APP._EN);

if (!errors.empty())
  saveErrors(request, errors);

log.debug(method + ":forward to " + forward.getPath());
log.info(method + ":end");

return forward;
  }

}



> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 9:31 AM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Pull-down-menue for "language select" at logon
> 
> Do you have an example of "changelanguage.do"?
> 
>  
>   _  
> 
> Thank You
>  
> Mick Knutson
>  
> Sr. Designer - Project Trust
> aUBS AG, Financial - Zürich
> Office: +41 (0)1/234.42.75
> Internal: 48194
> Mobile: 079.726.14.26
>   _  
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 9:18 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Pull-down-menue for "language select" at logon
> 
> 
> Why not using a toolbar with icons so users can change the language
> whenever
> they want?
> something like:
> 
> 
> 
>   
>   function changeLanguage(language) {
>  
> document.location='<%=request.getContextPath()%>/changelanguage.do?input=<
> %=
> request.getServletPath()%>&language=' + language;
>   }
> 
> 
> 
>  background='/icon.logo.jpg'>
>   
>  
> 
>  
>  valign=middle>   
>  ONCLICK='changeLanguage("en");' TITLE=' key="language.english"/>'> 
>  ONCLICK='changeLanguage("de");' TITLE=' key="language.german"/>'> 
>  ONCLICK='changeLanguage("fr");' TITLE=' key="language.french"/>'> 
>  ONCLICK='changeLanguage("it");' TITLE=' key="language.italian"/>'> 
> 
> 
>
> 
>  
> 
> 
> 
> for (var i=0; i < document.all["icon"].length ;i++) 
> document.all["icon"][i].style.cursor = 'hand';
> document.all["ntext"].focus();
> 
> 
> > -Original Message-
> > From:   Manuel Lenz [SMTP:[EMAIL PROTECTED]
> > Sent:   Wednesday, March 26, 2003 9:10 AM
> > To: [EMAIL PROTECTED]
> > Subject:Pull-down-menue for "language select" at logon
> > 
> > 
> > Hi Struts-Community,
> > I´m developing a smart workflow for ordering materials in our company.
> > This web-application will be used in several countries, so we have to
> > implement several languages.
> > The most users may not have a browser using their language.
> > I´d like to desing a "pull-down"-menue where every user can select his
> > language at logon.
> > Can anybody help me doing this?
> > At the moment i have created some .properties-files and .jsp-files using
> > them.
> > 
> > Greetings,
> > Manuel Lenz
> > 
> > e-mail: [EMAIL PROTECTED]
> > web: www.viessmann.com
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> IMPORTANT: 
> This e-mail transmission is intended for the named addressee(s) only. 
> Its contents are private, confidential and protected from disclosure and
> should not be

RE: [FRIDAY]Re: Just let me be the first to say...

2003-03-28 Thread Angelo . Andreetto
Anybody outta there who know how to fix my voodoo doll configuration? 
She doesn't link with the boss so the best part of it is simply useless
;-]

> -Original Message-
> From: Becky Norum [SMTP:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 12:01 PM
> To:   Struts Users Mailing List
> Subject:  Re: [FRIDAY]Re: Just let me be the first to say...
> 
> On Fri, 2003-03-28 at 05:50, Simon Kelly wrote:
> > Was just lookin for something that was close to a top-hat.  I get bored
> > easily ;-) and I don't have my teddy bear to play with :-(
> 
> awww.. I have a voodoo doll at my desk that keeps me entertained.
> Great for getting out all sorts of frustrations.. :D
> 
> Becky
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



Upgrade from struts 1.0

2003-03-31 Thread Angelo . Andreetto
I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do
anybody have a to-do-list or something similar to convert  the old
struts-config.xml into the new DTD to let me have some idea of the effort
before to start?

Angelo Andreetto

Analyst programmer / Application Products
Boss Lab SA, via Cantonale, CH - 6934 Bioggio
tel. +41 (0)91 612 26 65 - fax +41 (0)91 612 27 72
[EMAIL PROTECTED] www.bosslab.com







IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



RE: Struts link to map viewer

2003-04-01 Thread Angelo . Andreetto
document.formName.action 
will return the string rappresenting in the action attribute of the Form
object

> -Original Message-
> From: Balraj Goulikar [SMTP:[EMAIL PROTECTED]
> Sent: Monday, March 31, 2003 7:08 PM
> To:   Struts Users Mailing List
> Subject:  Re: Struts link to map viewer
> 
> hi,
> i have a small problem, which might be for html.
> 
> i have a form called frm
> 
> 
> 
> wen i refer document.frm.action.value it refers to text box
> 
> how to refer the value of action of form.
> 
> i think i m confused or missing my basics
> 
> balraj
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



RE: Struts link to map viewer

2003-04-01 Thread Angelo . Andreetto
'sorry didn't noticed that. Obviously you cannot use any reserved word as
variable name ;-]

> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:54 PM
> To:   Struts Users Mailing List
> Subject:  RE: Struts link to map viewer
> 
> Not in this case as he has shadowed that property by calling his field
> "action" - which is why instead of getting the forms action attribute he
> gets the action field in that form.
> "action" is not a suitable name for any form fields if one intends to make
> use of the form.action attribute to read or modify in javascript the url
> to
> which form is submitted...
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 1 April 2003 23:23
> To: [EMAIL PROTECTED]
> Subject: RE: Struts link to map viewer
> 
> 
> document.formName.action
> will return the string rappresenting in the action attribute of the Form
> object
> 
> > -Original Message-
> > From:   Balraj Goulikar [SMTP:[EMAIL PROTECTED]
> > Sent:   Monday, March 31, 2003 7:08 PM
> > To: Struts Users Mailing List
> > Subject:Re: Struts link to map viewer
> >
> > hi,
> > i have a small problem, which might be for html.
> >
> > i have a form called frm
> > 
> > 
> >
> > wen i refer document.frm.action.value it refers to text box
> >
> > how to refer the value of action of form.
> >
> > i think i m confused or missing my basics
> >
> > balraj
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> IMPORTANT:
> This e-mail transmission is intended for the named addressee(s) only.
> Its contents are private, confidential and protected from disclosure and
> should not be read, copied or disclosed by any other person.
> If you are not the intended recipient, we kindly ask you to notify the
> sender immediately by telephone (+41-91-612 26 11),
> to redirect the message to the account "[EMAIL PROTECTED]" and to delete
> this
> e-mail.
> E-mail transmissions may be intercepted, altered or read by unauthorized
> persons and may contain viruses. Therefore, it is recommended that you use
> regular mail or courier services for any information intended to be
> confidential. However, by sending us messages through e-mail, you
> authorize
> and instruct us to correspond by e-mail in the relevant matter.
> Thank you.
> 
> 
> -
> 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]
> 
> 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account "[EMAIL PROTECTED]" and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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