Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~9K People Reached
Favorite Tags
Member Avatar for onsir

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 …

Member Avatar for anand01
0
3K
Member Avatar for onsir

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 …

0
68
Member Avatar for onsir

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

Member Avatar for Kazmirus
0
206
Member Avatar for onsir

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" …

Member Avatar for keerthi166
0
1K
Member Avatar for onsir

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() ); …

Member Avatar for peter_budo
0
109
Member Avatar for onsir

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; …

Member Avatar for masijade
0
84
Member Avatar for onsir

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` …

Member Avatar for Ezzaral
0
351
Member Avatar for onsir

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 …

Member Avatar for seela
0
896
Member Avatar for onsir

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 …

0
95
Member Avatar for onsir

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 …

0
61
Member Avatar for onsir

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 { …

Member Avatar for jwenting
0
402
Member Avatar for onsir

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 …

Member Avatar for onsir
0
92
Member Avatar for onsir

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.

Member Avatar for PoovenM
0
180
Member Avatar for onsir

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.

Member Avatar for ~s.o.s~
0
198
Member Avatar for onsir

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

Member Avatar for masijade
0
141
Member Avatar for onsir

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 …

Member Avatar for orko
0
967
Member Avatar for onsir

where i get jasperreport and ireport for linux, and what files i must be download. thanks

Member Avatar for Byaptia
0
391
Member Avatar for onsir

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.

Member Avatar for onsir
0
94
Member Avatar for onsir

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 …

Member Avatar for ksaxena
0
126
Member Avatar for onsir

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.

Member Avatar for Ezzaral
0
87
Member Avatar for onsir

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.

Member Avatar for masijade
0
72
Member Avatar for onsir

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

Member Avatar for masijade
-1
97
Member Avatar for onsir

Hi, how to make programming for write and read text files with java and netbeans, and that files automatically save in application folder. thanks

Member Avatar for peter_budo
0
81
Member Avatar for Fungus1487

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no …

Member Avatar for Fungus1487
0
129
Member Avatar for onsir

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

Member Avatar for yhoezt
0
93
Member Avatar for onsir

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, …

Member Avatar for radu84
0
53
Member Avatar for onsir

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 …

0
28
Member Avatar for onsir

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

Member Avatar for Phaelax
0
94
Member Avatar for onsir

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

Member Avatar for jwenting
0
65