35,619 Topics

Member Avatar for
Member Avatar for Xessa

Hi people. I am new to this forum. In fact the reason why i registered here is my problems about making a JSP page work. I am using Apache-Tomcat I just wanted to test an html file. It was form.html.When i start tomcat and type ht*tp://localhost:8080/ everything works fine. But …

Member Avatar for ~s.o.s~
0
223
Member Avatar for KimJack

Hello All, I am trying to double the size of an array and copy its contents to the new array. I keep getting the following errors with the following code snippet: '.class' expected not a statement Here is my code: private void cpyArray() { if(itemCount == item.length) Doll [] temp …

Member Avatar for bugmenot
0
2K
Member Avatar for ad_ms

hi people im hemamalin doing ma 4th yr in software field.. i hve gotta mini project and im wrking upon it. its dat im using java eclipse as ma software and i would like to hve basic pdf documents so dat i can learn from it, it would be kind …

Member Avatar for cjturner
0
161
Member Avatar for musaka

So i have an UML diagram from wich i must define my code for my Customer class , and the start of the diagram attributes is with that -accounts : Account = new Account() , so i typed for it : private Account = new Account() accounts; and then i …

Member Avatar for javaAddict
0
109
Member Avatar for arkaprava

[B]I want to build a software of data modelling like [URL="http://www.dds-lite.com/"]dds lite[/URL] The 1st thing I wanna do in dis case is to make a erd editor using java , please give me some idea about the java packages and classes should be used.. please provide some tutorial about this …

Member Avatar for jwenting
0
95
Member Avatar for nagajyothi

hi friends! i have created a button on my applet. the button name is "PRINT". i wan the code for this button ,such that the print out of the information given as input to the applet must be printed. is there any command in java to directly get printed from …

Member Avatar for darkagn
0
97
Member Avatar for dharajsmith

I have a Java assignment due tonight, and I wrote this, but it will not compile. Can someone help me see what I'm doing wrong? Thanks! My assignment is: "Modify the Payroll Program application so it continues to request employee information until the user enters stop as the employee name. …

Member Avatar for dharajsmith
0
88
Member Avatar for karan_736

i have a small application which checks for username and password in the database and forwards the users to restricted pages on confirmation. i ve uploaded the application on eatj.com for testing, now my problem is that the session creation code is not working in [B]Internet Explorer[/B].means every time i …

Member Avatar for karan_736
0
68
Member Avatar for vanduea

Hiii.... i'm final year engineering student(cse).... i've to do one main project in java/j2ee/j2me...... pls suggest any good n latest topics..... thanx.....

Member Avatar for jwenting
0
117
Member Avatar for michellet35

I am using JAVA studio creator and I am having a hard time understanding how to add a page hit counter that uses the ApplicationBean. I am just trying to create a simple JSP that shows how many times the page has been visited. ANY help on where to get …

Member Avatar for peter_budo
0
114
Member Avatar for Acidburn

Hey guys, gonna try and explain this in an hopefully understandable way. I've got my GUI which is called a GUI class which is a singleton so I can access it anywhere in my code and manipulate the GUI object. I've also got a sharedMemorySection which again is a singleton …

Member Avatar for Ezzaral
0
82
Member Avatar for wonder_laptop

Dear All, Since one cannot write the ping command in java because real ping requires ICMP support, and performs a very basic test that there is an IP protocol stake "awake" at the requested address and this is not supported by java. this code is not a "ping" in the …

Member Avatar for wonder_laptop
0
187
Member Avatar for shil_284

Hi, I am trying to compile a code( which was written and compiled in 1.4) in 1.6. It gives few errors, when i compile in 1.6 for eg: compareTo(java.lang.String) in java.lang.String cannot be applied to (java.lang.Object) if (NatureOfAddress_SidNumber_str.compareTo(vTemp2.elementAt(iLoop)) < 0) Is there anyway i can suppress the warnings so that …

Member Avatar for jwenting
0
91
Member Avatar for 14fg

Hi, I need help with a timetable which must do the following: 1: Input: program name Output: list of core and option modules. 2: Input: module name Output: module leader, activities, credits, when run, constraints 3: Input: activity name Output: room(s) 4: Input room number Output size, condition, available resources …

Member Avatar for Ezzaral
0
124
Member Avatar for Acidburn

Hey guys, I'm lost in terms of how to get 1 thread to stop another thread by changing one of its values. Ie say I've got a JButton which when pressed invokes thread 1. I've also got another JButton which when pressed stops thread 1 from processing. I'm lost since …

Member Avatar for Ezzaral
0
80
Member Avatar for vincenzom86

Hi all this is my problem: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /DAO.jsp:16 13: 14: Class.forName("oracle.jdbc.driver.OracleDriver"); 15: 16: conn = DriverManager.getConnection("jdbc:oracle:thin:vincenzom86@localhost:1521:XE","xxx","xxx"); 17: 18: Statement st = conn.createStatement(); 19: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause …

Member Avatar for masijade
0
362
Member Avatar for dogma

I'm getting a problem with a database resource in Tomcat 5.5.25 The error (from the log) is: [code] Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307) at java.sql.DriverManager.getDriver(DriverManager.java:253) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:274) at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159) at org.apache.jsp.test_002ddb_jsp._jspx_meth_sql_005fquery_005f7(test_002ddb_jsp.java:9766) at org.apache.jsp.test_002ddb_jsp._jspx_meth_c_005fcatch_005f7(test_002ddb_jsp.java:9732) …

Member Avatar for dogma
0
219
Member Avatar for hemanthjava

I've read plenty of java Swing forums or questions and none of them have the right answers. I am trying to dynamically select a node in a JTree by searching for it using a search panel based on its property. My jtree allows single selection model. (SINGLE_TREE_SELECTION). [CODE]jTree.setExpandsSelectedPaths(true); // jTree.expandPath(treePath); …

Member Avatar for hemanthjava
0
115
Member Avatar for sivaslieko++

Hi everybody, I have a class called "dynamicArray" which makes use of static array and provides addElement, deleteElement methods, etc. It stores the datatype, "myObject". I want to construct the JList with the instance of dynamicArray class, say myDynamicObj. so that whenever when I delete/add element from/to dynamicArray the JList …

Member Avatar for Ezzaral
0
199
Member Avatar for Spartan552

[QUOTE] ArrayList<ArrayList> liste = new ArrayList<ArrayList>();[/QUOTE] eclipse saying : [QUOTE]ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized[/QUOTE] The list should be containing some strings and some integers. So what I should write is ArrayList<ArrayList<MyClass>> to get rid off the warning. The problem is I dont …

Member Avatar for Ezzaral
0
414
Member Avatar for nljavaingineur

Hello developers, Im still practising my programming with coding a calculator after some reading on the basics of Java. Could really use a pointer or two here. I wrote a calculate function(calculateResult). The error message I got says that the function cannot be applied on the 'number2' argument. (on line …

Member Avatar for Ezzaral
0
100
Member Avatar for jamello

hi there guys! I have a scenario that is presently giving me sleepless nights. I need to call an asp method from an "onclick" html event but the method is being called too early. [CODE] Public Sub CheckForSomeErrors() If Session("FliteDate") = "" Then Response.Redirect("../Errorpage.aspx?ErrorDetails='Flight Date' cannot be blank!! Click 'Previous' …

Member Avatar for jamello
0
153
Member Avatar for reiyn17

Write a java program that uses inheritance to extend box. Use the extend keyword to include weight. // use the super keyword to access the variables //of the parent class, remember that only weight(m) //was declared in this class but the other three //were declared in the parent class so …

Member Avatar for lovely12
0
287
Member Avatar for nar12281

Hi All, from my form bean when i am giving input as a german character, from the method request.getParameter(), it's converting it into some other data, can you people help me what should i do.

Member Avatar for PoovenM
0
64
Member Avatar for WHTZ

I have a test soon and are having troubles with the following questions.. 6) A local variable is a: (A) variable declared in a field (B) public statement of a variable in a method (C) private statement of a variable (D) variable declared and used within a single method 9) …

Member Avatar for PoovenM
0
101
Member Avatar for adil7

Hi, In this , i dont know how to do nested colums. <display:table name="${form.results}" id="row" cellpadding="true"> <display:column property="firstName" value="${row.firstName}"/> <display:column property="lastName" value="${row.lastName}"/> | | |// list of columns | | <display:column> <display:table name="${row.cdList}" id="row" > <display:column> <display:table name="${row.CDSummary}" id="row" > <display:column property="cdAccountType" value="${row.cdAccountType}"/> <display:column property="cdType" value="${row.cdType}"/> </display:table> </display:column> </display:table> </display:column> …

0
66
Member Avatar for Spartan552

[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty …

Member Avatar for Spartan552
0
114
Member Avatar for Spartan552

Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks.

Member Avatar for Spartan552
0
141
Member Avatar for eleonora

hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance !

Member Avatar for ShawnCplus
0
183
Member Avatar for soulchris

hi can I insert a xslt in a page jsp??? do you have some examples???? thanks

Member Avatar for peter_budo
0
42

The End.