3 Replies Latest reply on Mar 23, 2007 11:18 AM by Thomas Heute

    how to get  reqest parameter   [multi lang -for Big5 (taiwan

    kevnlin kevnlin Newbie

      help me
      when I submit this jsp page (input chinese word)
      the portlet class is show ???? , not my language

      this is my portlet class
      public void processAction(JBossActionRequest req, JBossActionResponse resp) throws PortletException, PortletSecurityException, IOException
      {
      opmode= req.getParameter("opmode");
      // if(opmode == null ){opmode="list";}
      // resp.setProperty("opmode",opmode);


      resp.setRenderParameter("opmode",opmode);
      opname=req.getParameter("opname"); if(opname == null){opname="";}
      opdesc=req.getParameter("opdesc"); if(opdesc == null){opdesc="";}
      disable=req.getParameter("disable"); if(disable == null){disable="";}
      oplink=req.getParameter("oplink"); if(oplink == null){oplink="";}
      oid=req.getParameter("oid"); if(oid == null){oid="";}
      resp.setRenderParameter("oid",oid);



      this is my jsp

      <%@ page language="java" contentType="text/html;charset=MS950" import ="kevn.page.*,java.util.*,org.gotdns.fedora.vo.*,java.lang.*,javax.rmi.PortableRemoteObject,javax.naming.*,java.beans.*,javax.naming.InitialContext, java.util.Hashtable"%>
      <%@ taglib uri="/WEB-INF/portlet.tld" prefix="portlet" %>
      <%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
      <%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0" prefix="i18n" %>
      <i18n:bundle baseName="i18n-test" id="bundle"/>



      <%@ page isELIgnored ="false" %>

      <portlet:defineObjects/><%renderResponse.setTitle(bundle.getString("op_title"));%>

      <form name="form1" action="<portlet:actionURL > <portlet:param name="opmode" value="addup"/></portlet:actionURL>" method="post">



      <i18n:message key="op_tadd"/>


      <a href="<portlet:renderURL portletMode="VIEW">
      <portlet:param name="opmode" value=""/>
      </portlet:renderURL>">











       




      <i18n:message key="op_opname"/>

















      <i18n:message key="op_disable"/>



      <i18n:message key="disableY"/>
      <i18n:message key="disableN"/>





      <i18n:message key="op_oplink"/>







      <i18n:message key="op_opdesc"/>









      <input type="reset" name="Submit" value="<i18n:message key="op_canceladd"/>" class="portlet-form-button">
      <input type="submit" name="Submit2" value="<i18n:message key="op_submitadd"/>" class="portlet-form-button">