36,051 Topics

Member Avatar for
Member Avatar for eddy556

I've got this code which seems right but I keep getting: An error occurred at line: 19 in the jsp file: /viewFAQ.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment where the lines involved are: [code] 16: String key = request.getParameter("edit"); 17: ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE …

Member Avatar for peter_budo
0
86
Member Avatar for mahendrazod

Hi friends, I am trying to develop the smiley installer which will install the smiley/emoticons on messengers installed on your system. Can anyone help me for below. 1) which language/technology should I use for it? 2) Give outline/algorithm ? Thanks in advance. Regards, mahendra

Member Avatar for Phaelax
0
62
Member Avatar for piers

right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of …

Member Avatar for Ezzaral
0
145
Member Avatar for new_2_java

Hi all, I want to run an OS command from my Java code. Basically I want to delete an unknown number of file from a particular directory from my Java code (in windows). But the way "del *.*" commnad works it prompts you whether you want to delete it or …

Member Avatar for new_2_java
0
126
Member Avatar for new_2_java

Hi all, I want to read a properties file from the same directory as my program, e.g. my program is in C:\WorkSpage\Myprogram.java and I have a properties file called index.properties how can I read the file, without specifying a path? I have tried the following but it doesn't read the …

Member Avatar for new_2_java
0
152
Member Avatar for babyfrostie
Member Avatar for soccerrm1

I've recently been trying to download jGrasp on my home computer because this is the program I am using at school to start to learn Java. I keep receiving the same error message when I try to compile a simple "hello world" program. "----jGRASP wedge2 error: command "javac" not found." …

Member Avatar for javaAddict
0
214
Member Avatar for maulee

hello friends,I want to use simple Java Beans in Struts Architecture..can we use simple beans with struts?

Member Avatar for maulee
0
53
Member Avatar for Alphard

import java.util.Scanner; public class TuringMachine { private static char[] array_in; private static int dir=0; private static int state=0; private static int i=0, i_clone; public static void main(String[] args) { Scanner read = new Scanner(System.in); do { System.out.print("Input Number: "); String str = read.next(); array_in = str.toCharArray(); if(!isNotValid()) halt(0); else break; …

0
69
Member Avatar for arkaprava

Since Input of ENTITY and of it's attribute is ok I am trying to op the value of the entity and it's attribute details so my modified code abt ENTITY is: package datamodel; import java.io.*; import java.util.*; public class ENTITY{ String entity_name; int no_of_attribute; int no_of_entity; attribute attr1; public ENTITY(String …

Member Avatar for PoovenM
0
178
Member Avatar for eddy556

Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved. [code] <% String key = request.getParameter("edit"); ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +""); while(columns1.next()) { String editid = columns1.getString("ID"); String editQuestion = columns1.getString("Question"); String editAnswer = columns1.getString("Answer"); String editUpdated = …

Member Avatar for eddy556
0
77
Member Avatar for Anupkumar

Hi, I am planning to take Sun Certified Java Associate exam. Please give me some tips regarding how to start. Also if any of you have passed SCJA exam please provide some piece of advice. Thank you.

Member Avatar for jwenting
0
74
Member Avatar for fufu123

i have to write a program that has to subtract the purchase price from 100 and then determine the number of qtr,dms,nkls,pns.. when i run it my results are in decimal am not sure how to change it..any advice thanks alot.. import java.util.Scanner; public class Subtract { public static void …

Member Avatar for Ezzaral
0
236
Member Avatar for sree22_happy

hi friends, I want to create a chart (pie,linear) and bar diagrams for my project in struts.Anyone knows about this,please help me.Thanks in advance

Member Avatar for ~s.o.s~
0
74
Member Avatar for anakanya

I write text to a pdf template based on the client's spec. I can set all the font name, sizes, etc pdf.beginText(); pdf.setFontAndSize(arg1, arg2); pdf.showTextAligned(align, text, x,y,0F); pdf.endText(); The problem I have is this part [B]pdf.setCharacterSpacing(float a);[/B] When I look at the properties of the text on the pdf (by …

0
52
Member Avatar for csc385

1. For each of the following mathematical functions state the equivalent Big-Oh function, keeping in mind the general rules for using Big-Oh as described in the textbook and lecture. Assume very large values for n (i.e., as n approaches infinity). a. 100n2 + 87 b. 2n3 - 7n c. 70000000n2 …

Member Avatar for Ezzaral
0
57
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JApplet { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, …

Member Avatar for Ezzaral
0
156
Member Avatar for kapiljainindore

Hi, I am new to javascript using Firefox. I don't know the basic principles of change in syntaxes if i have to make page compatible with FF. We've created javascript which is working fine with IE 6.0/7.0 and safari but it is not at all wokring with FF. Below is …

Member Avatar for Michael_Knight
0
115
Member Avatar for manushetty_2005

hi i need help regaurding the software development on java.we are trying to develop a administering software for internet usage...

Member Avatar for jwenting
0
89
Member Avatar for MxDev

is it possible to combine codes from VBScript and java to run together, which the VBScript could do some operation native to the operating system, while java couldn't........

Member Avatar for jwenting
0
54
Member Avatar for Shibani

I don't know if this is the proper forum for my question, but I'll give it a try. We have a few standalone Java applications sitting on a remote AIX box. These applications are listeners, so they start up and wait for events, i.e. they remain running, kind of like …

Member Avatar for Shibani
0
100
Member Avatar for hanifa

Hei guys, I have a c++ library of sorts. A user has written a Java Applet and wants to be able to call the C++ library functions. This is something my supervisor proposed. He suggested that Applet via a web service call (AXIS-C++) and using tomcat server , will call …

Member Avatar for schoolsoluction
0
123
Member Avatar for push

Respected sir/madam 1> how to call project folder in netbean? i am trying to run full online exam project at netbean. am getting exact display at tomcat. but am getting error at netbean.(like am keeping all jsp pages in subfolders like for exam, test...etc) 2> how can i make connection …

Member Avatar for javaAddict
0
67
Member Avatar for Rasjoe

import javax.swing.*; import java.awt.*; public class ImageObsApplet extends JApplet implements Runnable { DrawingPanel fDrawingPanel; Image fImg; int fImageNum=0; String fMessage="Loading.."; boolean fDoneLoadingImage=false; public void init() { Container content_pane=getContentPane(); fDrawingPanel=new DrawingPanel(this); content_pane.add(fDrawingPanel); fImg=getImage(getCodeBase(),"Sunset.jpg"); } public void start() { Thread thread=new Thread(this); thread.start(); } public void run() { int width=fImg.getWidth(this); if(width>=0) { …

Member Avatar for Rasjoe
0
118
Member Avatar for dmotah

[code] /********************************* * Program Name: Task2.java * * Date: 27 Janauary 2008 * * Programmer: Dhanandjay MOTAH * *********************************/ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Graphics.*; import java.applet.Applet; public class Task1 extends JApplet implements ActionListener { JLabel lab1; //label created JComboBox comb1; //combo box created JButton but1; //button created …

Member Avatar for jwenting
0
154
Member Avatar for kaloc

{ This is an exploratory question to just find out if something is possible. } The facts are these : 1. The java program is closed source, but is running on an accessible workstation. 2. The gui is written in AWT. 3. OS is windows 4. Windows tools like Spy++ …

Member Avatar for kaloc
0
141
Member Avatar for arkaprava

I m going to build a data modelling software project by java like DDS LITE I am coding the algorithmic part of the project where I have to build some composite data at the preliminary phase of the implementation of the algorithms, such composite data items are entity , relationship …

Member Avatar for arkaprava
0
203
Member Avatar for xanine

i know this could be very simple for you guys but i do have a problem with this. The program searches for a particular array from a text file(i don't know how to import a text file too) and counts the number of occurrence in it. The text file is …

Member Avatar for xanine
0
120
Member Avatar for shrish_sontakke

Hi Friends, I want a dummy JSP/Servlet project for Study. Please help me out for this. Thanks and regards, Shrish

Member Avatar for peter_budo
0
59
Member Avatar for bbhmusic

For whatever reason my jsp won't open in excel, it just keeps rendering in the browser. have a look, seems straightforward enough, any thoughts would be appreciated. thx Mike [CODE]<%@ page language="java" import="java.util.*" %> <%@ page import="com.****.*****.bsc.bo.*"%> <%@ page contentType="application/vnd.ms-excel" %> <% response.setHeader("Content-Disposition", "attachment; filename=\"bsc.xls\""); %> <%ArrayList al = (ArrayList)request.getAttribute("METRICVALUES");%> …

0
42
Member Avatar for ceyesuma

Please find attached Doc2.doc. It is a pic of my program. (this program successfully outputs the entire database. Yet I would like to learn the general steps to click the search button and perform a query. further please find the method I have for a search @Action. I am not …

Member Avatar for ceyesuma
0
108
Member Avatar for dmotah

hi, i have the following codes i did now i need top collect the output of these arrays to a third one, and then see what values are same.. plz help me in this code.. /********************************* * Program Name: Task2.java * * Date: 27 Janauary 2008 * * Programmer: Dhanandjay …

0
87
Member Avatar for electron33

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 to use mail session in Apache Geronimo. There is a plugin …

Member Avatar for peter_budo
0
234
Member Avatar for evaristo

The solution present at Apache Commons Chain design pattern library has taken me to consider the broad use of context objects as a mean for decoupling my class objects. In other words, all i need is a set of interfaces which my objects expect to get a handle from the …

0
63
Member Avatar for hidash_in

hi everybody, i am trying to get the name and id of the opened application to check whether the application is opened properly or not using java

Member Avatar for p.bondam
0
136
Member Avatar for dmotah

hi, i have to write a code where there will b two arrays which displays a list of 0 to 100 random numbers, then a third thread will take these twa values and find the ones common in the range 70-80 and sort them in ascending order and display it.. …

Member Avatar for javaAddict
0
93
Member Avatar for zeiken

The programs that will accept identifier is there any sample because usually I used to analyze using definite automata then i dont know what functions to be use in making identifier program in java hope theres positive response...

Member Avatar for masijade
0
67
Member Avatar for mentallybroken

okay ill explain.this is a program that will convert binary. [CODE]import java.io.*; public class decbin{ public static DataStreamReader rustan=new DataStreamReader(System.in) public static void main (string[]args) throws IOException{ int Q,R,A; System.out.println("Enter a number to be convert: "); Q=Integer.parseInt(rustan.readLine()); while(Q!=0){ Q=A/2; R=A%2; A=Q; //one missing statement i think. i need help. } …

Member Avatar for javaAddict
0
81
Member Avatar for Ankita B

hi, can u tel me where should i place the code for database connection?..is it placed in the same directory as other jsp and html files?....shall i put it in a java bean and then include it in all the other jsp files?..i

Member Avatar for Ankita B
0
127
Member Avatar for shaikh_mshariq

I want to develope a new tool like Nmap written in c++ and can be easily downloaded from wwwdotinsecuredotorg. Can any one knows how do i start. I know how to detect ports but how to map them with services.

Member Avatar for shaikh_mshariq
0
631
Member Avatar for onsir

how to take computer name in linux I had tried this code in Windows Xp, it's Ok. but while i run in linux i got error "Cannot get computer name java.net.UnknownHostException: comcentos: comcentos" i'm using Centos 5. i have edit in file etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=comcentos [CODE] package myPackage; import …

Member Avatar for onsir
0
96
Member Avatar for olliedefig

one of the best games ever was Swing a software 2000 game which company went bust. Worked on win 98 on xp the screen miserably divided into 4 and was unplayable the cd is cracked and anybody knows how to get a replacement or the game working would be happy

Member Avatar for jbennet
0
120
Member Avatar for chitra1

Hi, I'm new to JSP. Can anyone suggest me any site where I can get good tutorial for beginners. Thanks.

Member Avatar for electron33
0
104
Member Avatar for preston_naidoo

Hi everybody, i have got a java practical project due this year, though i want to use my previous years project and just build upon it. i am in my last year of high school, so it is a very basic program. i dont know if anybody would help me …

Member Avatar for darkagn
0
63
Member Avatar for Mohandsa

i have acode that upload file from client to web server but i need to insert the file name into DB (mysql) to get it in download list............HOW? this is jsp code <%@ page contentType="text/html;charset=windows-1252"%> <% response.setContentType("text/html"); response.setHeader("Cache-control","no-cache"); String err = ""; String lastFileName = ""; String contentType = request.getContentType(); …

Member Avatar for masijade
0
2K
Member Avatar for Ankita B

hi, can you please give a step by step procedure on how to connect oracle database with jsp. I am new to the language and cant quite figure a way out.My first page is a user login and therafter username is used.How do i use sessions for this? Thanks in …

Member Avatar for jwenting
0
88
Member Avatar for Ankita B

thx..my first page is a login.in that user name and password are to be accessed from oracle database and then matched on button click.if match occurs then user proceeds to next page. So please help me out.I m getting very confused as to where to put what code..ryt from db …

Member Avatar for jwenting
0
104
Member Avatar for baheddad

hi .. plz anyone has an ideas for final projects that can i do it in java? and i hope in computer information system :idea: plezzzz

Member Avatar for baheddad
0
148
Member Avatar for mramrit

friends i got problem in connection between oracle and jsp as given in cracking codes in j2me in following codes <?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd"> <main> <title>Branch Info</title> <%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <%java.sql.connection db=java.sql.DriverManager.getConnecton("jdbc:odbc:master","sa","amrit");%> <%java.sql.Statement st=db.createStatement();%> <%java.sql.ResultSet rs;%> <%rs=st.executeQuery("select item_code,quantity,unit_price form stock_mast;");%> <%while(rs.next(()){%> <%String name=rs.getString("item_code");%> <%int aId=rs.getInt("quantity");%> <%int uPrice=rs.getInt("unit_price");%> <item_code><%=name%><quantity><%=aId%></quantity><unit_price><%=uPrice%></unit_price></item_code> <%} %> <%rs.close();%> </main> …

Member Avatar for jwenting
0
113
Member Avatar for aksm

[code] hello! Can anyone plz tell me how 2 write z following php code into jsp..Thx in advance.. <?php $userid = $_POST["txt_login"]; $password = $_POST["txt_pwd"]; //Connecting to database include("db_connect.php"); if (($userid=='admin' OR $userid=='ADMIN') && ($password=='admin' OR $password=='ADMIN')) header( 'Location: http://localhost/MyWeb/admin.php?id='.$userid) ; else { $Rs = mysql_query("SELECT * FROM Users WHERE …

Member Avatar for peter_budo
0
345

The End.