This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes upload works well in a .html file but when I call it from a .xhtml file it shows an error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "upload works well in a .html file but when I call it from a .xhtml file it shows an error" Watch "upload works well in a .html file but when I call it from a .xhtml file it shows an error" New topic
Author

upload works well in a .html file but when I call it from a .xhtml file it shows an error

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi it´s very fun because it works well if I run it(upload.html) alone but if it´s called from a .xhtml file in that case an error happens.


I have asked this before in "Java in general" but I think it fails because it´s inside a JSF app.


I have tried with all .jar´s from 2005 to now, and it doesn´t works.

The error is:



The servlet code is as follows:












¿Any clue? .It could be greatly appretiated


Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

UseOneThreadPerQuestion. Closing this one.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: upload works well in a .html file but when I call it from a .xhtml file it shows an error
 
Similar Threads
Config Tomcat -> Run Multiple Thread of Servlet ** (Problem Solved - Initialization error in code) *
problem with a select query. Help!
java 1.6.0.20 doesn´t error uploading files because jar version
Connection Refused Error
problem whit MQQueueManager