JSP Creation for Smart Phone¶
JSP of PC version displays data by using javascript(jQuery),
but JSP of smart phone version uses only JSP for the creation and does not
use javascript.
<*> jQuery mobile function is partly used.
Notes
[file name + "_sp.jsp"] should be provided even for the JSP which has no data display.
Obtaining Data and Screen Display¶
As shown below, in the [kimw:load4View] in EL format (function) data can be obtained in scriptlet (EL format) where it is usually obtained by ajax.
<%@ taglib prefix="kimw" uri="http://kaiden.slcs.co.jp/taglib/imw" %> <c:set var="gadgetClass">gadget class</c:set> <c:set var="gadgetVariation">gadget variation</c:set> <c:set var="gadgetInstance">${param.gadget_instance}</c:set> <c:set var="gadgetId">${gadgetClass}_${gadgetVariation}_${gadgetInstance}</c:set> <c:set var="componentName">component name</c:set> <c:set var="imwSystemMatterId">${param.imwSystemMatterId}</c:set> <c:set var="imwUserDataId">${param.userDataId}</c:set> <c:set var="searchCriteriaCompany">${param.searchCriteriaCompany}</c:set> <%-- loading gadget data --%> <c:set var="gadgetResponse" value="${kimw:load4View(componentName, imwSystemMatterId, imwUserDataId, gadgetId, searchCriteriaCompany)}"></c:set> <%-- display gadget data on the screen --%> <c:forEach items="${gadgetResponse.data[TM table ID]}" var="detailData"> <c:out value="${detailData.item1}"> <c:out value="${detailData.item2}"> <c:out value="${detailData.item3}"> </c:forEach>Notes
Component name specifies Action class name which does ajax communication.It is processed by pulling out from DI container with the specified name.