Skip to Content
avatar image
Former Member

Accessing user input data from multiple external jsp includes

Hi all,

As my jsp page is becoming a long file, due to 64kb method limit the jsp page is giving java.lang.VerifyError during jsp compilation. Due to this reason i have split the jsp page into 3 seperate jsp pages and included them using action tags. All these three page will be having their own <hbj:content id="a1PageContext" ><hbj:form id="form1" >... hbj:content id="a2PageContext" ><hbj:form id="form2" >...hbj:content id="a3PageContext" ><hbj:form id="form3" >.

Now when i click a button in the 3rd jsp page , in the pageprocessor, i could able to access the controls within the current(3rd) jsp page only using method

InputField inputFld = (InputField)this.getComponentForId("input1");

It is giving null for controls of jsp page1 & 2.

How cxan i access these controls data in the jspGynpage.

Your help is highly appreciable.

Thanks & Regards

Markandeya

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 21, 2004 at 07:40 AM

    The id you give a htmlb element, is not the same which it uses in the create html. Therefore javascripts wont work.

    See http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/javascriptapi_dev.html for more info.

    One of the things taking up alot of space is the htmlb layout elements. If this is the reason you have such a big file you should considere using tables instead

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2004 at 07:46 AM

    hi

    we had the same problem, and maybe our solution will help :

    our page contained a main tab strip with 5 items (tabs).

    we broke the large JSP to 5 smaller JSPs the following way :

    JSP1:

    <some general code>

    <tab>

    <item1 title>

    <item code>

    <item2 title>

    <item3 title>

    <item4 title>

    <item5 title>

    JSP2:

    <some general code>

    <tab>

    <item1 title>

    <item2 title>

    <item code>

    <item3 title>

    <item4 title>

    <item5 title>

    JSP3:

    <some general code>

    <tab>

    <item1 title>

    <item2 title>

    <item3 title>

    <item code>

    <item4 title>

    <item5 title>

    JSP4:

    <some general code>

    <tab>

    <item1 title>

    <item2 title>

    <item3 title>

    <item4 title>

    <item code>

    <item5 title>

    JSP5:

    <some general code>

    <tab>

    <item1 title>

    <item2 title>

    <item3 title>

    <item4 title>

    <item5 title>

    <item code>

    This way, each of the 5 JSPs is significantly smaller than the original one we had, thus avoiding approaching the 64k limit.

    We were able to do it thanks to the fact that our user does not HAVE to see all fields at the same time.

    I hope this helps

    zach

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Prasad,

      The solution you are splitting the jsp pages in this approach is static include using <%@include file="xxx.jsp" %>. At the time of compilation main jsp will includes all its child jsps in a single jsp/servelet. This approach we can not avoid 64K problem.

      Dymnamic include using action tag <jsp:include />

      Will not incude the child jsps in Master jsp but runs as

      separate/external servlet. (this will reduce code content of single jsp).

      If u have any solution with Dymnamic include , pl let me know.

      Regards

      Markandeya