jwenting 1,905 duckman Team Colleague

no, you can NOT mix Java and Javascript and expect it to work.
Instead you will have to validate the values returned from the page on the server when you get them in your servlets.

jwenting 1,905 duckman Team Colleague

jwenting this is not hopefull ! Please can you explain...
It is the case that teacher at school tell you set up Java this way and that is. We do not question them. So you as the programmer with years of experience should explain or point to the place where appropriate resources avaible(and no just go to sun website and find it). Not to just drop a shell bomb saing "that is bad, bad..."

placing anything there will mask the real issues, which is that you have no clue about configuring your runtime properly (including classpath settings especially).
It's also guaranteed to lead to the Java equivalent of DLL Hell in short order, as many applications require different versions of the same libraries and those often conflict.

By placing one version there you're shoving it down the throat of every Java application you run on your system as the one and only true version, leading to all kinds of problems.

If you need a library, get it from where you can get it (which differs for each library) and add it to your classpath as required for the lifetime of the JVM when running the application.
So NO placing anything in lib/ext, NO global classpath settings.

jwenting 1,905 duckman Team Colleague

nothing to do with JSP, so you're not going to get an answer here.
and don't think you can boss people around, demanding answers in that tone. What happened to asking nicely?

jwenting 1,905 duckman Team Colleague

tough luck.
This has nothing to do with JSP so don't expect an answer here.

jwenting 1,905 duckman Team Colleague

JSP is a display technology, it is NOT meant to contain business logic.

jwenting 1,905 duckman Team Colleague

well, that's a nice idea, to write a tic tac toe game.
Only been done a million times before so there should be a lot of information about it out there.
And without you telling where your problems lie, how do you expect us to try and provide a solution for them.

No, we're not going to do your homework for you (yes, I know it's due tomorrow and your teacher is bad and won't help you, and you had forgotten all about it until you saw the assignment sticking out of your planner yesterday evening).

jwenting 1,905 duckman Team Colleague

You can't use EJBs in Tomcat as Tomcat is no EJB container.

Setting your classpath to include j2ee.jar (which is indeed the one you need, if you insist on using an ancient version of the spec) isn't going to do a thing to change that.
Not only wouldn't it work even if Tomcat picked it up because Tomcat can't run EJBs, but Tomcat is a sensible application and will set its own classpath in its startup script.

jwenting 1,905 duckman Team Colleague

set up your classpath properly, you're missing something (probably mail.jar and/or activation.jar).

jwenting 1,905 duckman Team Colleague

and?
Haven't you read you should NOT do things like that in a JSP?

I will NOT help anyone who tries to use scriptlets, as they should NEVER be used.

jwenting 1,905 duckman Team Colleague

Do NOT put ANYTHING in the lib/ext directory of your JRE or JDK.
VERY VERY VERY bad!

Instead set up your classpath properly, as indicated in the documentation of the JDK. JRE, appservers, etc. etc. etc.

jwenting 1,905 duckman Team Colleague

try running a classfile instead of a sourcefile, and don't add the extension when doing so.

jwenting 1,905 duckman Team Colleague

read the manual, it should tell you everything you need to know.
If not, search the web. There are bound to be people who have documented setting up WL to work with SQL Server.

jwenting 1,905 duckman Team Colleague

wihch means that it's not doing what it should as those are different conditions which should yield different results (unless both return no results, which is a possibility).
The fact that they're yielding the same results indicates something seriously wrong with your database.

jwenting 1,905 duckman Team Colleague

correct. If you can't stand any criticism at all and expect to be spoonfed everything by someone holding your hand, you should not look for it online but hire an extremely thick skinned private tutor.

jwenting 1,905 duckman Team Colleague

and how would you ever incorporate something like that in plain text?
text is text, unless you have some custom reader software that incorporates such capabilities and a custom document format that contains that information you're not going to get anywhere.

And you can be certain that the criminals will crack your "brilliant" encryption/protection scheme within minutes, hours at best, of you releasing your software.

jwenting 1,905 duckman Team Colleague

oh no, not another kid thinking he can invent a better wheel by making a new "framework" without understanding the underlying technologies inside and out.

There are tons of such "frameworks" already, just pick one and stick with it.

We don't need another "framework" that promotes doing things all the wrong way because someone thinks it's "easier" that way.

jwenting 1,905 duckman Team Colleague

you could start by writing normal English. Your tendency to skip every other letter makes your text hard for humans to read, if you do that in your sourcecode it makes it impossible for the compiler to read.

jwenting 1,905 duckman Team Colleague

1) anywhere from a few seconds to a few minutes depending on what you have running in it, what hardware it's running on, and what the weather is in Timbuktu.

2) depends on the configuration, hot deployment is supported but needs to be turned on in the server config. Check the Tomcat documentation on how to do that.

jwenting 1,905 duckman Team Colleague

do your own homework. This is explained in pretty much any tutorial.

jwenting 1,905 duckman Team Colleague

don't hijack other peoples' threads, it's extremely rude.

jwenting 1,905 duckman Team Colleague

both are old and deprecated though.
Better use something modern like JAX-WS or JBoss Webservices.

jwenting 1,905 duckman Team Colleague

sigh...

You really think that you can create a servlet engine out of thin air by creating an ODBC DSN (NOT DNS) that points to the classfiles of the servlets?

jwenting 1,905 duckman Team Colleague

his attempt consisted entirely of condensing his homework assignment into a few lines of text that have little to do with each other and clicking the "post" button...

jwenting 1,905 duckman Team Colleague

java.sun.com has some good tutorials, as you should have known had you cared to look at the site at all.

jwenting 1,905 duckman Team Colleague

You do NEVER call those methods directly, how often do I have to repeat that?

In fact, if you don't understand that you can't even call a private method from another class (or even another instance of the same class) you should not be doing any J2EE stuff AT ALL but start with an introductory tutorial on Java.

You should also do some introductory tutorial on EJBs after that, and one that handles MODERN EJBs, as directly doing JDBC access from entity beans is NOT the way to do things, and hasn't been for years.

jwenting 1,905 duckman Team Colleague

no, that's not the solution. You'd not have two applets in that case but one applet with 2 windows.

There are several tutorials on intra-applet communication out there and I'm sure several books mentioning it as well.
Do some research and you should figure it out. I've never needed applets so I've never had to play with that, and I don't intend to start now.

jwenting 1,905 duckman Team Colleague

You don't.
You create a new entity, and it takes care of its database access itself.

jwenting 1,905 duckman Team Colleague

why do you have statements outside any method?

Read some extreme beginner's tutorial.

jwenting 1,905 duckman Team Colleague

most likely an old java.exe, javaw.exe, and possibly javaws.exe got left behind somewhere in the windows installation directory or a subdirectory.
Find and remove those.
Also remove the new JDK and reinstall to a directory with no spaces in it, as it doesn't particularly like that.

jwenting 1,905 duckman Team Colleague

Call me old-skool, but I'm going to say that C++ is the only only only way to go.

Modern kids, thinking C++ is old-school...
In my youth we thought C was too modern, it would never take off :mrgreen:

jwenting 1,905 duckman Team Colleague

start earlier on your homework next time.
And don't you feel very stupid when you don't understand something you know to be "easy"?
Or are you trying to trick people into doing your work for you by making them think it's "easy" when you think it's not?

If you don't understand the core of your assignment, you shouldn't start adding things you know nothing about either as that won't save you when you fail to turn in a working solution.

jwenting 1,905 duckman Team Colleague

by posting your questions in the right place...

jwenting 1,905 duckman Team Colleague

in general: Do NOT use that. There's almost never a need to use Runtime.exec or any of the other methods from the Runtime class unless maybe you're writing a compiler or classloader.

Using File works fine, IF you have rights to delete the files.
If you don't, running a del command should not work either.

jwenting 1,905 duckman Team Colleague

Weird port number, the default is 3700 (and probably not LDAP).

The following settings are all that's AFAIK required:
jvmarg value = "-Dorg.omg.CORBA.ORBInitialHost=${ORBhost}"
jvmarg value = "-Dorg.omg.CORBA.ORBInitialPort=${ORBport}"

(either as properties of environment settings).

jwenting 1,905 duckman Team Colleague

java.lang. Things like Integer are a nice place to start...
java.text also has converters indeed.

jwenting 1,905 duckman Team Colleague

it's not funny at all that people still think scriptlets are a pretty neat idea.

jwenting 1,905 duckman Team Colleague

NEVER use scriptlets.
Custom tags are hardly ever needed (pretty much reserved for framework developers now that JSTL and JSF are here), at least when it comes to creating them.

Concentrate on learning proper application design (and the books should help with that).

You might also study Spring, which helps a lot towards getting a proper design in place.
Wicket is also getting a decent following.

Bypass Struts, it's old and tired and by now recognised to be not all that good.

jwenting 1,905 duckman Team Colleague

but to start validating forms creating shopping carts and ecommerce online transactions wowow that gonna be very veyr tough please help

And that's why you should start small...
Baby steps, not giant leaps.

And do NOT use that linked tutorial. It's about 7 years out of date, and teaches you exactly how you should NOT work.

jwenting 1,905 duckman Team Colleague

I mean what should be sequence of things that will make learning convinent for me

Get a GOOD book. "Head First Servlets and JSP" is a good place to start, followed by "Java Server Pages, 3rd edition" (do NOT go for an previous edition or you get outdated knowledge) .

http://www.oreilly.com/catalog/headservletsjsp/
http://www.oreilly.com/catalog/jserverpages3/

Please do suggest me which kinda aaplication i should make in JSP

The web frontend for any serverside application written in Java.

hi me tooi am learning jsp but i am haviong big porblem simply because i havent done java before.

Then you should start learning Java first, unless you don't plan on doing anything but web frontends for things other people write.
You don't NEED to know Java to write modern JSP, as you should NEVER have to use scriptlet code. And if you never need to write the servlets and other classes delivering the data to the JSPs, you will never see a line of Java code if you do the job properly.

jwenting 1,905 duckman Team Colleague

so you want unique numbers, not "different" ones...
Most pseudo-random number generators will guarantee that, but it hardly ever hurts to make sure by just keeping track of the numbers you have already and just generating a new one if you already generated it before.

jwenting 1,905 duckman Team Colleague

read the documentation, again it's all there.
If you had listened to earlier advise you'd have read the documentation already...

jwenting 1,905 duckman Team Colleague

but beware Herb Schildt's book is generally considered NOT very good and contains some glaring errors (including statements that directly contradict the language standard as published by Sun).

jwenting 1,905 duckman Team Colleague

BMP are hardly ever needed, essentially they're useful only when you need to connect to a legacy system that's completely incompatible with CMP.

jwenting 1,905 duckman Team Colleague

Microsoft compilers are no harder to use than any other...
It's just a different interface, with different commandline arguments and command names.
The language itself is identical, though of course libraries will differ (and there Microsoft maintains the standard when it comes to Windows programming...).

What's so difficult about typing "cl" instead of "gcc" that makes Visual C++ too hard for beginners???

jwenting 1,905 duckman Team Colleague

well said. I've always thought Picard was a little soft.
IMO the original series is overall better written than TNG too. But I can understand why modern kids think it a bit weird, as it depicts a view of the future which pretty much was eclipsed by the time they first saw it (certainly in most of the shipboard technology).

What I've trouble with these days is ST Enterprise. Supposedly set in an era before the original series, that ship has technology way in advance of the Enterprise from the original series...
T'Pol is nice though, far better to look at than Spock :)

jwenting 1,905 duckman Team Colleague

a simple counter comes to mind.
Store those in a map indexed on character and loop through the input character by character.

jwenting 1,905 duckman Team Colleague

and that's your problem. One should never be content with a mere passing grade in one of his chosen majors.

jwenting 1,905 duckman Team Colleague

Software design is a complex field of its own, requiring training and experience to master just as does programming.

And no, just using Struts won't help. In fact Struts is now recognised as a very poor choice due to its tight coupling between framework and application code.

Get some good books like Head First Design Patterns http://www.oreilly.com/catalog/hfdesignpat/ AND Head First Object-Oriented Analysis and Design http://www.oreilly.com/catalog/hfobjects/ and start studying.
Without the second you'll make a mess of what you find in the first, and become a pattern nut (I've seen the results of that, people using a specific pattern everywhere whether it's appropriate or not just because they fell in love with it).

jwenting 1,905 duckman Team Colleague

first you learn English, next you learn to communicate.

jwenting 1,905 duckman Team Colleague

read the documentation, it's all there.