35,618 Topics
![]() | |
I have a good idea what I am supposed to put but I can't seem to get it right. I have two different files, Server.java and Client.java. I want Client.java to call a method in Server.java. This is what I have figured out so far. public class Client{ public static … | |
Hi, I'm quite new to Jsp. The web server is Tomcat 6 and I have a Jsp page that uses a servlet as following code shows. [ICODE]<form name='uploadSO' method='post' encType='multipart/form-data' action='UploadUnConfirmedSOServlet' > <table width .....[/ICODE] The Jsp page is located under a folder called "Shipper" under my application's root directory: … | |
I am working on an application that has a menu window with 2 buttons for menu options. I would like the application to function in the following way. When a menu option button is clicked, the menu window disappears and the window for the menu selection appears. When the close … | |
can someone help me to develop a pseudo code that will allow me to find the min and max of an array recursively?? | |
Hi all, I am writing my first servlet, and facing some troubles. I have my servlet: [code] package com.example.servlet; // other imports... public class Hello extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ res.setContentType("text/html"); PrintWriter out = res.getWriter(); String name = req.getParameter("name"); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello, " + name … | |
hi i got a problem while running a jsp file from one pc in another pc,that jsp file contains hyper link to another file when i gave [url]http://pc55/index.jsp[/url] in pc say 56 lan connection is there index page is displying but the hyper link in that page not executing please … | |
Hello, I'm creating a game in Java and in the game there will be short videos played in between the levels and I need to know what classes to look at if I'm going to load, adjust volume, play and terminate the video. Also the way I have the program … | |
Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance.. | |
'javac' is not recognized as an internal or external command, operable program or batch file. | |
We import the packages from java.somepackge.*; or javax.package.*;package can be anything from javas own api or other external api. My question is what is difference between java and javax? | |
Hi to all the posters. I have come up with new problem using crimson parser to parse an xml file. I am creating xml file using crimson parser and DOM object. I have created a xml file using xmldocument object and i am setting nodes value according to tag name … | |
import javax.swing.JOptionPane; public class cafe2 { public static void main(String args[]) { String name,ch; double price = 0.00; double sum=0.00; int cho=0; name=JOptionPane.showInputDialog("Enter Customer Name:"); do{ ch=JOptionPane.showInputDialog( " Food Name "+ "\n-----------------------------------------------------"+ "\n1) French Fries $ 3.50"+ "\n2) Fish and Chips $ 5.50"+ "\n3) Goat Cheese Pizza $20.70"+ "\n4) Chicken … | |
Hello, I was creating a game in java and a thought came to mind, would it be better to dump it all and start from scratch with C++. So my question is, with all the cons I've listed and all the other issues that you know, what am I better … | |
Hi Friends, I'm afraid I need help again.... I wrote this program, and it won't compile...and now I have to add to it. Here is the program: public class InventoryProgram1App { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("InventoryProgram1App"); { {public class … | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton … | |
Hi I am not much experienced in JSP. I am facing one problem while printing a XML String on the screen. Code snippet -> String result = ab.returnResult(); result is returning a XML String..Suppose <A>123</A><B>SIR</B><C>21</C> I am printing -> <tr><td><%= result %></td></tr> I am getting 123SIR21 as output in the … | |
[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the … | |
Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists … | |
Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array … | |
I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will … | |
Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved. Basically the run method itself can throw an exception but others can't see it (RuntimeException) but can it throw … | |
I am trying to do a sort of and expiry date so that when an account is created about 3 months later I'll be informed so that the account can be renewed. I don't know how I can do this and to tell you the truth I never used the … | |
Sir/Madam My website has three pages. The first page is a Login Page in which all the validation takes place and if the user is a valid one it directs it to the second page. In the second page i have given a link to the third page where onload … | |
Hi, I am tryin to insert values entered by user into oracle db.I am using jsp and java beans for this.request.getParameter() works fine for string parameters but what should i use for fields such as date?..thx | |
Hey, I have a primary JSP which inlcudes a secondary JSP which is dynamic. How do I pass parameters FROM the secondary JSP back the PRIMARY JSP not the other way around? For example I have a page which displays the output from a database. The first page is just … | |
I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String … | |
pi = 4(1-1/3 + 1/5-1/7 + 1/9-1/11 + 1/13-.........- 1/(2i-1) + 1/(2i+1) ) I am starting this program to approximate pi. Would someone be so kind as to direct me to information concerning this formula? | |
Hello everyone, I'm in my senior year of high school and I have just started taking my first programming class. As it turns out, we use Java and then Visual Basic later on. My question is, as a Computer Science major, will I use Java again in college, or is … | |
I want a very simple player code to playes mp3 or wav files and also want to know where I should put it in my VisualMidlet to be played when I select special part of my choice group? please help me it's so important for me. Thank you all. |
The End.