- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 6
- Posts with Downvotes
- 3
- Downvoting Members
- 6
44 Posted Topics
I am very new to JSP language and i ahve worked a lot on JAVAlanguage and i have configured my Tomcat Server also and its running fire I would like to know about the steps that i am required to follow to Execute my JSP File. 1.Please tell me in … | |
Re: Please see the following Code : HTML FILE [code=html]<form action="calculate.jsp"> <input type="Submit" name="Enter" value="see"></input> <input type="Submit" name="Enter" value="saw"></input> <input type="Submit" name="Enter" value="seen"></input>[/code] In calculate.jsp [code=java]request.getParameter("Enter")[/code] Here it will return the value of Button "Enter" as per the button clicked and you can apply different If ELse loops upon the value … | |
Re: hey i think what you can do is you find the frequency of characters in a word Like ""madam" is having 2 m and 2 "a" and 1"d" so u can make pallindronme for it Its just a logic that u can think abt...Hope it will help u in 1 … | |
Re: [COLOR=#000000]Well I think what you can do is you can use string operation on your input to get such a Switch Case Statement[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]For Example if you want to go for Black, blue or something else.....what you can do is you make user enter string and find the … | |
Re: Hi TransKim Write some code ...get an error and ask us ...we are here for you in that case But if your teacher ask you to do something and you are simple coming to us to do that.....then we are not here to help you so come up with some … | |
Re: You do one thing before craeting a war file you remove Source folder from src directory and let it have only complied classes In this way when you will paste it in the webapps folder it wont be having SRC folder only classes will be there Well about the desktop … | |
Re: [quote]System.out.println("yes"); [/quote] will work | |
Re: Seems like you are following C & C++ approach to write Java program | |
Re: [code] for (i = 0;i< l;i++ ) { int temp=num[i]; for (j = i;j<l;j++ ) { if(num[i]>num[j]) { num[i]=num[j]; num[j]=temp; } } } [/code] Try this code | |
Re: I just figured out that your program is reading only word instead of whole line. Can you please try to print content of 'WORD' after [code]String Word = scan.next();[/code] line. Thanks | |
Re: The three different integers are the 3 different integers are : 13, 27, 14 System.out.println("the 3 different integers are : "+num1+","+num2+","+num3); In case you are looking for just formatting your output. | |
Re: Hi..........in general what you can do is .....create one lib folder in your project and copy the driver file for connection in that and set calss path to your lib folder........... set classpath ....u have to do this stem into system variables My computer -: properties -: Advanced -:Environment variables | |
I am creating a simple application using Swings . I am executing search on the database and result i have shown in table. My first query resulted in 8 rows which was shown clearly. Now on same frame i changed the search criteria and clicked search button. Now its resulting … | |
Re: Can you please tell me how you solved this issue. Its occurring for me also. I am running a query , sometime it results in 8 rows and sometime it gives 3 rows. My first quesry resulted in 8 rows and i am getting 8 rows now but my 2nd … | |
I am trying to display an Image using applet. Image is updated after every 4 seconds so i want my applet to show updated image.I am not sure where i should load the image i have tried to load it in the init() method as well as in "start" method … | |
i am woring on a project that finds the CPU temprature and shows in the graph. I am using applet to disply this.The CPU temp program is running and fter every minute the Image is modifed but when i m displaying the updated image in the applet it fails to … | |
Re: Hi Why dont you give a try to [URL]http://www.jsptut.com/[/URL] May be it will help you out suMit | |
I am executing a project that have 100 jar file attached to it I am able to execute it in Eclipse but i want to run it from batch file but the problem is that i am not able to set class path , whereas in eclipse we can direclty … | |
I have one doubt about WAR file........ Like i am creating a project with mysql databse and deploying it through WAR file My question is if i want to deploy it on some other machine then i am copying war file there in webapps folder.........but do you think it war … | |
Hi i am making a new user page where user will fill username and password and i want to put some client side validation on it Suppose user has given wrong values in password and Confirm password column so before a request is send to secnd servlet i want to … | |
I have one doubt about WAR file........ Like i am creating a project with mysql databse and deploying it through WAR file My question is if i want to deploy it on some other machine then i am copying war file there in webapps folder.........but do you think it war … | |
Hi All I am trying to create 2 tables Table 1 with cust_id , username and password (Cust_id is primary key here) Table 2 wth cust_info that will store info for that cust........now i want to use this Cust_id as foreign key here in table2 but i am not able … | |
Hi All I want to implement "FIX protocol" The Financial Information eXchange (FIX) protocol using java technology can any of you please guide me what are the things i need to know in java to implement this. and any further help from where i can get to know more about … | |
I am passing an object of class "String" to hello function and i want to pribt all the chars so i am using foreach loop My main motive is to use foreach so please help me to type cast it follwoing is the code i have [B][COLOR=#7f0055][/COLOR][/B] [B][COLOR=#7f0055]int[/B][/COLOR] [COLOR=#0000c0]i[/COLOR]=0 ; … | |
I am attaching a war file that prints hello using servlet This is code for web.xm [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<?xml version="1.0" ?>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR][B]servlet1[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR][B]/hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff][/COLOR] [COLOR=#0000ff]but … | |
Re: Hello [URL="http://www.daniweb.com/techtalkforums/member151943.html"]zhapool[/URL] Buddy here people are keen to help you but they want a feel that you are right person to help.Me too have asked so many question and Jwenting happily replied them ,though some of questions seems stupid to me now but he never hesitate to reply me. So … | |
Hi , i am trying to run Servlet since last 3 days , i have executed servlet so many times with same method but this time its troubling me . This is code of web.,xml <?xml version="1.0"?> <web-app> <servlet> <servlet-name>hello</servlet-name> <servlet-class>servlet1</servlet-class> </servlet> <servlet-mapping> <servlet-name>hello</servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> </web-app> Aug 8, 2007 … | |
I ahve created a directory Structure Sumit -> WEB-INF -> src -> classes and i putted Servlet file in src , compiled class file in classes folder and created Web.xml file in WEB-INF folder after that i craeted a war file ( I am not sure it should be inside … | |
What should be the encoding format of Web.xml file while saving it form notepad | |
I am calling this constructor but it is not getting complied public conn() { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql:///dbetech", "root" , ""); } throwing error message: D:\etech\WEB-INF\src>javac *.java conn.java:16: incompatible types found : java.sql.Connection required: com.mysql.jdbc.Connection con=DriverManager.getConnection("jdbc:mysql:///dbetech", "root" , ""); ^ 1 error | |
I am trying to create a calss with a constructior that creates connection with MYSql database , i am using database name as dbetch . I have set the path varable but still it id throwing error package login; import java.sql.*; import java.sql.DriverManager; import com.mysql.jdbc.Connection; public class conn { Connection … | |
Re: EXE means executable file. We can save any file as exe and it will be executed also but whatever we have written inside it will be executed For example if you save a Blank notepad file as "abc.exe" , file will be created but it wont be performing any action … | |
Well i am doing a very simple program that is to calculate the number of occurrance of a character in a string Hello World The character H appears 1 times The character E appaers 2 times The character L appears 3 times The character L appears 3 times The character … | |
I was executing a simple core java application using JDK1.5 I wrote code and complied using javac it gave some errors that i fixed and at last it got complied successfully But when i tried to exeute it using java it gave me an error message Error in thread main.NoSuchMethodFound … | |
Re: hey it sounds a very interesting question if you are not allowed to use anything apart from two Stack Tell me ARe we allowed to use temp varaibe here ![]() | |
Re: Be honest Be truthful and be thankful when looking for any help from anyone. Please do read the Infraction second last reply that gonna help you a lot and will surely teach you a lot . Just give it a try madam | |
I need to get information about the time taken by tomcat server to get restarted and also when i paste some war file inside Webapps folder i dont observe anything on the startup.bbat file............I mean it should register with that file I think there must be some property file with … | |
I am trying to acess Bean thorugh JSP using useBean tag ,but its giving me ClassNotfoundExcetption i think i am missing somewhere in structure of JSP program Can anyone tell me where shall i place this Bean class so it can be read Currently i have putted it inside WEB-INF … | |
I am learning JSP can anyone tell me how shall i proceed with JSP I mean what should be sequence of things that will make learning convinent for me Please do suggest me which kinda aaplication i should make in JSP........some ideas I have done core java and servlets | |
I am new to JSP and was trying a very simple program that adds/Divide/multiply/Subtract 2 numbers I am taking two numbers from a web page and as per the button pressed performing the action on JSP page. I have kept a vraiable c for output If i write int c=0 … | |
Re: Well i believe that you cannot use Sizeof() function on class. DO create objects and then find the size of objects to find sixe of class Like class A a; cout<<sizeof(a); Please correct me if i am wrong at some point ....i am not in touch with C,C++ or long … | |
Re: [COLOR=#000000]I think the code [/COLOR][COLOR=#444444]getline(cin,data.stringdirector); [/COLOR][COLOR=#444444]should be written as[/COLOR] [COLOR=#444444]getline(cin,data.movieDirector) ;[/COLOR] [COLOR=#444444][/COLOR][COLOR=#000000] and secondly [/COLOR][COLOR=#444444]int runningtime; should be declared inside Structure defination if you want to define as a Structure member[/COLOR] | |
Re: Tell me What exactly you rae trying to do. Are you trying to mAtch the value from Database Or you are matching the SSN with a dummy value taken in the Program itself Can you provide more information or source code |
The End.