20100913

1、左边点击,右边显示

     1、ajax,有问题(图片背景没有显示,样式不能很好的使用)

     2、刷新整个页面,通过后台返回

 

2、

action:

request.setAttribute("titleInfo", "crecorder.page.userInfo");//内容区域的标题

 

jsp:

<bean:message key="${titleInfo}"/>

 

<bean:message key="<%=request.getAttribute("titleInfo")%>/>则不行

 

3、

问题代码:

<tr>
                <td height="37" align="center" valign="middle">&nbsp;</td>
                <td height="37" align="left" valign="middle"><bean:message key="crecorder.page.recMail"/>:</td>
                <td align="center">&nbsp;</td>
                 <td width="6%" align="left">
                 <logic:equal value="1" name="recMailFlag">
                  <input type="radio" name="recMail" value="1" checked="checked" />
                 </logic:equal>
                 <logic:equal value="0" name="recMailFlag">
                  <input type="radio" name="recMail" value="0" />
                 </logic:equal>
                </td>
                <td width="49%" align="left"><bean:message key="x431.website.feedback.admin.payforY"/></td>
              </tr>
              <tr>
                <td height="37" align="center" valign="middle">&nbsp;</td>
                <td height="37" align="left" valign="middle">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="left">
                  <logic:equal value="1" name="recMailFlag">
                  <input type="radio" name="recMail" value="1"/>
                 </logic:equal>
                 <logic:equal value="0" name="recMailFlag">
                  <input type="radio" name="recMail" value="0" checked="checked"/>
                 </logic:equal>
                </td>
                <td width="49%" align="left"><bean:message key="x431.website.feedback.admin.payforN"/></td>
              </tr>

 

 

用jsp修改后:

 

 <tr>
                <td height="37" align="center" valign="middle">&nbsp;</td>
                <td height="37" align="left" valign="middle"><bean:message key="crecorder.page.recMail"/>:</td>
                <td align="center">&nbsp;</td>
                 <td width="6%" align="left">
                  <input type="radio" name="recMail" value="1"
                 <%
                 Integer recMailFlag = (Integer)session.getAttribute("recMailFlag");
                 if(recMailFlag!=null&recMailFlag==1){
                 %>
                 checked="checked"
                 <%
                 }
                  %>
                  >
                </td>
                <td width="49%" align="left"><bean:message key="x431.website.feedback.admin.payforY"/></td>
              </tr>
              <tr>
                <td height="37" align="center" valign="middle">&nbsp;</td>
                <td height="37" align="left" valign="middle">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="left">
                  <input type="radio" name="recMail" value="0"
                 <%
                 Integer recMailFlag2 = (Integer)session.getAttribute("recMailFlag");
                 if(recMailFlag2!=null&recMailFlag2==0){
                 %>
                 checked="checked"
                 <%
                 }
                  %>
                  >
                </td>
                <td width="49%" align="left"><bean:message key="x431.website.feedback.admin.payforN"/></td>
              </tr>

你可能感兴趣的:(bean,Ajax,jsp)