cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Accessing user input data from multiple external jsp includes

Former Member
0 Likes
5,407

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

View Entire Topic
Former Member
0 Likes

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

Former Member
0 Likes

Thank you for giving such helpful link. This link certainly helpful to me while client side access.

Now my problem is how to access all these controls in the server(Processor). I am able to access controls within the same form/jsp page from which event(button click) is generated.

I am not using htmlb layouts, page contains tabstrips, tableviews.

Now my problem is how to access all these controls in the server(Processor).

Thanks

Markandeya

Former Member
0 Likes

Well, when you are using using multiple forms on a page, then only one of them will be posted.

Therfore, you cannot access all of the elements on the page from your server component.

You could "hack-it-up" by adding hidden inputfields to all forms which keep the information from the other forms (and their value is updated by javascripting). But this is not a good solution.

Think you need to redesign the screen flow, or find some new way of having several jsp's on one page

Former Member
0 Likes

Thank you,

The hidden fields concept seems to be good idea. But i am having lot of fields and tracking them using javascript on each event may be tedious.

From the http request/ any other way to access all fields..

Instead of jsp action includes, if i use jsp static includes then also the 64 kb problem is coming.

If no solution, then i need to redisgn the screen

Thanks & Regards

Markandeya

Former Member
0 Likes

No, the http request only contains the fields from the form that was submitted