I have read that for static, I need to import the model.modelName which is what I did.
The jstl printed out the model.variables that meet the query in my servlet.
The problem is that inside the...
Type: Posts; User: tangara
I have read that for static, I need to import the model.modelName which is what I did.
The jstl printed out the model.variables that meet the query in my servlet.
The problem is that inside the...
Hi,
I have been attempting to get this resultSet for almost 2 days but still can't get it done.:(
Basically, I am trying to get the tutor_id and subject from a table which contains these 2...
I think you have never done servlet or many to many using pure Java and JDBC so it will be difficult for you to understand about my problem.
Your above code is only good for normal single table...
I have 2 entities - tutor and Subject.
At the controller, I have problem with the code where I need to set the tutor to get the list of subjects which are in String.
Here's the snippet of...
Dear expert,
I am trying to get the servlet to read the values in this case 'subject' from my html and insert into MySQL database.
The column subject is supposed to have more than 1 subject or...
Dear expert,
I just learnt DAO.
However, I have no experience in inserting into many-to-many tables using the DAO pattern.
table1 : tutor
table2 : subject
table 3 : tutor-subject (this is...
I'm running my web application on Netbean 7 with apache Tomcat.
Now, I'm using microsoft access so I'd need to use a My SQL JDBC ODBC connector driver.
After google around the web, I got this...
I have a Post servlet which will inform user that the information is captured.
After the form is submitted, my browser is all blank. It is supposed to give me a message.
The data was captured...
But, I already mentioned I have done the above for countless times......more than 100 or more times....:(((
And I'm still awaiting how to restart tomcat server inside Netbean....What I notice though...
Here's what I have put:
<form id="frmData" name="frmData" action="ProcessRegistration" method="post" >
But, the problem is still there. :(((
How do I restart Tomcat inside Netbean?
Hi Syed,
I have followed your instruction to change to the form to match the beans. But, it's still not working. :(((
Tomcat is still reading the memory thing.
Can you teach me how to...
Hi Syedbhai,
<code>
<tr>
<td>Full Name</td>
<td><input type="text" id="FullName" name="FullName"></td>
</tr>
</code>
Thank you angstream, after ammend my line as below, there's no more error (for the time being).
MembersBean member = new MembersBean();
member.setFullName(strName);
I am trying to add POJO onto my existing doPost servlet cos I think this is the acceptable standard and want to try things out.
So, what I did was to emulate after a POJO sample I found on the...
Hi Jps,
Yap. I have put the println not immediately after that line but somewhere at the part where I generate a message "Successful registration".
At the Tomcat HTTP server monitor, I see...
Sorry to have confused you but I just tested and tested.
My latest test shows the same Null PointerException. =((
Please advise how to stop the exception. Thank you.
At line58, my line is:
String strName = request.getParameter("Fullname").trim();
And I've put a printlns :
out.println(strName);
at the DoPost servlet there but it is not giving me...
Dear forum members,
I try to use back my old doPost codes which used to work fine but now giving me NullPointerException.
Hope someone can tell me what's going on.
Hi Syed,
Thank you so much for your reply.
Am now reverting to my old code without the JNDI stuff anymore. And now facing another problem which I believe I have to post on a separate thread....
I'm trying to test out certain coding and I'm receiving the following error.
Database - MsAccess.
I've double check on the ODBC DataSource Administrator that I've set things correctly but yet...
I've tried out the connection pooling. Unfortunately, I'm getting an error which impede my progress. :(
Am using local host and Ms Access to test out.
Here's my xml in Context.xml:
<web-app...
Dear forum users,
I'd tested out the connection pooling only to realise that it is meant for retrieving data. After putting the connection pooling coding, creating the xml file under META-INI, I...
Hi,
Recently, I discovered that it's a good practice to use Connection Pooling.
However, I'm new to this and the tutorial I have showed a JNDI to connect to database which is alien topic to me....
Hi,
I'm about to start my paypal project again after been lapsed for so many countless month. And I'm still very confused and helpless in integrating with Paypal............
Hence, I hope to...
OK. I heed your advice and added the StringBuilder but I still get the txt in 2 goes; not appearing once in the JOption. :(
try{
FileReader fileReader = new...