- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
29 Posted Topics
i have code like this in page1.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <h1>Test</h1> <script language="javascript"> function JSGetSelectedItem() { var dropdownIndex = document.getElementById('lang').selectedIndex; var dropdownValue = document.getElementById('lang')[dropdownIndex].text; alert("Hello JSCript " + dropdownValue); } </script> <!-- to fill combobox i had get from … | |
I made application web using hibernate + spring + velocity and IDE Netbeans 6.8 + Glassfish this my files [CODE] applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd" > <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" p:location="/WEB-INF/jdbc.properties" /> <context:annotation-config/> <context:component-scan … | |
how to show data from database to treeview. example: data like this code Menuname l_evel parent M01 Maintenance 2 File M0101 Area 3 M01 M0102 Terms 3 M01 M0103 Category 3 M01 M010401 Rate Maintenance 4 M0104 M0106 Customer 3 M01 M010601 Customer Maintenance 4 M0106 please give code. thx | |
how to change database at runtime, i use hibernate and spring. i have make like this hibernate.cfg.xml [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <mapping class="com.model.Person" /> <mapping class="com.model.Group" /> </session-factory> </hibernate-configuration> [/code] spring.ctx.xml [code] <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" … | |
while i click date i want to get that date. i have used this method but i can't to get data is clicked i used JCalendar [code] public Employee() { super("", true, true, true, true); setSize(50, 50); initComponents(); jdcDateBirth.addMouseListener(new MouseListener(){ public void actionPerformed(ActionEvent e){ System.out.println("is birth " + jdcDateBirth.getDate() ); … | |
I want to get data sales item, its with compare table item with table sale although item in table sale nothing, data will show according with data item i have SQL like this [code] select i.code,s.date_sale from Item i left join(select * from Sale where date_sale <='2009-01-31') s on i.code=s.code; … | |
Hi, how to create trigger in mysql 5 with java. i have code like this, but still error " java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$ CREATE TRIGGER `a1`.`xData` … | |
Hi, all How to create report use IReport and Hibernate I have tried, like this : : 1. create file hibernate.cfg.xml [code] xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:mysql://localhost/a6</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password"></property> <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <!-- thread is … | |
I have design report with ireport, if that report i run in netbeans its ok, but while i move to drive c: got error like this "error displaying report page. see the console for details" if i try in command prompt get message [code] java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown … | |
how to connet to database using hibernate, because i create hibernate.cfg.xml while is running i have build simple application for test connection to database using hibernate. when write application i'm not write hibernate.cfg.xml, but i want create while running. so when i click button show error like this " "Jun … | |
Hi, all How to make connection to database more dynamically using hibernate. Example while my application running, I want to change connection to other server and database name but structure database is still same. I using jdbc I commonly using code like this [CODE] public static void getConnection(){ try { … | |
how to take computer name in linux I had tried this code in Windows Xp, it's Ok. but while i run in linux i got error "Cannot get computer name java.net.UnknownHostException: comcentos: comcentos" i'm using Centos 5. i have edit in file etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=comcentos [CODE] package myPackage; import … | |
hi, help me, how to make limit input only two decimal, i used jformattedtext. example : if i input more than two decimal in jformattedtext, then it can't and automatically delete by backspace. thanks for your help. | |
hi all, how to detect program is running in my computer. etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' . thanks, for your help. | |
hello how to convert string to double, and result is string. example ; String code =00000000001; Double plus =code + 1; String result =plus; // and result is 0000000002 thanks | |
hai , all This coding about filter data using jTextFiled and display in jtable, so help me to combine these class be one class. thanks [CODE] //DBAccess.java import ca.odell.glazedlists.BasicEventList; import ca.odell.glazedlists.EventList; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBAccess { private static Connection c; private … | |
where i get jasperreport and ireport for linux, and what files i must be download. thanks | |
hi, all how to using swing component jtree with jcheckbox in netbeans 5.5 i have got code from this link [url]http://www.jroller.com/santhosh/date/20050610[/url], but i can't combine with my project i hope somebody give me solution for my problem. thanks. | |
Hi, all I have code like this for encrypt - decrypt. but every time i run, result encrypt always different. so how to value in varible key constant. then result same every time run thanks. import java.io.*; > import java.security. *; > import javax.crypto. *; > import sun.misc.*; > import … | |
Hi, i have installed Netbean 5.0 with file jdk-1_5_0_09nb-5_0-win-ml , but why my Netbean 5.0 IDE is not MDI Application , JFInternal Frame. while a right clik my Project thanks. | |
Hello , all how to change tab order. example : position cursor is now in txtCode, then while i press key tab , cursor move to other component. thanks. | |
Hi, all how to make status bar in main menu with JFrame using netbeans, and i want to show. User : A 2007-4-12 into status bar. thanks | |
Hi, how to make programming for write and read text files with java and netbeans, and that files automatically save in application folder. thanks | |
how to make code for access form in many form. and sub menu exp: I give user can't access form Purchasing, but inventory not. with character 10 *1 can access *0 can't access | |
in Main Report I have make formula by the name of @a, then in sub of report I make formula by the name of @b. then I wish to make new in main report with the name @c. where value of formul @c is @a-@b. but formula @b in subreport, … | |
I have Fedora Core 6 linux install last stepped into choice of Grub boot. I select;choose Fedora core 6. I edit kernel / boot / root=LABEL ro vmlinuz-2.6.18-1.2798.fc6xen=/ quite Afterwards I follow setting of Setup Agent. After me click finish monitor life death and blank, multiply times; So I try … | |
Hi, how to using function "for" to show iteration and the result put in jTextArea or jFrame. exp: i want to loop value 1 to 10, then result : 1 (iteration 1) 2 (iteration 2) . . 10 (iteration 10) I'm using netbeans Thank's | |
I have data in mysql database, i'm has succesful for connect, but how to show data in jTable. help to give me example with very detail, because i'm newbie in java progamming best regard onsir |
The End.