2002-11-13, sze keltezéssel Marcus Biel ezt írta:
> ARG! What the hell is wrong here ???
> import java.util.Locale;
> import java.lang.*;
> import java.sql.*;
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> 
> public class SetLocalAction extends Action {
>       public ActionForward perform(ActionMapping mapping,
>       ActionForm form, HttpServletRequest request, HttpServletResponse
> response){
> 
>   String localString = (SetLocalForm)form.getLocal();

String localString = ((full.package.to.SetLocalForm)form).getLocal();

> 
>   Locale local = new java.util.Local(localString, localString);

Locale local = new Locale(localString, localString);

>       request.getSession().setAttribute(Action.LOCALE_KEY, local);
>       return mapping.findForward("setLocalActionDone");
>    }
> }

Maybe you should try some java IDE, as they would highlight the classes
not imported, mistyped, and support you with popups with the method
names. 

Hth,

Tib


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

Reply via email to