There are examples in the book only for hard coded Array values.
I have StateDao class which have method getStateList() which provides List<String>.
How can I use data from database ?
Thanks
AR
is there a way to display image from Database to JSP directly without placing into any folder.
I can save and retrieve image from database and the place into some folder then display in jsp but I want to display directly from database to jsp.
Any clue ?
When I try to show image in jsp page.
Following code work .
Now I want to show image based on userImageFileName
I want to show image dynamically based on userImageFileName, this value chage for each user.
Value it pass is correct. eg smith123.jpg, smith 234.jpg something like this
but it won't work when I try to append value
Best book for developer I ever bought.
If you read and do the example during weekend
by Monday you can not only code
you can tell other developer what is Hibernate and
how it work and how the application should implement in your project.
It worth buying.
AR
I am trying to convert my struts 1.2 app to struts 2.
In my edit JSP, I am having trouble when I tried to put two field in same row edit,
where data suppose to display and if
want it can be modified.
How do I use two field in same row ?
I have good exposure to java and web development but no clue what the hell is web services?
Please advice me where to start? and what's next? Not only passing I want to learning and pass the test!
Thanks
AR
I am having problem when I deploy web application which use hibernate to connect database.
This application work perfect when I deploy in tomcat 6.
I test the code in test class and it do have connection to database and work fine.
But!!!
When I deploy it to jboss server I got error
[JDBCExceptionReporter] SQL Error: 0, SQLState: 08001
21:03:08,183 ERROR [JDBCExceptionReporter] No suitable driver
21:03:08,184 ERROR [[Controller]] Servlet.service() for servlet Controller threw exception
org.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)