Tej Ernesto

Greenhorn
+ Follow
since Jun 17, 2012
Tej likes ...
Java
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tej Ernesto

Got it we need to set this in the portlet.xml and it worked fine.

6 years ago
Hi I have the below action method where if the input parameter value is <=10 i am setting an attribute value




I want to display success.jsp basing on the actionStatus attribute value. but when i refer this attribute value in my doView method it is always returning null.




I could not figure out why.. could any one help please.
6 years ago
Yes i can do that..

My question is i set the attribute in request scope and im trying to find that attribute in session scope in jsp using jsp:usebean.

and it could able to find it i would like to know how it was able find an request scoped attribute in the session scope..
6 years ago
JSP
Bear

As you can see i put personvo attribute in request scope in PersonServlet



and accessin in JSP using jsp standard action tag with session scope..



how is it possible even in the translated jsp to servlet it is finding the attribute in session scope and it was able to get it how is it possible



My question is how an attribute set in the request scope was found when searched using the session scope??
6 years ago
JSP
Hi
I have a jsp which is displaying a bean property called name and the bean is PersonVO

=========
PersonVO
=========


I am displaying this with the following code


by hitting the servlet PersonServlet



but what i dont understand is i set the personvo object in request scope in servlet and iam trying to find the personvo object in session scope using jsp standard action but it was able to find it

the code in person_jsp.java is


Even in above code it is trying to get the attribute personvo from session scope but i set the personvo object in request scope in my servlet

Can some on explain me why?
6 years ago
JSP
Thank you very much Tsang.

That was really helpfull

Tej Ernesto wrote:Hi I am preparing for OCPJWCD JEE6 1z0 899 Can anyone suggest me a book for Servlets 3.0 and JSP 2.2 currently i am studying HFSJ it is targeted for JEE5 servlets 2.4 and JSP 2.0

Hi I am preparing for OCPJWCD JEE6 1z0 899 Can anyone suggest me a book for Servlets 3.0 and JSP 2.2 currently i am studying HFSJ it is targeted for JEE5 servlets 2.4 and JSP 2.0
Thank you very much Darryl Burke that was really helpful..
I can use this command to run it from the command prompt. What if i want to use it in my web application where i will scan all the java files in a directory and compile them and capture all warnings to a file.
6 years ago
Hi Jesper de Jong

when i compiled my file using the command



it produced warnings



but the warning is not captured in the txt file, where as when i run the file useing


then what was printed on the console was written to txt file.

So i need the warnings to be written to txt file
6 years ago
Thank you, the file is created but no text in it, which was printed on the console
6 years ago
Hi i need to identify deprecated api in java files in a given directory which are belong to java1.3 or 1.4 apis and my target jdk version 1.7 and need to write the message printed on the console to a file.

i know i can use -Xlint option but it will print on the console. How to get the message from console to a string so that i can write it to a file

Could anyone please help me to get the work started.
6 years ago
Hi All I am planning for 1z0 -899 OCPJWCD 6 so is it enough if i read Head Fist Servlets an JSPs??
6 years ago
i have came across this question recently... some said it is GOTO is it correct
7 years ago