Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write custom Tags for the existing java scriplet in JSP page?  RSS feed

 
Naveen Morrise
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have already an JSP page being existed and am in the process of re-writing the page with custom tags. I was privided a Java helper class and a JSP to re-write that. As, I am completely new to custom tags, I am scraping this message. If an one can help me out with atleast one example then it would be great.

For example:
If I have the following scriplet in JSP page, then What java code should I write in helper class and how can I use that in JSP page? Will be waiting for some reply ASAP..

<%
out.println(Layer.generate(pageKey, "customerLayer",ICustomerNonIndividualKeys.CUSTOMER_TYPE,layerDriver, layers));
out.println(TextBox.generatePageData(
IKeys.ACTION_KEY, actionKey));
out.println(TextBox.generatePageData(
IContextKeys.BANK_ID_DEFAULTED, bankIDDefaulted));

out.println(Layer.generate(
pageKey, "miniSearchLayer0", IKeys.PATH_KEY, pathKey, layers ));
out.println(Layer.generate(
pageKey, "bankIDLayer", IContextKeys.BANK_ID_FLAG, bankIDDefaulted, layers ));

row.clearAll();
row.setValue(0,"Bank ID");
row.setCellStyle(0,IFormElement.DISPLAY_WHITE_NOBORDER);
row.setTextStyle(0,IFormElement.SECTION_HEADER);
row.setWidth(0,"100%");

out.println(TableRenderer.renderRow(row));

out.println(TableRenderer.renderTableStart());

Map instanceMethod = new HashMap();
instanceMethod.put(IFormElement.ON_CHANGE, "toggleProfiles(this.form, this.value)");
out.println(TableRenderer.renderSingleLabelValueRow(
"Select Bank ID:", DropDownBox.generate(
PROFILE_CONTEXT, 1, bankIDs, customerKey, instanceMethod, false)));

out.println(TableRenderer.renderTableFinish());
%>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!