Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!

Anas Nashroel

+ Follow
since May 21, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anas Nashroel

I hope that I post in the right forum.
I took SCJP 1.4 examination in 2006 and I lost the certificate a couple of months ago. I need this certificate to apply for a job.

I tried to contact oracle university in my country a couple of days ago and I haven't gotten any reply yet from them.

Do any of you have similar experience ?
Any help would be greatly appreciated.
I don't know if I post on the right forum. I've heard about server side java scripting called rhino ....
I try to assign a button in a html/jsp page that will execute rhino java script (because I want to access java code)
How can I do this ?? Is it the usual way of handling onClick button event to our js code embedded in the html/jsp page ?
Thanks in advance
Hi, I installed jdk 1.4 and 1.5 on windows. I set JAVA_HOME to refer to jdk 1.5 installation folder. When I type java -version, it refers to jdk 1.5 installation.
and then, I downloaded and installed jdk 1.6. When the installation was finished, I type java -version in command prompt, and it refers to jdk 1.6 version. But strangetly, I looked at path environment variables, and I couldn't find path that leads to jdk 1.6 installation folder. The path is to jdk 1.5 installation folder.
So, how can i set the java version to use in windows ??
Thanks in advance
9 years ago

I develop simple web application. I have a problem with the login/logout page.

Here's my logout.jsp page:

This logout page includes navigation file (navigation.jsp) that contains menus that a user can acess. Here's the navigation.jsp file:

The problem is, I wanted to show the login link once a user has logged out. I used this logic in my navigation.jsp file:

I invalidate session in my logout.jsp file, so the session should be null. This meets the condition required in the "if logic" above (session == null), so the login link should be displayed. But somehow, it is not displayed..

Any help would be appreciated..

Dev. Environment
Windows XP sp2
Tomcat 5.5
JRE 1.5.0_15
9 years ago

Can you connect to the DB using the exact same code from a desktop application?

I haven't tried this...

have you enabled TCP/IP support on your server instance

I have read the manuals about How to manually enable TCP/IP on Windows XP sp 2 for SQL Server 2000
I added an open TCP port 1433 and name it SQL Server. I also added an open UDP port 1434 and name it SQL Server UDP.. However, the problem remains..
When I open command prompt and type netstat -an, both ports are not on the listening list. I also open the browser and go to the throws the same error..

Have you configured your server to allow SQL Server authentication?

How can i do this ??
I have a problem with using SQL Server 2000 with my application.
Here's the data access code:

and here's the error messages:

I have dropped jdbc driver (msbase.jar, mssqlserver.jar, msutil.jar) to the webapp lib folder
Are there any issues regarding connection to SQLServer 2000 through java application ??

Thanks in advance,

My spec:
Windows XP Professional
Tomcat 5.5
JRE 1.5.0_15
Thanks Prasad for a quick response...
I did manage to pass the request to the controller, and this controller passes the job to another method to do some processing (querying the database to select all students).
I then tried to forward the request object which contains studentColl attribute. This attribute contains the collection of student objects queried from the database.

I found no error until I tried to access this attribute from jsp page, student-list.jsp.
It throws these error:

here's the student-list.jsp code:

It seems that, when I tried to access the studentColl, it throws NullPointerException

Is the way I pass object/bean from controller to the jsp correct ??
If it isn't , how can I pass the beans from controller to a jsp page ??

9 years ago
I develop a dummy mvc2 web application for school administration. I created a jsp welcome page (index.jsp)that contains a link to list all student.
From this link, we will be directed to the controller servlet, namely SisdikController.
How can i create this link so the controller servlet gets called ??

Here's my controller servlet:

and here's my web.xml:

In the controller, the request will be routed according to the request parameter given. In this case, i want the request param value to be 1 (VIEW_ALL_STUDENTS). How can I pass this value in my anchor tag ??

Is this form of anchor tag a correct one ??

My development machine:
Windows xp
Tomcat 5.5
JRE 1.5
Thanks in advance..
9 years ago