This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes help with servlet and xml: uploading videos (avi format) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "help with servlet and xml: uploading videos (avi format)" Watch "help with servlet and xml: uploading videos (avi format)" New topic
Author

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

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
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

Joined: Oct 14, 2005
Posts: 19725
    
  10

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

Joined: Oct 27, 2010
Posts: 421
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

Joined: Oct 14, 2005
Posts: 19725
    
  10

You haven't shown any HTML yet. You have only shown fragments of a program which generates HTML.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with servlet and xml: uploading videos (avi format)
 
It's not a secret anymore!