Yuta Lolap

Ranch Hand
+ Follow
since Jun 03, 2012
Yuta likes ...
jQuery Eclipse IDE Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yuta Lolap

Hi All,

I have a basic layout of Model, View & Controller classes. I don't know how to pass the control from the View, to the Controller after setting the username and password in the Model. I want to pass the model which i have set using username and password to an authenticate method in controller. Cant figure it out.

Also, I want to have four different methods in controller
Method 1 - authenticate
Method 2 - Add
Method 2 - Delete
Method 3 - Update

Please do let me know!

Thanks in advance!

View




Model



Controller



Application
8 years ago
Hi All,

I have to prepare a research paper on any topic in Software Testing, Please suggest some hot topics that i can work on!

Thanks in advance!

Kind Regards,
Ms. Yuta Lolap.
8 years ago
Hi All,

Following is the code in my connectivity.php file.

Its gives the following error even when i am passing the connection object to mysqlli_query(). Please can you guys help me out as to why it is throwing this error even when i am able to successfully connect to the database.


( ! ) Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www\GUI_Version3\connectivity.php on line 32





The html form for this is as follows.




Thanks in Advance,
Ms. Yuta Lolap.



8 years ago
PHP
Hi all,

Following is the code on the click of a button, id like to know how do i close the current jframe on which the jButton4 is currently placed. I know how to send it to the next Jframe i.e JobCard. But need to close the current one. I tried using this.setVisible(true); But it does not work.




Thank You.
Regards,
Yuta Lolap.
9 years ago
I Got it! I had added the folder earlier , i am using Netbeans IDE. Now , added it directly as a jar! Works fine! Thanks for replying!
Hi all,


I am writing a basic connectivity ode to connect to mysql . I have installed wamp on my laptop. Database name is hrms. Following is a simple jdbc connect code i am calling on the click a button in Jframe. Facing the following exception in the db string. Please can you tell me where i am going wrong?

Also, do i have to mention the port no like 8080 in the connection string after localhost?








Entered the click event!
yl40019
sdkghdkflg


java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at hrms.Login.jButton1ActionPerformed(Login.java:103)
at hrms.Login.access$000(Login.java:17)
at hrms.Login$1.actionPerformed(Login.java:50)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
BUILD SUCCESSFUL (total time: 9 seconds)


Thank you.
Regards,
Ms. Yuta Lolap.

Sahil Thadhani wrote:You can also see if you have included web and web-mvc jar of springs. They also need to be checked. You can also refer to the classpath and see if all the jars are getting picked up. Placing the two files in WEB-INF usually does not create problem.



All the jars are getting picked up!
10 years ago

Bill Gorder wrote:web.xml should be directly under WEB-INF.
/



It is under WEB-INF i want to learn the basic setup without maven.
10 years ago
Prajakta i checked the tomcat installation folder. Yes i am using eclipse. Yes the jars are under the lib folder too.
10 years ago
Eclipse editor. My bad. I have included the the script tag in a jsp file.







I am trying to add an ID field to the script tag. But it is giving an error Undefined Attribute Error.
Hi, Where should the web.xml and the mvc-dispatcher-servlet.xml be placed exactly in the project structure? Should it be in WEB-INF directly or some place else?

Also i am getting ClassNotFoundException for DispatcherServlet when i am trying to render the jsp. I have loaded all the jars that are required.

The web.xml and spring-servlet.xml are inside WEB_CONTENT/WEB-INF .

Please can you tell me as to why this exception would occur?

10 years ago
That was wrong. No such think as FlDatatype. My Bad.
10 years ago
Its a hyperlink that is created to edit a comment which is made in the Jtemplate which rendered after an ajax call is made to get some json data to populate the Jtemplate.

If we remove the "javascript://" it doesnt work like a href.