struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mick.Knut...@ubsw.com
Subject RE: Pull-down-menue for "language select" at logon
Date Wed, 26 Mar 2003 08:30:47 GMT
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: Angelo.Andreetto@bosslab.ch [mailto:Angelo.Andreetto@bosslab.ch]
Sent: Wednesday, March 26, 2003 9:18 AM
To: struts-user@jakarta.apache.org
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:

<SCRIPT LANGUAGE="JAVASCRIPT">

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

</SCRIPT>

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%"
background='<bean:write name="img"/>/icon.logo.jpg'>
<TR id="OLD"  style="display: ;">  
    <TD height='35' WIDTH="200">&nbsp;</TD>
    <TD width = 128 VALIGN="MIDDLE" ALIGN='left;'></TD>
    <TD WIDTH = 250  VALIGN='BOTTOM' ALIGN='CENTER'>&nbsp;</TD>
    <TD width="150" ID="lang" align = "right"
valign=middle>&nbsp;&nbsp;&nbsp;
        <IMG ID="icon" SRC='<bean:write name="img"/>/gb.jpg'
ONCLICK='changeLanguage("en");' TITLE='<bean:message
key="language.english"/>'>&nbsp;
        <IMG ID="icon" SRC='<bean:write name="img"/>/de.jpg'
ONCLICK='changeLanguage("de");' TITLE='<bean:message
key="language.german"/>'>&nbsp;
        <IMG ID="icon" SRC='<bean:write name="img"/>/fr.jpg'
ONCLICK='changeLanguage("fr");' TITLE='<bean:message
key="language.french"/>'>&nbsp;
        <IMG ID="icon" SRC='<bean:write name="img"/>/it.jpg'
ONCLICK='changeLanguage("it");' TITLE='<bean:message
key="language.italian"/>'>&nbsp;
    </TD>
</TR>
 <TR id="OLD" style="display: ;">  
	 <TD WIDTH="50" colspan="5">&nbsp;</TD>
 </TR>
</TABLE>

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

> -----Original Message-----
> From:	Manuel Lenz [SMTP:LzM@viessmann.com]
> Sent:	Wednesday, March 26, 2003 9:10 AM
> To:	struts-user@jakarta.apache.org
> 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: lzm@viessmann.com
> web: www.viessmann.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
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 "info@bosslab.ch" 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message