Hi,
I have this form whereby I allow users to checked the number of subjects he is interested.
But, I am stuck when I want to parse the parameters into the database.
Hope someone can advise me how.
<td><h3><b>Subj ects Interested :</b></h3></td>
<tr> <th>Lower Primary</th>
<td><input...
User Profile
Collapse
-
Hi Chaarman,
Thanks so much for your guidance above, I have changed my codes except I don't know about how to go about doing the encryption stuff. However, the funny thing is that I don't know why when the url, say display.jsp is pasted again, without proper login. It can be accessed. Could you kindly advise on this?
my code is as follows:-
Code:public class Servlet2a extends HttpServlet {
-
I just knew yesterday that I still have a bit of my code not working. That is, if people enter a wrong userid or password, the servlet returns a blank.
Could you help me out on this? Here's my code:-
Code:public class Servlet1 extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
Leave a comment:
-
How to include Java Utilities Bean inside my applications?
Hi, I'm trying my very best to include Java Utilites bean inside my application but it is just not working. Hope the expert here can give me some advice.
Thanks.
My code for the package is name adroit.
Code:package adroit; import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet;
-
Hi Chaarman,
Thanks for replying. Yes, my codes are not really correct. Anyway, I managed to find out the solution, after working on it for 3 days!!!
The hibernate thing is like a very distance subject to me. Would you be able to provide me with a link to learn basic stuff first?
Thank you again for your help.Leave a comment:
-
Hi Charmann,
I hope you don't mind I side track abit but this is related to the above question also.
Now, I tried to create session into my login page.
My table now will have userid, password and access.
Hence, I'll redirect the user according to the access which is admin or user1.
However, I'm a bit fuzzy about the session concepts. Could you take a look at my codes and...Leave a comment:
-
jsp - session - how to incorporate session?
Hi,
I would like to know how to make use of session to apply in my jsp pages.
My login.html page contains the session codes as follows:-
Code:<%@page import="java.util.*"%> <String str = request.getParameter("UserID")); session.setAttribute("UserID", request.getParameter("UserID"));%> Welcome to <session.setAttribute("UserID").equals("")){%>
-
Hi Chaarmann,
First, my apologies for addressing your name wrongly earlier.
Sorry, I'm still very confusing.
My question was how to do the assigning portion, assuming that the admin has the permission to do so.
Now, I already have a table/database which consist of :-
Name, email, ID, contact, Membeship Type
The membership types will have user1 and user2.
How...Leave a comment:
-
Hi Charmaine,
Could you please advise how create a permission table. I'm new in java and jsp so not sure how to create one. Is there any link you can point me to that can show me examples what you mentioned?Leave a comment:
-
How do I assign one user to another user?
I have created a form where there's an option or 2 user types.
All the data collected will be posted to my msaccess table.
I have user java servlet to link the html to msaccess table so that user can view the table.
Now I need to complete another task which is I can allow 1st user to assign 2nd user to any existing 1st users available on my database.
I hope someone can advise me how to go... -
tangara replied to assigning one user to another - java servlet, html and javascript and ajax - How to?in JavascriptSeems like there's no one that can answer this question or know how.Leave a comment:
-
I have found the solution already.
Just use :-
Code:for(intIndex=aryElements.length-1; intIndex>=0; intIndex--){ alert(aryElements[intIndex].value) }
Leave a comment:
-
tangara replied to assigning one user to another - java servlet, html and javascript and ajax - How to?in JavascriptHow do I assign one user to another user?
I have this form which has an option to choose between user 1 and user 2, along with other infor like name, id, address, contact etc.
Now, I need to make a log in administrator to assign user 2 to user 1 and populate it to a table for viewing.
How do I make it happen?Leave a comment:
-
Hi,
It doesn't work. I run it and nothing happens.
By right, it should give me alert message of 300, 200, 100.
:-(Leave a comment:
-
How to do reverse value alert using for statement
Hi,
Could someone advise me how to do the reverse values in this code? 300, 200, 100. Think I'm really hopeless when come to programming :-(
for (intIndex = 0; intIndex > ayrElements.len gth ;intIndex--)// this is the part that I'm stuck.
Here's the code:
Code:<html> <head> <style> #divMessage { width : 500px; height : 30px; border : 1px
-
Java Servlet - Why I cant use DoPost?
Hi,
I have tried using Override void doPost (HTTPServletReq uest request, HttpServletResp onse response) to get data from a html form which states form action = post.
However, I can get the data posted to a ms access database and then use doGet and use response.sendRe direct to another html page.
This works fine except that if the data is a duplicate one, the it won't redirect ti to another html page and... -
tangara replied to assigning one user to another - java servlet, html and javascript and ajax - How to?in JavascriptSorry just to check my understanding.
I have to create another page - a jsp page? to get the data from the same html form. This jsp page would have a control list - user type1 and user type 2 inside is that right?
After that when the servlet display that jsp page, it would enable the staff the do the assigning by pulling down the drop down list at user type 2 a list of all the names of usertype 1 and select the user...Leave a comment:
-
tangara replied to assigning one user to another - java servlet, html and javascript and ajax - How to?in JavascriptHi,
Sorry I'm really new into this. Do you mind share with me any example codes that I can follow and I follow them accordingly?
Thank you.Leave a comment:
-
tangara replied to assigning one user to another - java servlet, html and javascript and ajax - How to?in JavascriptYes. That is the 1st task.
But, I'm not sure how to go about implement this list-control records things. Would be be able to advise?
What kind of codes I must modify in my html form - the one where I collect the data from user1 and user 2 as per my html form above?
ILeave a comment:
No activity results to display
Show More
Leave a comment: