Jos� Alberto Mu�iz Navarro

Ranch Hand
+ Follow
since Oct 27, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jos� Alberto Mu�iz Navarro

Well.. he was actually referring to performance, meaning PHP takes less time to execute a command than Java.
20 years ago
Hello!!

I was told that the Process exec() method in Java is not good at all compared to PHP exec() function, on a same command.

Could someone possibly help me find any benchmark or study that could deny this information? Thank you.
20 years ago
But I want to pass a reference to the SQL Connection. Hence, if I just send some text as an attribute, I don't see how that would serve my purpose. Could you possibly explain me how I could actually make it so that the connection is available for being used over there, along with all its methods.

Thank you very much for your assistance.
20 years ago
JSP
Good night,

I am trying to create a webpage using Java Beans and Custom Tags. I have this bean that will create a connection to the database and keep it open so that it sends a reference to the statement object when necessary.

However, I want to create custom tags such as <tag:login username="something" password="something" /> which will compare that information to the database and base the content on that.

However, I have no idea as to how one can get to have access to the methods in the bean from the tag object. Can this be done? If not, how could I do something like this by using custom tags?
20 years ago
JSP
Hello!

I have an image in the tomcat/webapps/mywebapp/media folder and I want a jsp located in tomcat/webapps/mywebapp/ to print its height. However, I can't get it to work.

The way I thought of it is:



However, I get the following error:



I assume there's a problem for getting the web app to connect to my computer's X server. I'd like to know if there's a solution for this... or another idea. Because, as I understand it.. you actually need some kind of graphical server to be running for my code to work. And that's something I don't want, because that would mean I wouldn't be able to run the code on many servers.

Thanks a bunch for reading this.
20 years ago
JSP
Not really a solution but a workaround Have you tried not making B public and typing it in the same file as the other one? I know that would solve it, but it would depend on how you want to access B
20 years ago
Actually is the thread count over? Because I thought it had ended on Friday but there's still this sign at the top of the beginners forum that makes me think it's not over yet
20 years ago
Why would they use Macromedia Flash to publish such a document and not do it with an applet?
20 years ago
Well uhm... first of all you'll need a web server. Maybe your company has one server of its own or you can hire some.

Next you'll have to create an html from where the users will be able to click and download the classes. (I assume you'll want to download the .class not the .java, because otherwise those who download it would have to compile them).



Then you save that document as an html and place it in the server. In the same directory, you have to include the classes (class1.class, class2.class, class3.class, etc).

You can also create a JAR out of all the classes and then upload it as only one file instead of the others. However, that would depend on whether you want that to happen or not . To create a JAR, you have to use the jar command

It's not really about it being complicate. It's just a matter of getting to execute the javac binary. javac is the responsible for compiling your program and transforming it into a bytecode.

You have to check where that binary is and after you do it once, you'll be able to run it more easily. Now, consider downloading Eclipse or NetBeans or some other IDE will which (I think) automatically detect those binaries without the need for you to set the CLASSPATH and PATH to the binaries.

Now, supposing your bin directory is in C:\j2sdk then to compile osmething you'd only need something like

20 years ago
You mean something like pack them in a JAR and put them in a server, along with a webpage that links to it? Or do you mean something like transform them into an Applet?
Well... thank you for visiting the place

At least I'm very excited to talk to the author of a book. That's something that hasn't happened to me before


Good luck.
20 years ago
What are the quizzes about? Are they like questions or exercises? If they're questions, are answers included?
20 years ago
Actually. I think he hasn't responded to a single question has he? Hopefully he will reach us today and say hi at least =)
20 years ago
Oh I get it now.. so in order for it to compile I'd have to add a super(i) (where i is an int) in order for it to work =)

Thank you.
20 years ago