struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo.Andree...@bosslab.ch
Subject RE: Pull-down-menue for "language select" at logon
Date Wed, 26 Mar 2003 08:18:06 GMT
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


Mime
View raw message