| kdm missing some code elements? [message #656639] |
Sun, 27 February 2011 15:01  |
Suhrit Rimal Messages: 6 Registered: September 2010 |
Junior Member |
|
|
Hi,
I converted a simple java servlet project using modisco plugin. And seems like some information regarding my code is missing in corresponding kdm file.
KDM snippet:
<codeElement xsi:type="action:ActionElement" name="expression statement" kind="expression statement">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
<codeElement xsi:type="action:ActionElement" name="method invocation" kind="method invocation">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
<codeElement xsi:type="action:ActionElement" name="+" kind="infix expression">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
<codeElement xsi:type="code:Value" name="string literal" type="/0/@model.0/@codeElement.1/@codeElement.9" ext=""<p>Welcome "">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
</codeElement>
<codeElement xsi:type="code:Value" name="string literal" type="/0/@model.0/@codeElement.1/@codeElement.9" ext="" "">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
</codeElement>
<codeElement xsi:type="code:Value" name="string literal" type="/0/@model.0/@codeElement.1/@codeElement.9" ext=""</p>"">
<source language="java">
<region file="/0/@model.2/@inventoryElement.1" language="java"/>
</source>
</codeElement>
</codeElement>
<actionRelation xsi:type="action:Calls" to=" /0/@model.1/@codeElement.0/@codeElement.1/@codeElement.2/@co deElement.0 " from=" /0/@model.0/@codeElement.0/@codeElement.0/@codeElement.1/@co deElement.0/@codeElement.4/@codeElement.1/@codeElement.10/@c odeElement.0 "/>
</codeElement>
</codeElement>
Java Code:
PrintWriter out = response.getWriter();
String name = request.getParameter("firstName").toString();
String sur = request.getParameter("surname").toString();
out.println("<p>Welcome " + name + " " + sur+ "</p>");
I am not sure why the name and sur variables dont show up in kdm file where as constants like welcome are there.
I have no idea if I am doing something wrong.
This would be a great help if some one could give me some answer.
Thanx.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01544 seconds