|
J2SE is Jave v2 Standard Edition. This is the 'base' Java environment.
Servlets are part of J2EE - Jave v2 Enterprise Edition - and, simply put, are small components used in building large scale systems. Here[^]'s a taster of how Servlets work.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
hi..
Java Servlet Programming is something and J2SE is something.
Both are different.
J2SE is Java 2 standard addition.
and Servlet Programming is rise of server-side Java applications.and Servlet run on server side
Servlets are supported through the Servlet API, an extension to the Java programming language.
|
|
|
|
|
Hello guys,
I have been working on dynamic construction of object by using reflection (Java 6 SE platform). I have noticed for example that there is a method:
Class.getConstructor(Calss<?>[]) You pass the argument Class objects to this method and it gives you the corresponding constructor back. This works fine in most cases. But it has one problem. It dos not support autoboxing.
For example if the constructor of my class takes an int parameter and and i ask the Class object for this class for the constructor like this: Class.getConstrucort(new Class[]{Integer.class}) i will get the NoSuchMethodException indicating that there is no matching constructor. If i match the constructor argument in the class definition exactly to the parameter type given to the getCosntructor() method then i will have no problem.
Did anyone had any similar problems?
If any one has a solution or a workaround for this, i would need an advice.
Cheers
|
|
|
|
|
Autoboxing involves "silently" swapping between primitives and reference objects. Integer.class and int.class are both instances of type Class, in other words they are both reference types, so no autoboxing is involved. The compiler has no knowledge that these two different references can be treated as interchangeable in this particular case.
In the call to getConstructor, specify either int.class or Integer.TYPE instead of Integer.class. That will work.
|
|
|
|
|
Thanks, big part of the problem is solved.
Cheers
|
|
|
|
|
i want source code in java of Naive Bayes theorem for making antispam .
|
|
|
|
|
And I want world peace. But seriously you don't expect anyone here to write all that code for you. We love helping you with a specific problem, but not something as generic as this.
Just a simple pointer Wikipedia has several links to implementations of Naive Bayes.
|
|
|
|
|
Hi Everybody,
I have facing the the problem with the Axis2 client since couple of days.
Exactly my problem is when i login with diffrent Username,Password then i will get a multiple sessions.
using that particular session i need to query the next method.But i am unable to use the same session return by the service. For each login response it return sessionid ,this sessionid is only used for each login query and futher queries based on this session.
I want to know how the diffrent session is maintained for diffrent login in Axis2 client.
Please do the needfull suggestions...
Thanks
Ram.
|
|
|
|
|
|
I don't see the relation with GEF here ?
GEF is part of the modelling projects in Eclipse, so what does it have to do with drawing a custom control ?
Could you please clarify your question because it doesn't make a lot of sense.
|
|
|
|
|
OK.Actually,I want to implement a simplified version of VE(Visual Editor),which allows administrator drag controls to editor and generate a form.I use GEF to implement this function,but I have no idea to draw a table in editor.Can you help me?
Thanks!
|
|
|
|
|
But what is this table you are talking about ? What is the relation with your model ?
Are you sure you are using the correct tool for your job ?
|
|
|
|
|
The table is for displaying data from db,just like our normal table in form.I intend to let users custom forms ,just like us using VE or SWT Designer to custom our forms.Could you understand me?
|
|
|
|
|
Well I simply don't see where GEF comes into the picture. Why are you using GEF ? Do you understand why you are using GEF in the first place ?
Are you aware also that the properties of your model element can be editable through the property view (which is a table). Is it something like that you are looking for ?
|
|
|
|
|
Yes.I also need that property sheet.What I want to do is to let administrator custom a form,then save information of this form,including controls and properties of them,into database.When user login in,this form's information will be loaded from database,and generated into a actual form,which allows user to do something,just like on the form that we developer have defined when developing the system.
I think GEF may help me implement this function, so I choose it.I just don't know how draw a table figure with draw2d.I don't know how VE makes it——in its palette there are a Table control, a TableColumn control,and a TableItem control,and I don't have its source code.So do you have some suggestion ?Thank you for your replies!
|
|
|
|
|
I'm trying to run metrics in open source libraries but i can't.
I ve already run in programms but i can't find the way for libraries. I use the eclipse.
Any idea how to do this?
|
|
|
|
|
Please help me to code for creating XMPP client .. server is openfire..
Using Jframes.. Finished designing client.. Please help me in coding the client..
|
|
|
|
|
This is an open question to which there is no short answer. Try searching Google or the articles here at CodeProject for some ideas.
It's time for a new signature.
|
|
|
|
|
If you are facing a specific problem, then let us know what it is and we will see if we can help.
If you are just after general coding information, Google and Bing both return over 250,000 search results for "java xmpp client". At least one of those should be a good starting point.
|
|
|
|
|
0. Write some code.
1. Get stuck.
2. Ask a specific question.
That's the only way CP works.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
results[0]->geometry->location->lat;
$longitude = $output->results[0]->geometry->location->lng;
?>
hello, i'm a java programmer...i'm a new comer to this field....now i'm using jsp for the development of vehicle tracking system...if you dont mind ,just help me by giving the codes in jsp for corresponding code in php that i've given above......
also how we can markup the position in google api map when the page is loaded itself...means before making any action(click ,mouse events) i have to markup the position.......... for these problems, i've searched a lot..but i couldnt find the solution...if you give solution for this ,it will be more helpful for me..
|
|
|
|
|
Looking at your code you might be talking about PHP, as JSP does not allow the type of syntax you are posting.
Just as a side node, people here will help you get answers to a specific problem. But not many will code for you for free.
|
|
|
|
|
Hello, I am a Chinese programmer.
You can call me: Dxssi
I would like to know more foreign programmers friend. Ok now you know.
I am not English and German fluently. I wanted to know a friend to learn English and German, and in return I can teach you Chinese language, my e-mail: babyvox5th@qq.com
Yes, I am a senior java programmer certification. Three years of experience working.
Against hackers, and some of the game plug-in.
Look forward to you and me. Thank you
|
|
|
|
|
I'd go hang out in the lounge, but read it for a while before you post. There are some unwritten rules to watch out for.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
I have done a lot of research and am currently learning Java in college, but I am having trouble displaying a program in a Java GUI. I know I can use JPanel, etc. but can't see how to just make my already written program display in a window without rewriting a whole bunch of my program. I think I am having a super brain fart. I am not asking for code, I am asking for ideas or direction to study content. I have Googled and Yahooed till I am blue in the face and cannot seem to get this. I am using Notepad by the way not NetBeans. Any help is much appreciated. Thank you.
My reality check bounced.
|
|
|
|