Click here to Skip to main content
15,914,109 members
Home / Discussions / Java
   

Java

 
Questionjava servlet - error HTTP 500 - java.lang.nullpointer exception Pin
golisarmi11-Nov-09 1:01
golisarmi11-Nov-09 1:01 
AnswerRe: java servlet - error HTTP 500 - java.lang.nullpointer exception Pin
David Skelly11-Nov-09 2:32
David Skelly11-Nov-09 2:32 
GeneralRe: java servlet - error HTTP 500 - java.lang.nullpointer exception [modified] Pin
golisarmi11-Nov-09 2:43
golisarmi11-Nov-09 2:43 
GeneralRe: java servlet - error HTTP 500 - java.lang.nullpointer exception Pin
sparlay_pk16-Nov-09 7:49
sparlay_pk16-Nov-09 7:49 
QuestionSaving Forms to an XML file or .txt file Pin
Clement Tientcheu10-Nov-09 18:20
Clement Tientcheu10-Nov-09 18:20 
AnswerRe: Saving Forms to an XML file or .txt file Pin
sparlay_pk16-Nov-09 7:56
sparlay_pk16-Nov-09 7:56 
Questiondeploying java database application Pin
Muhammad Adeel Zahid9-Nov-09 8:08
Muhammad Adeel Zahid9-Nov-09 8:08 
QuestionHow to Validate XML against XSD v1.1 Pin
Skippums9-Nov-09 7:08
Skippums9-Nov-09 7:08 
Is there a Java validator out there that can validate against the proposed W3C XSD v1.1 specification? I am currently validating against an XSD v1.0, but would like to add a number of assert statements and conditional attributes. If it helps, my current validation against XSD v1.0 is performed as follows (assume xsdFullPath and xmlFullPath are already defined):
parserFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
parserFactory.setNamespaceAware(true);
parserFactory.setXIncludeAware( true);
parserFactory.setFeature('http://apache.org/xml/features/xinclude/fixup-base-uris',false);
parserFactory.setFeature('http://apache.org/xml/features/xinclude/fixup-language' ,false);
parser        = parserFactory.newDocumentBuilder();
parser.setErrorHandler(org.xml.sax.helpers.DefaultHandler());

document   = parser.parse(xmlFullPath);
xmldom     = javax.xml.transform.dom.DOMSource(document);

factory    = javax.xml.validation.SchemaFactory.newInstance(...
             javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);
schemaFile = javax.xml.transform.stream.StreamSource(xsdFullPath);
schema     = factory.newSchema(schemaFile);
validator  = schema.newValidator();

validator.validate(xmldom);
Thanks,

Sounds like somebody's got a case of the Mondays

-Jeff

QuestionTable locked and session was invalidated Pin
tarek.mostafa8-Nov-09 23:11
tarek.mostafa8-Nov-09 23:11 
QuestionNeed help with building a compiler that takes regular expressions in Java Pin
Jesus877-Nov-09 20:44
Jesus877-Nov-09 20:44 
AnswerRe: Need help with building a compiler that takes regular expressions in Java Pin
Nagy Vilmos8-Nov-09 22:16
professionalNagy Vilmos8-Nov-09 22:16 
GeneralRe: Need help with building a compiler that takes regular expressions in Java [modified] Pin
Jesus8710-Nov-09 9:29
Jesus8710-Nov-09 9:29 
QuestionPokerHand class can someone help me solve this code? Pin
sweetbab7-Nov-09 19:55
sweetbab7-Nov-09 19:55 
AnswerRe: PokerHand class can someone help me solve this code? [modified] Pin
Richard MacCutchan7-Nov-09 21:52
mveRichard MacCutchan7-Nov-09 21:52 
Questionsending sms thro Java application Pin
pearlpristine6-Nov-09 1:33
pearlpristine6-Nov-09 1:33 
AnswerRe: sending sms thro Java application Pin
42774806-Nov-09 6:35
42774806-Nov-09 6:35 
QuestionAirline Reservation Pin
Shah Ravi5-Nov-09 20:20
Shah Ravi5-Nov-09 20:20 
AnswerRe: Airline Reservation Pin
portmansdress5-Nov-09 20:43
portmansdress5-Nov-09 20:43 
GeneralRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:11
mveRichard MacCutchan5-Nov-09 23:11 
AnswerRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:10
mveRichard MacCutchan5-Nov-09 23:10 
AnswerRe: Airline Reservation Pin
42774805-Nov-09 23:52
42774805-Nov-09 23:52 
Questiontools.jar Pin
Stephen Lintott3-Nov-09 19:19
Stephen Lintott3-Nov-09 19:19 
AnswerRe: tools.jar Pin
Nagy Vilmos3-Nov-09 22:26
professionalNagy Vilmos3-Nov-09 22:26 
GeneralRe: tools.jar Pin
Stephen Lintott3-Nov-09 22:56
Stephen Lintott3-Nov-09 22:56 
QuestionTroubles in launching a java application at MS windows system startup (user login) [modified] Pin
Fire-Dragon-DoL2-Nov-09 15:12
Fire-Dragon-DoL2-Nov-09 15:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.