Closed d3ep4k closed 4 years ago
The cause of this issue has been trying to use $
variables similar to metamug resource file
which will ofcouse not work.
<jsp:directive.include file="../fragments/mason-init.jspf"/>
<m:resource>
<m:request method="GET" item="true">
<sql:query var="result" dataSource="${datasource}">
SELECT * from movie where id=?
<sql:param value="${mtgReq.id}"/>
</sql:query>
<c:set target="${output}" property="getReq2" value="${result}"/>
</m:request>
</m:resource>
Got this issue when typecasting
<m:resource>
<m:request method="GET">
<m:execute className="com.example.RequestHandler" var="getCustomer" output="true">
<m:arg name="id" value="618" />
</m:execute>
</m:request>
</m:resource>
customer.setId((int)args.get("id"));
Fixed it by correctly converting string to integer
customer.setId(new Integer((String)args.get("id")));
With 3.4 we get this error
Unable to find taglib [m] for URI: [mtg-mason.tld]
mason init used is