Hi,

I've made a few jsp editors, which works great except with images. If I add an new image to the DB it works fine, but when i change the image ( change the title for example ), i get an NullPoiterException on the getBytes from the <mm:fieldinfo useinput> .

here is the code of the generated form:
<mm:node id="this_node" referid="parent">
<form method="post" action="<mm:url page="set.jsp" referids="parent" />" >
<table width="750" border="0" >
<tr>
<td width="150">FIELDNAME</td>
<td width="600">INPUT</td>
</tr>
<mm:fieldlist id="my_form" type="edit" >
<tr>
<td><mm:fieldinfo type="guiname" /></td>
<td><mm:fieldinfo type="input" /></td>
</tr>
</mm:fieldlist>
</form>

And here is the code of the set.jsp:
<mm:node id="this_node" referid="parent">
<!-- handle the form -->
<mm:maywrite>
<mm:fieldlist id="my_form" type="edit">
<mm:fieldinfo type="useinput" />
</mm:fieldlist>
</mm:maywrite>
</mm:node>


Reply via email to