A long JSP just worked in Tomcat 6.0.29. Somehow when we put it in 6.0.35, it got error "Unresolved compilation problem".
It seems that the new Jasper (/lib/ecj-3.7.jar) just not work for large JSP. One of the solution will be using the Jasper from 6.0.29 (/lib/jasper-jdt.jar) instead.
Or.. keep using the 6.0.29 for some while...
Showing posts with label jsp. Show all posts
Showing posts with label jsp. Show all posts
Tuesday, May 29, 2012
Thursday, November 24, 2011
Using Expression Language (EL) in JSP
To use EL in JSP, a page directive has to be specified:
<%@ page isELIgnored="false" %>
Then you can use EL in the JSP, e.g.:
<logic:iterate id="var" name="sampleForm" property="list" indexId="index">
<p>${var.id}</p>
<logic:equal name="var"
property="foo"
value="${sampleForm.list[index+1].foo}">
Value is same as next entry.
</logic:equal>
</logic:iterate>
<%@ page isELIgnored="false" %>
Then you can use EL in the JSP, e.g.:
<logic:iterate id="var" name="sampleForm" property="list" indexId="index">
<p>${var.id}</p>
<logic:equal name="var"
property="foo"
value="${sampleForm.list[index+1].foo}">
Value is same as next entry.
</logic:equal>
</logic:iterate>
Getting Action Mapping in JSP
One can use "org.apache.struts.action.mapping.instance" to get the action mapping in JSP:
import org.apache.struts.config.ActionConfig;
ActionConfig mapping = (ActionConfig)request.getAttribute("org.apache.struts.action.mapping.instance");
Form name will be mapping.getName()
import org.apache.struts.config.ActionConfig;
ActionConfig mapping = (ActionConfig)request.getAttribute("org.apache.struts.action.mapping.instance");
Form name will be mapping.getName()
Subscribe to:
Posts (Atom)
Upgrade nodejs in conda (from v18 to v26)
If your conda env is nodejs v18, doing a conda install nodejs=26 is likely to create a lot of conflict. Consider remove those conflicting p...
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...