« first day (1095 days earlier)      last day (3849 days later) » 

Sai
9:48 AM
hi is anyone thr?
 
 
2 hours later…
12:11 PM
1
Q: Getting null for the content type of png image

user2704032I am getting null value when I am trying to get the content type of png image Below is how I am trying to get the content type in my servlet: String contentType = getServletContext().getMimeType(image.getName()); Here value of contentType is null and image.getName() returns name of png image....

 
12:58 PM
@Kylar What do you mean by proper English? Bonjour?
 
 
2 hours later…
3:02 PM
Anyone know how to include a maven dependency into a jsp file?
 
Anyone here that can help me with an encoding problem?
 
 
4 hours later…
6:41 PM
@alexhg11 Ask and ye shall receive.
 
7:09 PM
anyone there who can help me with AES encryption ???
Doing it for the first time and I have no idea need help guys
 
7:58 PM
Is there a quick and dirty way to set up a Spring MVC website in Eclipse from a template? Coming from Visual Studio I could create a new ASP.NET MVC 3 Web Application that created a basic "Hello World" example.
 
8:41 PM
please help! is it possible to transfrom wsdl string into DOM Document?
 
@Stewie Do you mean convert a WSDL to DOM or WSDL String to DOM?
 
WSDL String to DOM
here is my question, I've spent a lot of time, but still no result
0
Q: Not able to transform wsdl source into DOM Document

StewieI need to transfrom wsdl source into dom document, but every time I get Document with null Node. Wsdl source is not empty and correct. StreamSource wsdlSource = new StreamSource(new StringReader(wsdl)); DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Docu...

 
9:07 PM
wsdl is a string containing a valid WSDL document?
 
yes
I checked it via online xml validator
 
I'm not familiar with the particulars, but it looks like you are instantiating a new Document (Document wsdlDoc = db.newDocument();)
and then you're passing it to the constructor of DOMResult transformer.transform(wsdlSource, new DOMResult(wsdlDoc));
shouldn't the last line be: transformer.transform(wsdlSource, wsdlDoc);
DOMResult creates a new object based on the object passed via its contructor
and from what I can tell the Transformer.transform method writes the transformation result to the object in the second argument
 
the second parameter of Transformer.transform should implement Result interface
 
I'll try it now
 
9:21 PM
You might need to cast the final line to Document
Document wsdlDoc = (Document) result.getNode();
 
this doesn't work
DOMResult result = new DOMResult();
transformer.transform(wsdlSource, result);
Document wsdlDoc = (Document) result.getNode();
still getting Document with null node
maybe the problem is in encoding...
i have utf-8
 
hey guys, I have pseudocode hw here. How do I write this is java plz
For i = 0 to n-1
 
for(int i =0; i < n; i++) {...}
That's VB right?
 
yeah thought so
thank you brano!
 
you're welcome
 
 
2 hours later…
11:08 PM
Can I use a JTextField to store a user's input in a String?
 
Yes
But if you mean actually 'store' it, then that's a horrible idea.
 
11:39 PM
Like hold it in a String
 
No... just hold it in a String. a JTextField is a component for visually entering and displaying the text. The actual model of it (and how you keep it in memory once the component is gone) should be a String.
JTF provides:
String getText();
 

« first day (1095 days earlier)      last day (3849 days later) »