Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

broken functionality in servlet: video upload function + non-editable textbox.

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have a java servlet with the following code:

// handle uploaded Video Files (local and Server)
h.setOSVideoPath(multi.getParameter("hidOS_FILE"));



Then the .xml says this:

<tr>
<td/>
<td align="right">Our Services File:</td>
<td>
<span id="spOS_FILE"><input type="file" name="OS_FILE" id="OS_FILE" onchange="javascript:hidOS_FILE.value = this.value;"> Browse to video file or type URL
<xsl:attribute name="value">
<xsl:value-of select="EditFuneralHome/HOME_OUR_COMMITMENT/OS_FILE"/>
</xsl:attribute>
</input>
</span>
<input name="OS_FILE">
<xsl:attribute name="value">
<xsl:value-of select="EditFuneralHome/HOME_OUR_COMMITMENT/OS_FILE"/>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td/>
<td/>
<td>
<xsl:if test="not(EditFuneralHome/HOME_OUR_COMMITMENT/OS_FILE[.=''])">
<font color="blue">Current File Chosen: <xsl:value-of select="EditFuneralHome/HOME_OUR_COMMITMENT/OS_FILE"/></font>
</xsl:if>
</td>
</tr>

================================================================

The textbox does not allow one to enter in a value, such as a URL. Also the functionality of the upload appears broken. Do you have any suggestions?

Thanks, Midani
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic