35,619 Topics

Member Avatar for
Member Avatar for KcNaveen

is it possible to get the return value of a method from one java page to jsp page

Member Avatar for NormR1
0
64
Member Avatar for hazeeel

[CODE] import java.io.*; import java.util.*; import java.text.*; //-------------------------------------------------------------------------------------------------------------------------------------------------- public class KateAug17{ private static StringBuffer buffer; private static BufferedReader input1=null; public static String [] arrayM1 = new String [10000]; public static Double [][] coordinates1 = new Double [10000][4]; public static Double [][] coordinates2 = new Double [10000][10]; public static String [] …

Member Avatar for NormR1
0
140
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a uploading a file into (desired location) server I will show my code as some one can point out where am i going wrong. Currently im dealing with null …

0
112
Member Avatar for titan5

I have been given a program to write in java but inspite of thinking hard I have not been albe to get the logic for doing it. Here's the problem- I am given n dice which are rolled simultaneously and one of the possible sum of the dice. The program …

Member Avatar for JamesCherrill
0
1K
Member Avatar for ashish22343

I have a problem, I want to change the value of the textfield dynamically, Like,I have a form with its values set at the start( using database) , but when i update the form and redirect to the same form with same text fields(I have to use another bean for …

0
32
Member Avatar for ashish22343

I have a problem, I want to change the value of the textfield dynamically, Like,I have a form with its values set at the start( using database) , but when i update the form and redirect to the same form with same text fields,I have to set that value changed …

0
61
Member Avatar for ubi_ct83

hi all, im doing web using java.there is input n output in that page.everytime i want to change the input, i have to open new window.so, i want to settle that problem with just refresh the page.but i dont now how.anyone here can help? thanks for advance......

Member Avatar for ubi_ct83
0
212
Member Avatar for Roodra

Hi , I am currently doing a university project 'creation of a web mining tool to gather information about individuals and classify them semantically'. I am currently lost and don't know how to start. Does any one have tutorials links that explain how to use java to connect to website …

Member Avatar for jon.kiparsky
0
221
Member Avatar for sugumarclick

How to upload an image with servlets. Can we do it without fileOut.write(); Is there any method to upload an image from user and save it in a desired location in server?? Thanks & regards

0
85
Member Avatar for daudiam

I compiled a HelloWorld example using QtJambi. But on running it, it said "[B]failed to unpack native libraries[/B]. The complete error was : [CODE]daud@daud-laptop:~$ java -d32 com.trolltech.examples.tutorial.HelloWorld Exception in thread "main" java.lang.ExceptionInInitializerError at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:60) at com.trolltech.examples.tutorial.HelloWorld.main(HelloWorld.java:58) Caused by: java.lang.RuntimeException: Loading library failed, progress so far: Unpacking .jar file: 'qtjambi-linux32-gcc-4.6.3.jar' Checking …

Member Avatar for daudiam
0
251
Member Avatar for s.moosavi

hi all i'm a Beginner in c# coding. i want to design a home application that will run on a single pc i want to design a menu strip but not like the menu bar that appear above the window(file,edit,view,...) my idea in design is that the menu appear in …

Member Avatar for s.moosavi
0
96
Member Avatar for letheredge

Hello, I am having trouble getting my c:param working. I've looked all around the web for a solution. Here's some of the code that I have: test.jsp <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" errorPage="" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <html> <head> </head> <body> <c:import url="test2.jsp" > <c:param name="testVar" value="0" …

Member Avatar for ~s.o.s~
0
352
Member Avatar for sportinguista

Hi, I have a project which calls an internal jar included in it´s classpath. At a certain moment my code makes this call: [CODE] Runtime.getRuntime().exec("java -jar ./jars/myJar.jar"); [/CODE] It works when running from Netbeans, but when I make "clean and build" and then execute the new jar ( outside of …

Member Avatar for ~s.o.s~
0
153
Member Avatar for tristan17

Hi, I have been practising some OOP and have encountered this error `" cannot resolve symbol - variable MyInput"` I wonder wat's wrong...here is part of my code: public class BorrowMortgage { //Main method public static void main (String[] args) { //Create one borrower Borrower borrower = new Borrower( ); …

Member Avatar for naushadahmed
0
192
Member Avatar for mansoor1000

all i need is this, i can write this in almost every other language except this; a loop to show me the constant mouse coordinates (x,y) of the mouse on the screen, much help would be appreciated if you could write a sample program its only 2 lines.

Member Avatar for NormR1
0
103
Member Avatar for Katana24

Hi all, I have a method set to return an array of type integer but I would like to know how I would access the independent values in that returned array. My program does this: User enters numbers seperated by spaces and the program computes such things like the average, …

Member Avatar for tong1
0
1K
Member Avatar for gibson.nathan

im making a grades program to try to keep my skills sharp. since i have gotten out of apcs i havent really been doing too much of anything with java. i decided the other day that i was going to try to make a grade program, kind of like what …

Member Avatar for coil
0
676
Member Avatar for ubi_ct83

hi all, im doing web using java.there is input n output in that page.everytime i want to change the input, i have to open new window.so, i want to settle that problem with just refresh the page.but i dont know how.anyone here can help? thanks for advance......

Member Avatar for NormR1
-1
194
Member Avatar for vocater

..HEY GUYZ...Hey guys...I was trying to link the Input applet with the code such that, when the user selects like the "Edit function" it refers back to the input function with the empty spaces to fill the new Student information //Marcus Student's Database program. Using Linked List. //The prog. shud …

Member Avatar for NormR1
0
149
Member Avatar for aditya027

Hi,Norm jon, I am posting a new thread for tagging the code accordingly. Hope this helps out. 1.My ball is not bouncing within the circle i drew.(Within circle 2).It just goes vaguely toward one direction and comes back.I want the ball to bounce randomly.Just like in the game ball and …

Member Avatar for NormR1
0
119
Member Avatar for newjava

HI,need help continuing this code, im stuck and i want to make it work Thanx import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; public class WinListBs extends Frame { Button btnExec, btnExit ; Label lblNum ; TextField fldNum ; List lstVals1, lstVals2, lstCommands; Node head = null; Node …

Member Avatar for coil
0
82
Member Avatar for naxysch

Hello, ok I have a problem with JFileChooser.When I save a file with a name that exists already, It replaces the older file and saves the new one but I want make it show a confirmation message to the user to ask if they want to replace the file or …

Member Avatar for naxysch
0
207
Member Avatar for glenak

Hi all, So, I'm building an SSL server/client app, and I keep getting this exception: [CODE] javax.net.ssl.SSLHandshakeException: renegotiation is not allowed [/CODE] Does anyone know how I can work around this? Here are my codes: [U]SERVER:[/U] [CODE] //server.jks = keystore //ServerJKS = keystore password //SeverKey = certificate's password (certificate = …

0
59
Member Avatar for DeadSoul

Is it possible to add a flash content in java.Can any one help me how to do it or just a hint from where i can get help for it. Thank You in advance.

Member Avatar for JamesCherrill
0
83
Member Avatar for Mylsamy

Hi all, I am using Java code to send email to users. The code is SMTPTransport tr = (SMTPTransport) poSession.getTransport("smtps"); tr.connect(MailHost,FromMailId,Password); tr.sendMessage(Message,Message.getAllRecipients()); FromMailId is from user mailid Password is from user password. Message is what can from user sent to toUser Message.getAllRecipients() are to user mail id.. But how do …

Member Avatar for jon.kiparsky
0
102
Member Avatar for Queen007

Hi, Everyone!! I'm really new in this business and I've been having some trouble with these errors: ====================================================================== Message: Object expected Line: 1 Char: 1 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] =================================================================== Message: Expected '}' Line: 707 Char: 301 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] ================================================================== Message: Expected '}' Line: 738 Char: 301 Code: …

Member Avatar for Queen007
0
187
Member Avatar for jemimaloh

hi there, my programme stores all the coordinates from a text file into an arrayList. And from the arrayList I want to read out 3 elements at a time. Each element being a pair of (x, y) values already in a arrayList, e.g.[...., 34.123 2.121,....]. Now I need to read …

Member Avatar for jemimaloh
0
135
Member Avatar for Mylsamy

Hi all, How to I know the Delivery Status of Sending Email. I am Using JavaMail API to send an Email to ToUser. The code is : SMTPTransport tr = (SMTPTransport) poSession.getTransport("smtps"); tr.connect(mailhost,psFromMailId,psPassword); tr.sendMessage(poMessage,poMessage.getAllRecipients()); Is there Any method to get the Status? Please help me Thanks Myl..

0
34
Member Avatar for jiraiya

Hi everyone, I want to intitialise an object to perform a certain computation and wait for the object to finish, but I'm not sure what the best way is to go about this. Here's a couple of methods to give you an idea of what I'd like to do: [CODE] …

Member Avatar for JamesCherrill
0
148
Member Avatar for raghujosh

I have a JSP( a form) that calls a servlet when I click the submit button. I want to add javascript validation to the form fields. When I try to embed the script it does not run. I tried to link the file to the JSP, but that also did …

Member Avatar for javaAddict
0
2K
Member Avatar for vponnoju

Hello All, I am not sure, if this is the right place to post this query. If not, please redirect me. Here is the brief explanation of I have a web application (GWT application) project in Eclipse. I have a server side code which interacts with LDAP directory for some …

Member Avatar for vponnoju
0
279
Member Avatar for Victor C.

I am trying to find a tutorial to lean how to use a JFileChooser in order to read a file and convert it into a tick mark chart. I seen it on a demonstration video on sun.com and I thought it looked awesome. Sadly, I tried to google for tutorials …

Member Avatar for Victor C.
0
75
Member Avatar for -Ice-

[CODE]import java.io.*; import java.text.*; import java.util.*; /** * FileSentenceReader - Uses sound i18n method to parse sentences. * Created 12/03, Last mofified 09/07 * @author: Tony Dahlman */ public class FileSentenceReader { /** Reads through a text file, parsing it into sentences * in sound i18n fashion. Returns an ArrayList …

Member Avatar for coil
0
105
Member Avatar for Vivek Venkatesh

Hi...I am thinking of building a Word Processor in Java for my project... The problem is that there are many components in Java for that..like JTextComponent, JTextField, JTextArea, JTextPane, JEditorPane, and some styled Documents too... Can anyone say me which one to use considering the fact that My Project should …

Member Avatar for VernonDozier
0
1K
Member Avatar for mymattu

Iam getting this error code ;Line 5, char 45, unterminated string constant code 800A03F7 with the ff script. Please help. var thisAd = 0; function rotate() { var adImages = new Array("images/green.gif", "images/red.gif","images/gre.gif","images/ apple2.gif"); thisAd++; if (thisAd == adImages.length) { thisAd = 0; } document.getElementById("adBanner"). src = adImages[thisAd]; setTimeout(rotate, 3 …

Member Avatar for codeorder
0
41
Member Avatar for mani_1991

hai, i have to calculate the internet bandwidth of the system using java program.... please give any ideas to acheve it........ thanks,in advance

Member Avatar for mani_1991
0
497
Member Avatar for rowley4

I need to sort my array in alphabetical order. The program inputs N words(strings) and outputs them in alphabetical order. I have started out by using specific words to make sure everything is working correctly. I need to change this to accept any input. Any help would be appreciated! [CODE]public …

Member Avatar for tong1
0
301
Member Avatar for raghujosh

Environmental Variable: System variable(both) 1. A new GRAILS_HOME variable installed pointing to the Grails folder. 2.PATH: C:\Grails\bin appended . However I get an error message sayings grails is not a recognized command. I am a new to grails. The documentation says its very simple and I have tried different ways …

Member Avatar for raghujosh
0
389
Member Avatar for aditya027

can any one help!! Expand Post (Toggle Plain Text) import java.awt.*; import java.awt.event.*; import java.awt.Color; import javax.swing.*; import java.awt.Frame; import java.awt.geom.*; class BallEntity/*THE BALL CLASS*/ { private int top=0,left=0,height=0,width=0; //getter methods public int getTop() { return top; } public int getLeft() { return left; } public int getHeight() { return …

Member Avatar for aditya027
0
465
Member Avatar for niitin

hi, I m new to this forum. i wwnted to send sms from mobile to microcontroller wheather it is possible if yes plz help me

Member Avatar for NormR1
0
64
Member Avatar for musikluver4

Whenever I try to load a java applet from an html file, with the .class and .java files in the same directory, I load the html applet file and the only thing that gets displayed is NOT the applet, but the html code.....how do I enable java applets in my …

Member Avatar for DeadSoul
0
2K
Member Avatar for cik ain

how to Write a program that prompts the user to enter a point (x,y) and checks whether the point is within the circle centered at (0,0) with radius 10

Member Avatar for JamesCherrill
0
37
Member Avatar for Bladtman242

The code executes as expected, but I am not sure it is considered good code:) I am thinking especially of the two streams on the socket, if the first one is successfully opened and the next one for some reason throws an exception, the finally block will never run. If …

Member Avatar for Bladtman242
0
119
Member Avatar for Megha SR

hello. i have just started learning functions in java. i have done the below program to find area of rectangle,triangle and square. it is a private class. class calcu { void rectangle(int l,int b) { int area1; area1=l*b; System.out.println("area of rectangle = "+area1); } void triangle(double base,double h) { double …

Member Avatar for NormR1
0
76
Member Avatar for sumeetdesaeee

Hello Friends... This question was asked to me in an interview.. Can a class be static in java? If yes, then what is it's use and how it can be used?

Member Avatar for JamesCherrill
0
78
Member Avatar for Me Awesome

Hi every body, I am a masters student in computer science and i am looking for a project that is working good. I need the code for it. If anybody has it, please send it to me...or atleast suggest me where i could find one. The project shlould be at …

Member Avatar for monu952
0
177
Member Avatar for TahoeSands

I am working on an application in Java and for part of my plan I would like to have an object (eventually an array of these objects) where I could store two or three (I am not sure yet) varied types of data, for instance... A BufferedImage and a string …

Member Avatar for JamesCherrill
0
957
Member Avatar for 47pirates

Can any one explain me why there is a error in my home.jsp when i try to use commandLink for a link to open messages from the data base.After i use this link all my program crashed now not any component on the page is working.

0
48
Member Avatar for bunifrog

First thanks for the help last time I posted it set me on the right track thanks. Now what I need is to clean up a bit. (this is for the 30 year loan only want to get that to do what I need before creating the same with the …

Member Avatar for jon.kiparsky
0
320
Member Avatar for Megha SR

i have got a program to convert a double value to a string. eg==INPUT= 3.65 OUTPUT=three point six five. can anyone give the solution.

Member Avatar for Megha SR
0
105

The End.