Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with servlet and xml: uploading videos (avi format)

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the java says this:

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


the xsl says this:

<xsl:if test="not(EditFuneralHome/HOME_OUR_COMMITMENT/VT_FILE[.=''])">
<font color="blue">Current File Chosen: <xsl:value-of select="EditFuneralHome/HOME_OUR_COMMITMENT/VT_FILE"/></font>
</xsl:if>


<xsl:if test="not(EditFuneralHome/HOME_OUR_COMMITMENT/AV_FILE[.=''])">
<font color="blue">Current File Chosen: <xsl:value-of select="EditFuneralHome/HOME_OUR_COMMITMENT/AV_FILE"/></font>
</xsl:if>



<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>

problem is that the videos do not upload if they are in .avi format and also in the text box for the uploaded file, it does not allow one to type in the location of the file as opposed to using the browse button.
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That XSLT doesn't have anything to do with uploading of videos. If you have problems with uploading of videos, you should look at the code which is uploading videos.

The XSLT appears to be generating some HTML; if you have a problem with the HTML it generates, then you should do this:

1. Find out what is wrong with the HTML. (This involves looking at the HTML in the browser.)

2. Decide what should be different in the HTML.

3. Change the XSLT to generate that different HTML.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I look at the html in the browser and I cannot tell what pages it is rendering. I am showing a general example.

Can you help me?

Thanks,
M
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't shown any HTML yet. You have only shown fragments of a program which generates HTML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic