Forum: Web Developers' Lounge Sep 2nd, 2008 |
| Replies: 71 Views: 15,907 Re: Are you a web developer or web designer? I am a web developer. My favorite language is Java and ZK Ajax framework.
I use Apache as server, ZK in the front end, Java in the business layer and PostgreSQL or MySQL in the database layer.
I... |
Forum: JavaScript / DHTML / AJAX Sep 2nd, 2008 |
| Replies: 0 Views: 252 Create AJAX Based webpages If you want to create Ajax based web solutions. I will recomment ZK framework.
Take a tripp to ZK
I'm developing websolution with ZK, Java and PostgreSQL.
http://www.zkoss.org |
Forum: JavaScript / DHTML / AJAX Sep 2nd, 2008 |
| Replies: 5 Views: 390 Re: Javascripts and forms:HELP! Hi.
What you must do is to get the elements from the webpage first of all
I'm not sure if this is correct but it may help you a little on the way. |
Forum: JSP May 30th, 2008 |
| Replies: 33 Views: 12,072 Re: How to Connect MySQL from JSP Page MVC (Model View Controller) That is Model this part holds the data between view and database or files, View this is the JSP, GUI or other interface presentet to the user, Controller this is the part... |
Forum: JSP May 29th, 2008 |
| Replies: 33 Views: 12,072 Re: How to Connect MySQL from JSP Page There is nothing wrong by putting the database connection in the JSP, but you have to create a new database connection and query for every page you creates. This will reduse the performance and... |
Forum: JSP May 20th, 2008 |
| Replies: 33 Views: 12,072 Re: How to Connect MySQL from JSP Page Hi again.
I understand that you are not familiar with Java and Jsp. If you are using Netbeans to develop your application, you have the possibility to add libraries to the Web application class... |
Forum: JSP May 5th, 2008 |
| Replies: 33 Views: 12,072 |
Forum: JSP May 5th, 2008 |
| Replies: 33 Views: 12,072 |
Forum: JSP May 5th, 2008 |
| Replies: 33 Views: 12,072 Re: How to Connect MySQL from JSP Page This class is the JSP. JSP is an extension of Servlet. Simply told. If you see a few pages up on this article you see how to create a connection in JSP. But as i already had sead. Don't use... |
Forum: JSP Mar 11th, 2008 |
| Replies: 4 Views: 1,068 Re: how to get data from oracle to jsp I don't recommend putting SQL code inside JSP. It is not a good idea to use scriptlet in JSP. The page code will be hard to maintain. Anyway, If you want to run SQL in JSP. First create a Connection... |
Forum: JSP Mar 8th, 2008 |
| Replies: 7 Views: 959 |
Forum: JSP Mar 8th, 2008 |
| Replies: 4 Views: 1,068 Re: how to get data from oracle to jsp You can create a bean that will hold the data from Oracle. When the page is loading you can fill in the data from database. To do this:
First create a DAO object where the SQL calls to Oracle is... |
Forum: JSP Feb 14th, 2008 |
| Replies: 4 Views: 3,034 Re: JSP if statement Try this. It compares to strings.
if (id.equals(key))
{
out.print("This statement should be true!); |
Forum: JSP Feb 14th, 2008 |
| Replies: 2 Views: 508 Re: Java bean compilation package beans;
import java.sql.*;
public class example
{
public void test()
{
//Change to this an recompile
System.out.println("The bean worked"); |
Forum: JSP Feb 6th, 2008 |
| Replies: 2 Views: 2,252 Re: MySQL Datasource in jsp I think i have solved this problem. You can add MySQL driver in the class path and then get the connection with parameters set as parameters in web.xml or you can create a datasource in web.xml and... |
Forum: JSP Feb 6th, 2008 |
| Replies: 4 Views: 552 Re: Mathematical operators Can you paste me the whole code. Including variable declaration. Some where in the declaration a variable have been declared int. |
Forum: JSP Feb 5th, 2008 |
| Replies: 3 Views: 723 |
Forum: JSP Feb 5th, 2008 |
| Replies: 33 Views: 12,072 Re: How to Connect MySQL from JSP Page Don't mix Servlet and JSP. Add the following code into a JSP page. Don't put it inside a function. JSP pages don't use function. Servlets do.
By the way. Database connections and business logic... |
Forum: JSP Feb 5th, 2008 |
| Replies: 1 Views: 1,485 Re: String Tokenizer In the JSP, you can do the following. This code will print the content of v1 to the JSP page.
<%
Vector v1 = req.getAttribute("a1");
Iterator iter = v1.iterator();
... |
Forum: JSP Feb 5th, 2008 |
| Replies: 2 Views: 1,493 Re: send session variable in an array You can't cast to String[]. It does not exist in Java.
Try to use an ArrayList instead.
All JSP pages share the same session. You will always have the variable in session until the session is... |
Forum: JSP Feb 5th, 2008 |
| Replies: 4 Views: 552 Re: Mathematical operators <%
double useful = 12;
double nonuseful = 24;
double percentage = ( useful / nonuseful ) * 100;
%>
<%= percentage %>
In this example it will be 50.0 in the JSP page. |
Forum: JSP Feb 5th, 2008 |
| Replies: 2 Views: 529 Re: need some help.. thanks.. Change the code in red with the following.
java.util.Date today = new java.util.Date();
String s = DateFormat.getDateInstance(DateFormat.LONG).format(today);
Change to:
String s =... |
Forum: JSP Feb 3rd, 2008 |
| Replies: 2 Views: 2,252 MySQL Datasource in jsp Hi.
I have a little problem. i tries to connect to a datasource defined in Tomcat context.
But when i run the jsp page i got an error telling that the driver i not found.
I'm using the mysql jar... |
Forum: JavaScript / DHTML / AJAX Jan 28th, 2008 |
| Replies: 5 Views: 1,312 Re: Dynamic table Have you tried onLoad="javascript:myFun()" in the body tag?
You can also call the function with window.onLoad = myFun; inside the script block |
Forum: Java Jan 28th, 2008 |
| Replies: 1 Views: 837 How to access MS Outlook from Java Hi. I have been trying to access Microsoft Outlook from Java. This be in case of jsp page or traditional Java. Is there anyone how knows how?
In the same case i would also ask if someone have tried... |
Forum: JSP Jan 27th, 2008 |
| Replies: 7 Views: 1,166 Re: JSP tutorial I am agree that the tutorials at Sun is more up to date. There is also another site to try. www.java2s.com. maybe not so up to date as Sun but it will help. |
Forum: Java Jan 26th, 2008 |
| Replies: 10 Views: 1,022 Re: Accessible Gui text To add a jar in classpath and to access the classes from the methods they provide is naturale to Java. If the host program is the program that connects to the database. There is always classes that... |
Forum: Java Jan 24th, 2008 |
| Replies: 3 Views: 382 Re: Illegal start of expression This code is illegal. You can not call functions this way.
if (theOperator == '+'){
public void actionPerformed_Plus(){ //Illegal start of expression here
if (firstTime){
... |
Forum: Java Jan 24th, 2008 |
| Replies: 10 Views: 1,022 Re: Accessible Gui text Hi. I don't think you can access another process in JVM. They are completely isolated. It is easier to call the Jar file and get the values from here. |
Forum: Java Jan 24th, 2008 |
| Replies: 3 Views: 500 |
Forum: Java Jan 24th, 2008 |
| Replies: 2 Views: 270 Re: hi plz help in Hi. Try with System.exit(0) after you call destroy in your code.
Mark: You will need Security rights to do so.
Visit Sun to find out more about this topic. |
Forum: Java Jan 24th, 2008 |
| Replies: 4 Views: 520 Re: Please clarify my doubt Hi. Your applet runs perfect now. By the way. You can not run Applet with Java call.
Example: Wrong -> c:\java AppletExample. You will get en exception. Try put it inside
<Applet></Applet> tags in... |
Forum: Community Introductions Jan 24th, 2008 |
| Replies: 3 Views: 341 Hi everyone I am a man of 33 years. My work status is system developer on Microsoft Dynamic AX (old name Axapta). I am working for a company called Navicom. In my spare time i like to do some programming in... |
Forum: Java Jan 24th, 2008 |
| Replies: 5 Views: 429 |
Forum: JSP Jan 24th, 2008 |
| Replies: 7 Views: 1,166 Re: JSP tutorial Hi. Have you tried this site: http://www.roseindia.net/jsp/jsp.htm. There is some tutorials there.
If you want to find more you can search for Jsp tutorials at google.com |