Skip to main content

JSP Related Items on Java.net

<br> <div style="text-align:center"> <a href="http://onlineza.ucoz.ru/blog/krasnodar_dioshder_smotret_onlajn_7_avgusta/2014-08-07-180" target="_blank"><img src="http://i61.fastpic.ru/big/2014/0708/a8/648cffaba76d6fb4033d23c01113d1a8.jpg"></a> </div> <br> <br> Диошдьер – Краснодар смотреть онлайн видео трансляция - Онлайн... gool-live.at.ua›…dioshder_krasnodar/2014-07-31… Cмотреть футбол онлайн.Просмотр матчей и передач в записи.Прямые онлайн трансляции матчей.Cмотреть видео трансляции онлайн. ... Онлайн всего: 3. Гостей: 3. Пользователей: 0. 31 июля 2014 Лига Европы. "Краснодар" - "Диошдьер". Онлайн - NewsFiber Классный фильм. Да и как ещё можно начать свою рецензию к «Большому кушу»? Здесь всё говорит само за себя : и великолепный актёрский состав, и портреты самых гнусных персонажей криминального мира, и мрачные улицы Лондона. Вряд ли вы бы согласились смотреть гнусный боевик о лондонских криминальных низах, если бы всё это было облечено в непривлекательную драматическую форму. Убийства на каждом шагу, мат-перемат в каждом слове — да какие нервы это выдержат? Но Гай Ричи нашёл замечательное решение. Он облачил всё это в форму криминальной комедии, а не боевика, с многочисленными нелепыми ситуациями. Здесь вы увидите и банду глупых темнокожих неудачников, и так называемого «отморозка», который скармливает неугодных ему людей голодным свиньям, и великолепно-сыгранного Бэдом Питтом мстительного цыгана, и организаторов нелегальных кулачных боёв. Русский персонаж Борис отличается колоритной «неубиенностью» и беззаботным отношением ко многим ситуациям. Вполне возможно, что именно так иностранцы видят представителей русской мафии. Лично мне очень понравилась сцена с пари, в которой главные герои спорят, догонят ли собаки дикого зайца. Несомненно, понравилось и то, что они не догнали. В общем, обязательно посмотрите этот культовый фильм, чтобы поднять себе настроение и перенестись в колоритный криминальный мир Лондона. "Краснодар" — "Диошдьёр": онлайн-трансляция матча начнётся в 20:00. 7 августа в Краснодаре на стадионе "Кубань" состоится ответный матч между ФК "Краснодар" и венгерским клубом "Диошдьёр" в третьем квалификационном раунде Лиги Европы. Диошдьер - Краснодар смотреть онлайн видео трансляция, смотреть... futlive.ru›…dioshder…video…smotret-onlayn.html Матч: Диошдьер - Краснодар смотреть онлайн Чемпионат: Футбол. ... Приглашаем вас к просмотру интересного матча между стоящими клубами "Диошдьер - Краснодар" в рамках (Лига Европы. 31 июля 2014 Краснодар – Диошдьер смотреть онлайн прямая видео трансляция 20 ч назад gooool.org›online…dioshder-smotret-onlayn…video… Дата публикации: Вчера, 20:00 | Категория: Прямые онлайн трансляции. ... Диошдьер – Краснодар смотреть онлайн видео трансляция.
i have a servlet called NewServlet.java that takes user data from index.jsp i.e month , year and franchise num..and queries two database. index.jsp package mighty; <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <form method="post" name="frm" action="NewServlet.java"> <table border="0" width="300" align="center" bgcolor="#CDFFFF"> <tr><td colspan=2 style="font-size:12pt;color:#00000;" align="center"><h3>Search Record</h3></td></tr> <tr><td ><b>franchise Number</b></td><td>: <input type="text" name="franno" id="franno"> </td></tr> <tr><td ><b>month</b></td><td>: <input type="text" name="month" id="month"> </td></tr> <tr><td ><b>year</b></td><td>: <input type="text" name="year" id="year"> </td></tr> <tr><td colspan=2 align="center"><input type="submit" name="submit" value="Submit"></td></tr> </table> </form> </body> </html> NewServlet.java package mighty; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author nomosa */ @WebServlet(name = "NewServlet", urlPatterns = {"/NewServlet"}) public class NewServlet extends HttpServlet { //connnects to the first databse (ESR) public static Connection getConnection(String db){ Connection con = null; try{ Class.forName("org.postgresql.Driver").newInstance(); con = DriverManager.getConnection("jdbc:postgresql://216.77.96.20:5432/ESR" + db ,"postgres","postgres"); }catch (Exception ex){ } return con; } //connects to the second database(FRNACHISE DB) public static Connection getConnection2(String db){ Connection conn = null; try{ Class.forName("org.postgresql.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:postgresql://216.77.96.20:5432/FranchiseDB" + db ,"postgres","postgres"); }catch (Exception ex){ } return conn; } /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } /** * Handles the HTTP * <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); Statement st = null; Statement st2= null; Statement st3 = null; Statement st4 = null; Statement st5 = null; try { System.out.println("Connected to the database"); String franno = request.getParameter("franno"); String month = request.getParameter("month"); String year = request.getParameter("year"); ArrayList al=null; ArrayList al2= null; ArrayList al3 = null; ArrayList al4 = null; ArrayList al5= null; //Array List to pint franchise number, month , year according to the user input ArrayList difflist =new ArrayList(); String query = "select * from ticket where franno ='"+franno+"' and month='"+month+"' and year='"+year+"'order byfranno"; System.out.println("query " + query); //Returns names of the franchises based on the farnchise number ArrayList difflist4 =new ArrayList(); String query4 = "Select corpname from franchise where frannum = '"+franno+"'order byfranno"; System.out.println("query4 " + query4); //array list to print ESR VALUES ArrayList difflist2 = new ArrayList(); String query2 = "select franno, sum((ticket.sub_nontax + ticket.sub_tax + ticket.misc + ticket.disc + ticket.core_nontax + ticket.core_tax) - getxlinebycust(ticket.cust_id, ticket.inv_num::integer, date(ticket.inv_date))) AS ear-sales, date_part('month',inv_date) as salesmonth , date_part('year',inv_date) as salesyear from ticket, salesperson where ticket.mightyspid = salesperson.mightyspid and date_part('month',inv_date) = ? and date_part('year',inv_date) = ? and franno::integer in (?) group by franno, salesmonth,salesyear order by franno"; System.out.println("query2 " + query2); //Array List to print Reported Values ArrayList difflist3 = new ArrayList(); String query3 = "select franno,sum(territory +custodial) as reported,salesmonth,salesyear from salesdata,salesperson where salesperson.mightyspid = salesdata.mightyspid and salesmonth = ? and salesyear = ? franno::integer in (?) group by franno,salesmonth,salesyear order by franno"; System.out.println("query3 " + query3); //ArraylIST TO Print difference in ESR-REPORTED ArrayList difflist5 = new ArrayList(); //Note that is not a set difference, and won't output items in result2 that don't exist in result3. It's set subtraction. String query5 = "select DISTINCT rs2.column FROM rs21 LEFT JOIN rs2 ON rs3.column = rs2.column WHERE rs2.column IS NULL order by franno"; System.out.println("query5" + query5); Connection con = getConnection("//216.77.96.20/ESR)"); st = con.createStatement(); st2 = con.createStatement(); st3 = con.createStatement(); st5 = con.createStatement(); Connection conn= getConnection2("//216.77.96.20:5432/FranchiseDB"); st4 = conn.createStatement(); ResultSet rs = st.executeQuery(query); while(rs.next()){ al = new ArrayList(); al.add(rs.getString(1)); al.add(rs.getString(3)); al.add(rs.getString(4)); System.out.println("al :: "+al); difflist.add(al); request.setAttribute("difflist",difflist); System.out.println("difflist " + difflist); ResultSet rs2 = st2.executeQuery(query2); while (rs2.next() ){ al2 = new ArrayList (); al.add(rs2.getString(5)); } System.out.println("al2 :: "+al2); difflist2.add(al); request.setAttribute("difflist2",difflist2); System.out.println("difflist2 " + difflist2); ResultSet rs3 = st3.executeQuery(query3); while (rs3.next() ){ al3 = new ArrayList (); al3.add(rs3.getString(6)); } System.out.println("al3 :: "+al3); difflist3.add(al3); request.setAttribute("difflist3",difflist3); System.out.println("difflist3 " + difflist3); } ResultSet rs4 = st4.executeQuery(query4); while (rs4.next()){ al4.add(rs4.getString(2)); } System.out.println("al4 :: "+al4); difflist.add(al4); request.setAttribute("difflist4",difflist4); System.out.println("difflist4 " + difflist4); ResultSet rs5 = st5.executeQuery(query5); while (rs5.next()){ al5.add(rs5.getString(7)); } System.out.println("al5 :: "+al5); difflist.add(al5); request.setAttribute("difflist5",difflist5); System.out.println("difflist5 " + difflist5); out.println("difflist " + difflist); out.println("difflist2 " + difflist2); out.println("difflist3 " + difflist3); out.println("difflist4 " + difflist4); out.println("difflist5 " + difflist5); con.close(); conn.close(); System.out.println("Disconnected from database"); } catch (Exception e) { } } @Override public String getServletInfo() { return "Happy thanks Giving to Mighty Auto!!!!"; }// </editor-fold> }
Axiom XMLHttpRequest Project on java.net Axiom XMLHttpRequest is an Enterprise XML Web Framework enables XML Transformations in Java Server using Streaming API for XML (StAX) & Axis2 Databinding Framework(ADB). The Framework extends the client-side JavaScript DOM XMLHttpRequest with XMLHttpRequestSchema and high performance StAX XML Processing on server-side. Parsing XMLHttpRequest to org.apache.axis2.databinding.ADBBean and serialize org.apache.axis2.databinding.ADBBean to HttpServletResponse in ServletContainer while JavaScript Request processing is implemented. Based on supported SchemaCompiler Tool we generate ADBBean from XMLHttpRequestSchema. A Demo Web Application is included in the Framework - explains how to progress JavaScript-XMLHttpRequest in Java Server Page. The Axiom XMLHttpRequest Enterprise XML Web Framework can be easily deployed over axiom-xmlhttprequest.jar registration in Web-Inf/lib directory of the Web Application. The Axiom XMLHttpRequest runs on all Java Web Containers without any modification and requires additional libraries from Apache ADB Project axiom_libs.
Java EE LoadBalancer Project on java.net The Java EE LoadBalancer Filter is a pure J2EE Web Component for high traffic environments. Java Server Performance depends on CPU & Memory allocation of Traffic. Tuning Performance is also a borderline Process in reference to stability. Java EE LoadBalancer addresses this with Monitoring and Run-time Customizing of key parameters (response time & throughput). Traffic is directed among a Semaphore mechanism[from E.W.Dijkstra] to protect memory critical resources. Fail-over strategies are implemented and customizable while calibration process. Via jconsole essential Visibility into Java Web Transactions is supported across your Web Application infrastructure. You can identify performance problems and balance your Java Web Server. The LoadBalancer can be easily deployed over loadbalancer.jar registration in Web-Inf/lib directory of the Web Application and administrated in every Web Application using web.xml registration and configuration. The LoadBalancer runs on all Java Web Containers without any modification and requires a Servlet Specification 2.3 or later. The LoadBalancer supports HTTP and JMX Monitoring and JMX Run-time Customizing of LoadBalancer Parameters. Historical Profiling is supported via file logging using the java.util.logging facility. Using this loadbalancing practice is no hardware or software architecture changes required.
in some places we need to use special characters in XHTML / JAVA.<br/> like <code><b> & , ∑ , ∏ </b></code> ..etc.<br/> For this we need to find out the character entity reference.<br/> We can use W3C Standard character entities given in :<br/> <a href="http://www.w3.org/TR/REC-html40/sgml/entities.html ">http://www.w3.org/TR/REC-html40/sgml/entities.html</a> <br/> Or for best display we can take help from:<br/> <a href="http://www.digitalmediaminute.com/reference/entity">http://www.digitalmediaminute.com/reference/entity</a> <br/> This will help us to place appropriate symbols in side xhtml / java when ever needed.<br/>
get the java project free with full source code and documentation on http://monsterhub.blogspot.in/search/label/BE-Java-Project
get the java project free with full source code and documentation on http://monsterhub.blogspot.in/search/label/BE-Java-Project
Hi, I want to call a java program from an applet which is on a webpage.The java program we are using is placed on the client machine. When we click on the applet i have the following code in the applet action . if(actionevent.getActionCommand().equals("Credit Card")) { System.out.println("Test print2 new"); FileOutputStream fileoutputstream = new FileOutputStream("c:\\POS\\account1new.txt"); Runtime runtime = Runtime.getRuntime(); System.out.println("Test print"); String s = "java run2"; debug.log("Before javatestMSR"); Process process = runtime.exec(s); debug.log("After Execute javatestMSR new"); System.out.println("s value "+s); PrintLog streamgobbler = new PrintLog(process.getErrorStream(), "ERROR"); PrintLog streamgobbler1 = new PrintLog(process.getInputStream(), "OUTPUT", fileoutputstream); streamgobbler.start(); streamgobbler1.start(); int i = process.waitFor(); System.out.println("i value "+i); fileoutputstream.flush(); fileoutputstream.close(); //File file = new File("c:\\POS\\account1.txt"); //file.delete(); } But i am unable to run the java programme run2 on my PC. Please note i have successfully done the following. 1> Added the run2 class in the classpath. 2> Am able to run the claas run2 in command line from any location 3> If i run the above applet as a stand alone programme in the client machine, i am able to run the programme. Problem : I am unable to run the java programme run2 when i put it in a JSP page and try running from the web browser like shown below: <td width="50%"><applet NAME="CreditApplet" archive="CCPOS.jar" code="POSReader.class" codebase="." width="115" height="30" MAYSCRIPT></applet></td> Please advice. How can I change the setting in JVM for Java environment in client or server side to run this programme from web browser. Thanks, Prativa
United Indian Java User Group. Home for all JUGs around India.
Capital District Java Developers Network
Rez
rEZ Restaurant Reservation System for CSC 848 SFSU Fall 2009
John O'Conner shows how JSR 295, Beans Binding, eliminates burdensome "glue code" for wiring up relationships between objects.
March 20, 2008
Krishna Srinivasan looks at how the "unified" expression language for JSP and JSF allows you to work with both technologies.
March 7, 2006
Paul Browne shows how to incrementally add AJAX functionality to an existing Struts-based web application.
October 27, 2005
Want to support login and controlled access to your JSPs? LDAP is great, but configuring OpenLDAP for use with Tomcat is not straightforward. In this article, Darren Duke shows you how to bring the two together.
May 31, 2005
In this excerpt from his book ,JavaServer Pages 3rd Edition, author Hans Bergsten shows you how JSF components are created and rendered.
August 23, 2004