neilp pre

Greenhorn
+ Follow
since Mar 21, 2016
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neilp pre

I am modifying a system, where I need to add error log on registration failures when existing e-mail found, existing National Identity card(NIC) found and in captcha failures. To insert error log records, going to use the table z_error_log. I think this need to be done in the “else” part of the Vendor_cont.php file. Currently this provides an error messgae if an existing e-mail is used. I need to send that error log to the db. This is the code and I really appreciate your help as I am getting stuck on this point.
I want to add the error log to the z_error_log table when an existing e-mail or NIC found. I have no idea of how to do that or where to insert taht code. Please help me. Thanks in advance.

=====Vendor_cont.php file=======


========Log_model.php============

1 week ago
In java i have used string concatenation. And also when I deploy and run my project it does not display the comment,
3 years ago
I have fix the code as follows

3 years ago
What I have done is this , but it doesn't work

3 years ago
I have used ServletContext in my program as I uesd in previous test22.java , but it doesn't work.
3 years ago
Ok,
Sorry, i've done a mistake before, i fix it

This is how my Form.jsp looks now


this is how Servlet1.java looks

I entered comment, It displays comment. It works up to now:)
3 years ago
This is how my Form.jsp looks now


this is how Servlet1.java looks


But it says my says this, session.setAttribute("comment",commentText); parameters are wrong, I can't fix it
3 years ago
It displays the text field and text area, when I enter a comment and click on submit button it displays a blank page. BTW i use glassfish server. the blank page's url is
localhost:8080/TesrRanch/Servlet1?username=neil&comment=Hello++++
3 years ago
I create a servlet call Servlet1. And also change the form action to Servlet1

Servlet1.java

3 years ago
Yes sure, I use net beans 7.3.1, jdk 7
3 years ago
I'm trying to do this from the begining.So I code an html file to enter username and textarea. User name field is used just for enter a name. Not allow to use javascript to this .


I'm notmention a form action yet
3 years ago
Yep:( because I'm really new to this subject. I have tried a lot to solve this from what I know up to now, But it does not work
3 years ago
Yes sure, Actually this was my exam question, But I couldn't complete it as they expect, So it gave as my assignment. So in order to gain marks I have to complete this.
The question is creating a simple web application to display comments
Requirements are as follows.
1)The web page should divide into 2 parts as top and bottom. At the bottom part there is a text field for enter user name. Then there should be a text area where user can enter his/her comment .After click on the submit button that entered comment should display at the top of the same page. Then if again user enter comment it shold display at the top of the same page with previous comment.
3 years ago
If you help me to solve this problem i really appreciate it. By the way I'm new to servlet, jsp. So wht should I do now
3 years ago