Forum: JSP 3 Days Ago |
| Replies: 3 Views: 174 Then after the user logs in put in the session the username and the user role (ADMIN or USER)
Then at every page get the info from the session and if someone has gone to an ADMIN page when in the... |
Forum: JSP 30 Days Ago |
| Replies: 9 Views: 670 It is like I said. You lack the very basics and you should be ready to accept criticism:
Java is executed at the server. Then the page is generated and then send to the client pure html.
... |
Forum: JSP 31 Days Ago |
| Replies: 5 Views: 343 Here is how:
1) Post to correct forum
2) Be more descriptive on your problem
3) Show some effort
If you are talking about a web application
4) Learn about request, session
5) Learn about... |
Forum: JSP 32 Days Ago |
| Replies: 1 Views: 442 Why don't you use the post method? |
Forum: JSP 34 Days Ago |
| Replies: 8 Views: 59,265 And what is the point of this post? This is a 4 year old thread which has been revived 1 year ago, with no useful information. Can someone please close this? |
Forum: JSP Oct 13th, 2009 |
| Replies: 1 Views: 506 Have you tried using another attribute than "disabled".
The input "text" has an attribute "readonly". Search what other attributes the checkbox has. |
Forum: JSP Aug 31st, 2009 |
| Replies: 1 Views: 362 The selElts you define in javascript is not the java array. They are not the same. What you have written doesn't work. You can not call javascript method to give values to java variables.
If you... |
Forum: JSP Aug 24th, 2009 |
| Replies: 2 Views: 398 You need to import the class:
<%@ page import="package.DBManager"%> |
Forum: JSP Jun 21st, 2009 |
| Replies: 4 Views: 712 I don't know if this the case, but you MUST first call:
rs.next()
to get the row from the ResultSet.
Meaning that when you do:
String Instructor = rst.getString("Instructor");
you probably get... |
Forum: JSP Apr 29th, 2009 |
| Replies: 9 Views: 1,868 First of all what type of argument does ps.setDate() have and what type are the to_date, from_date at your database?
Also if you need to convert a String to a Date try this:
String sDate =... |
Forum: JSP Nov 27th, 2008 |
| Replies: 6 Views: 9,990 Ok I have managed to solve this one too:
I was using this:
<s:iterator value="listOfObjects">
<s:property="code">
................
<s:radio name="selectedCode" list="listOfObjects" />... |