<small id='vR2m5'></small><noframes id='vR2m5'>

<tfoot id='vR2m5'></tfoot>
      • <bdo id='vR2m5'></bdo><ul id='vR2m5'></ul>
    1. <legend id='vR2m5'><style id='vR2m5'><dir id='vR2m5'><q id='vR2m5'></q></dir></style></legend>
      <i id='vR2m5'><tr id='vR2m5'><dt id='vR2m5'><q id='vR2m5'><span id='vR2m5'><b id='vR2m5'><form id='vR2m5'><ins id='vR2m5'></ins><ul id='vR2m5'></ul><sub id='vR2m5'></sub></form><legend id='vR2m5'></legend><bdo id='vR2m5'><pre id='vR2m5'><center id='vR2m5'></center></pre></bdo></b><th id='vR2m5'></th></span></q></dt></tr></i><div id='vR2m5'><tfoot id='vR2m5'></tfoot><dl id='vR2m5'><fieldset id='vR2m5'></fieldset></dl></div>

        wicket 框架中请求对象的会话处理

        时间:2023-09-24

          <i id='QgguM'><tr id='QgguM'><dt id='QgguM'><q id='QgguM'><span id='QgguM'><b id='QgguM'><form id='QgguM'><ins id='QgguM'></ins><ul id='QgguM'></ul><sub id='QgguM'></sub></form><legend id='QgguM'></legend><bdo id='QgguM'><pre id='QgguM'><center id='QgguM'></center></pre></bdo></b><th id='QgguM'></th></span></q></dt></tr></i><div id='QgguM'><tfoot id='QgguM'></tfoot><dl id='QgguM'><fieldset id='QgguM'></fieldset></dl></div>
        1. <legend id='QgguM'><style id='QgguM'><dir id='QgguM'><q id='QgguM'></q></dir></style></legend>

          <small id='QgguM'></small><noframes id='QgguM'>

            <tfoot id='QgguM'></tfoot>
              <tbody id='QgguM'></tbody>

              <bdo id='QgguM'></bdo><ul id='QgguM'></ul>
                • 本文介绍了wicket 框架中请求对象的会话处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  1) 我在下面给出的请求对象中添加了一个元素,我需要在我的网页中获取/读取它,我该怎么做?

                  1) i have added an element in request object given below, i need to get/read this in my webpage, how can i do it?

                  <input type="hidden"> wicket:id="submitted" value="false" />
                  

                  例如:在 servlet 中,使用隐藏会话中的 request.getParameter("submitted").

                  eg: in servlet, use request.getParameter("submitted") from hidden session.

                  2) 在我的控制器类中,我想在会话或隐藏字段中设置值,以便我可以识别用户是否已经处理了请求或进入了我的代码块.

                  2) in my controller class i want to set the value in session or hidden field, so that i can identify the user if he already processed the request or enetered my block of code.

                  推荐答案

                  1) 使用HiddenField

                  2) 使用自定义 WebSession 对象:

                  2) use a custom WebSession object:

                  public class MySession extends WebSession{
                      public Mysession(Request request){super(request);}
                      private boolean completedRegistration;
                  
                      public boolean hasCompletedRegistration() {
                          return completedRegistration;
                      }
                  
                      public void setCompletedRegistration(boolean completedRegistration) {
                          this.completedRegistration = completedRegistration;
                      }
                  }
                  

                  这篇关于wicket 框架中请求对象的会话处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Java,Spring Framework MVC - 重定向 下一篇:你在 Scala/Lift 中开发的经验是什么?

                  相关文章

                  <i id='VsUOR'><tr id='VsUOR'><dt id='VsUOR'><q id='VsUOR'><span id='VsUOR'><b id='VsUOR'><form id='VsUOR'><ins id='VsUOR'></ins><ul id='VsUOR'></ul><sub id='VsUOR'></sub></form><legend id='VsUOR'></legend><bdo id='VsUOR'><pre id='VsUOR'><center id='VsUOR'></center></pre></bdo></b><th id='VsUOR'></th></span></q></dt></tr></i><div id='VsUOR'><tfoot id='VsUOR'></tfoot><dl id='VsUOR'><fieldset id='VsUOR'></fieldset></dl></div>
                • <small id='VsUOR'></small><noframes id='VsUOR'>

                  • <bdo id='VsUOR'></bdo><ul id='VsUOR'></ul>

                • <tfoot id='VsUOR'></tfoot>

                    1. <legend id='VsUOR'><style id='VsUOR'><dir id='VsUOR'><q id='VsUOR'></q></dir></style></legend>