|
Lots of possibilities here[^].
The best things in life are not things.
|
|
|
|
|
Searching the web! Who'd have thunk it!
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
Have a bit more patience with newbies. Of course some of them act dumb -- they're often *students*, for heaven's sake. -- (Terry Pratchett, alt.fan.pratchett)
|
|
|
|
|
If you want some targeted search terms to find the information you're after, search for JAXP (Java API for XML Processing) and/or JAXB (Java API for XML Binding)* on Google. There's nothing specific to Applets that makes parsing and processing XML any different from any other Java VM environment.
[EDIT] You can also search for SAX (Simple API for XML) and StAX (Streaming API for XML), as they may be simpler to implement quickly [/EDIT]
Cheers!
*Note: XML binding is a more advanced concept, and is not necessary for simple XML parsing. It can be used to easily model XML objects in Java classes.
-- Modified Wednesday, June 8, 2011 2:47 PM
|
|
|
|
|
Hello,
what is best way to display news in jsp webpage. With asp i was using repeater, but in jsp i don't know how to. I also want to add buttons to each news so i could edit and delete it.
For any kind of help i would be thankful.
Best regards
|
|
|
|
|
Reading the data from the DB is one part. Displaying the data another. To add some button shouldn't be that difficult.
so which part is the problem?
regards
Torsten
I never finish anyth...
|
|
|
|
|
Using div and dynamically creating it with for loop would be the way i will do it. If you have any better idea with displaying it i would be thankful. Reading and adding buttons is not problems. I was just looking for display.
How to put id in session via javascript or using jsp code block?
function for getting div id:
function getParent(el, parentTagName){
var obj = el;
while(obj.tagName !== parentTagName){
obj = obj.parentNode;
}
alert(obj.id);
}
html code looks like this:
<div id="0">
<form>
<input type="submit" target="pr" value="Go" onclick="getParent(this, 'DIV')">
</form>
</div>
Thanks
modified on Friday, April 29, 2011 11:35 AM
|
|
|
|
|
I would go about this differently with your javascript. Since you know the iterations you've done (using your for loop), there would be no reason to loop through the page elements testing for equality. You should change the onclick function summary to include the ID you created for your div, e.g.:
<div id="0">
<form>
<input type="submit" target="pr" value="Go" onclick="getParent(this, 0)">
</form>
</div>
(although I have to admit, I don't understand the purpose of your getParent function. It would make more sense to have the onclick of that button post a form up for processing, or kick off an AJAX request to add/remove a news item).
Hope this helps, feel free to ask some targeted follow-up questions!
Cheers!
|
|
|
|
|
How i make a audio and video media player .
|
|
|
|
|
By doing some research into the appropriate classes, like this[^].
The best things in life are not things.
|
|
|
|
|
|
You can see the jlGui Music Player which has been built under the Java platform. Its documentation would help you understand the packages and classes required. Also please clarify whether you are looking to build an applet or a swing application.
here is the link - http://www.javazoom.net/jlgui/jlgui.html[^]
|
|
|
|
|
FYI[^]
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
i used ArrayList and create jni headder file.Generate JNI stub generates jobject for ArrayList in jni header file.but i dont know how do i handle this jobject.
i may use object array instead of ArrayList but i have problem for dynamic arrays.Beside i cant use List<>.please help me!!!
|
|
|
|
|
See here[^] for a description of handling Java types in JNI.
The best things in life are not things.
|
|
|
|
|
i saw this page but only create string array.For example i have a class that is called ObjectClass and i declare ArrayList<objectclass>.
how do i use jni side.Maybe your link explain that but i dont understand how to do or i cant see..
|
|
|
|
|
I am not certain, but I don't that you can access Java objects on the C/C++ side.
The best things in life are not things.
|
|
|
|
|
|
You can certainly access Java objects in C/C++.
|
|
|
|
|
Maybe you could explain how for the benefit of the OP, and me.
The best things in life are not things.
|
|
|
|
|
|
Still waiting for the solution as to how; I have not been able to discover it.
The best things in life are not things.
|
|
|
|
|
Your question is not clear.
Start by writing a Java method that demonstrates in an approximate fashion what you want to do in C/C++.
Each line in the java method will map into C/C++ code (one or more lines).
|
|
|
|
|
hmmmm...
public void Update( Coordinate3D pCoord, float pRange, float pTargetElevation,float pLeftHeading, float pRightHeading,
float pRayResolution, int pMaxNumberOfSamplePerRay, ArrayList<CoverageRay> pCoverageRay){
jUpdate(refClass, pCoord, pRange, pTargetElevation, pLeftHeading, pRightHeading, pRayResolution, pMaxNumberOfSamplePerRay, pCoverageRay);
}
private native void jUpdate(long pRefClass, Coordinate3D pCoord, float pRange, float pTargetElevation,float pLeftHeading, float pRightHeading,
float pRayResolution, int pMaxNumberOfSamplePerRay, ArrayList<CoverageRay> pCoverageRay);
JNIEXPORT void JNICALL Java_MapLayers_VectorMapLayers_CoverageMap_jUpdate
(JNIEnv *, jobject, jlong, jobject, jfloat, jfloat, jfloat, jfloat, jfloat, jint, jobject );
firstly sorry my bad english...
i have this method in java and Generate JNI Stub produced upper code.and i dont know how to use pCoverageRay and reach entities of pCoverageRay in JNI.
i hope i can explain what i want.
|
|
|
|
|
That isn't what I said.
Again write java code (NOT C/C++) code that represents in general what you want to do in your C/C++ code.
You then use that code as a model to create your C/C++ code.
|
|
|
|
|
Simple scenario: User goes to a web page, click a button, download the selected files.
Problem: the problem is the files are all separate, I would like to zip them all up and let the user just press one button to save. the zip it self is simple, yet my files are excel generated by the jsp with html code
response.setHeader("Content-Disposition", "attachment; filename=\"blah blah.xls\"");
out.println(<html>blah blah blah</html>);
So since it is generated all dynamically. Is there even a way to zip them up before they are downloaded.
Or even generate excel on the server using these html way?
|
|
|
|