- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
23 Posted Topics
"httpError: The Http Transport returned a 0 status code. This is usually the result of mixing ajax and full requests. This is usually undesired, for both performance and data integrity reasons." I am getting this error in my web page form... how to get rid of this message ............ ![]() | |
**registerBean.java** public void onEdit(RowEditEvent event) { Connection con = null; PreparedStatement stat = null; ResultSet rs = null; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/db", "root", ""); stat = con.prepareStatement("update regtbl set fname=? where rno=?") ; stat.setString(1, fname); stat.setInt(2, rno); stat.executeUpdate(); con.close(); } catch (Exception e) { e.printStackTrace(); } } ** … ![]() | |
[CODE] <tr> [B][U]<td><a href="inbox.jsp" ><%=rs.getString(1)%></a></td>[/U][/B] <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr>[/CODE] See lines in Bold.....after i click it has to set session variable with value reterived from <%=rs.getString(1)% >based on which i am going to display particular contents in redirected page | |
public class SendMessage { public static void main(String[] args) throws UnsupportedEncodingException { //String strMsg=java.net.URLEncoder.encode("This is API msg", "UTF-8"); callURL("https://api.mVaayoo.com/mvaayooapi/MessageCompose?user=user@gmail.com:1111&senderID=TEST SMS&receipientno=9999999999&dcs=0&msgtxt=msg&state=1"); } public static void callURL(String strURL){ System.out.println(" URL is :"+strURL); try{ URL obj = new URL(strURL); HttpURLConnection httpReq = (HttpURLConnection)obj.openConnection(); httpReq.setDoOutput(true); httpReq.setInstanceFollowRedirects(true); httpReq.setRequestMethod("GET"); String iStatus = httpReq.getResponseMessage(); System.out.println("iStatus: "+iStatus); } … | |
Please let me know godds books for web development using Jsf,Spring,Hibernate I am beginner to learn these technologies...and i am currently working on web development using these technologies...so let me know the easy and best books to learn these technologies. Books should include complete core concepts in simplified way....please help … | |
i am using ubuntu 11.04, have connected an dongle to it,i am trying to find the comport no to which dongle is connected ,As in windows i get com23,com24 etc .how can i get it in linux ? | |
This is error its throwing : javax.servlet.ServletException: /dtl.xhtml @13,75 value="#{registerBean.reteriveData()}" Error Parsing: #{registerBean.reteriveData()} javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) dtl.xhtml <h:dataTable value="#{registerBean.reteriveData()}" var="rb"> <h:column> <f:facet name="header"> <h:outputText value="Model" /> </f:facet> <h:outputText value="#{rb.fname}" /> </h:column> </h:dataTable> registerBean.java public List reteriveData() { Connection con = null; List list = null; try { DBConnection db = new … | |
Below code includes both client and server code.... I am trying to read message from client and display it on server and vice versa......Problem i am facing is both the codes are executin but messages are not getting displayed ....help me import java.io.*; import java.net.*; class Client { public static … | |
Re: <% try{ Class.forName("org.apache.derby.jdbc.ClientDriver"); con=DriverManager.getConnection("jdbc:derby://localhost:1527/Employee"); stmt=con.createStatement(); ResultSet rs=stmt.executeQuery("select uname,regno from emptbl"); while(rs.next()){ %> <table> <tr> <td>rs.getString(1)</td> // 1 indicates coloum number(uname) <td>rs.getString(2)</td> </tr> </table> <% } } catch(Exception e) { } finally { try { stmt.close(); con.close(); } catch (Exception ex) { } } %> | |
Re: In java String is class You use command : javap java.lang.String on command prompt Here you can see various predefined methods | |
Re: use jar -cf name.jar file1.java file2.java //create jar the file1.java, file 2.java will be in name .jar after executing above command | |
I am trying to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's not working in my program. [B][B]Its Giving error : C:\Users\Nitin\java>javac AOTest.java AOTest.java:6: cannot access AOperation bad class file: .\AOperation.java file does not contain class AOperation Please remove … | |
Re: [CODE]public static void main(String[] args) throws IOException { Apple sam=new Apple(); double a,b; a=sam.sample(); b= sam.sample1(); sam.display(a, b); }[/CODE] its works | |
Re: If you have installed JDK, 1) Locate where your jdk\bin folder is in your system ex : C:\Program Files\Java\jdk1.6.0_21\bin 2) Now open Command Prompt 3) Now set the path: set path="C:\Program Files\Java\jdk1.6.0_21\bin" press enter 4)now type : javac on command prompt.if you get following out put then your java is … | |
Re: [CODE] import java.util.Scanner; public class MaxNumber { public static void main(String[] args) { Scanner input = new Scanner(System.in); int min = 0 ; int count=1; System.out.println("Enter a number : "); int num=input.nextInt(); min=num; for(;;) { if(num==0) break; if(num<=min) { min=num; count=0; } System.out.println("Enter a number : "); num=input.nextInt(); } System.out.println("The … | |
Re: Hi , As you are interested in mobile applications,you can go through this link and improve your skills [URL="http://developer.android.com/"]http://developer.android.com/[/URL] Best of luck | |
Re: 1) You first Download WampServer 2) Start the wampserver, 3) On Desktop in Notificaion area you will see a wampserver icon 4) Click on it 5) then MySql---> Console 6) press Enter 7) Here you can create database create database student; WampServer is better and easy to use. It also … | |
Re: Here is the code,If you like this code plz dont forget to to click on upper arrow mark on right corner of my post.. [CODE]#include<stdio.h> #include<conio.h> main() { char str[50],ch; int i; printf("Enter String : "); gets(str); printf("Enter Character of which you want to kmow position : "); scanf("%c",&ch); for(i=0;str[i]!='\0';i++) … | |
Re: Here is the code [CODE]#include<stdio.h> #include<conio.h> main() { char str[50]; int i; printf(" Enter String\n"); scanf("%s",str); for(i=0;str[i]!='\0';i++) { if(str[i]==str[i+1]) printf ("%c\n", str[i]); } getch(); }[/CODE] | |
Below is part of code !!! i am new to jsp !!! it is giving error at variable temp1... help me out [CODE] try { Class.forName("com.mysql.jdbc.Driver").newInstance(); String url="jdbc:mysql://localhost/ecops"; Connection con = DriverManager.getConnection(url,"root",""); java.sql.Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("Select max(cid) from citizen_info"); while(rs.next()){ int temp1=rs.getInt("max(cid)"); break; } temp1=temp1++; stmt.executeUpdate("insert into citizen_info … | |
Here's the thing, I need to create three dropdown lists each for day, month, year. Once these are selected, after clicking a button, the three selected values need to be concatenated and bound to a date column in a database table. String month=request.getParameter("month"); String date=request.getParameter("date"); String year=request.getParameter("year"); how to concat … | |
Hello, i Want to do project on Java.... any one tell me some new ideas to do my project.... some thing new i can implement as for my final year project | |
Hello, I am final year student.I am doing project on Remote Desktop Viewer and Controller in JAVA. Similar to Team Viewer .I want to add some New Features that are not in Team Viewer.[B]So plz suggest some new features that can be added that are not in Team Viewer.[/B] [B]Also … |
The End.