tuty sra

Greenhorn
+ Follow
since Aug 30, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by tuty sra

Hi Mohamed Mabrouk ,
I read your tutorial and it is really good. Is the tutorial alone is enough to get ready for the exam. Is there any other books and materials that I have to refer. Please suggest so, that I could clear the exam in the shortest possible time.
hi jay,
you can use
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("dd-MM-yyyy");
Date date=simpleDateFormat.parse("23-09-2008");
16 years ago
hi steve,
you are right i was actually talking about the default package. I suppose what you say is correct. we would have had the ability to import the classes in default package without specifying anything.
16 years ago
JSP
hi guys,
Thanks for your reply. I got it now. Is the rule is applicable only from java1.4?. How could we import a class having default access from another class in some package in prior versions?
16 years ago
JSP
Hi guys,
Thanks for your clarifications. I wanted to tell that the JSP is written and maintained by the developers in my project, I added some of my thoughts on making JPS with tags without scriplets which deviated from the topic. I wanted to stress the importance of scriplet less JSP. Since the developers are maintaining the JSP in many cases.
16 years ago
JSP
hi,
you can use
Runtime.getRuntime().exec("/usr/bin/unzip /location/zipfilename -d /dir")
16 years ago
JSP
Hi guys,
I would like to know is there a rule which states that Java Bean should always be in a package. I had some problems working with Java Bean having default package with some jsp action tags.


<jsp:useBean id="person3" class="test.Person">
<jsp:setProperty name="person3" property="name" value="${param.name}"/>
</jsp:useBean>

this works fine, but the same class with the package name omitted(in both java code and jsp) does not work

<jsp:useBean id="person3" class="Person">
<jsp:setProperty name="person3" property="name" value="${param.name}"/>
</jsp:useBean>


I have tried both the option with class files inside WEB-INF/classes/Person.class -> when there is no package and
WEB-INF/classes/test/Person.class -> when the class is put inside a package

Need your inputs
16 years ago
JSP
I read an article "The Secret Life of JavaServer Pages" by bear. I is very useful and it gave me a lot of clarifications.

@Bear
I have one suggestion
I found the following code in the article which explains how a tag is converted into a servlet code.


out = pageContext.getOut();
_jspx_out = out;

out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>A simple JSP page</title>\r\n");
out.write(" </head>\r\n");
out.write("\r\n");
out.write(" <body>\r\n");
out.write(" Testing \r\n");
out.write(" ");
if (_jspx_meth_c_forEach_0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" !\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
out.write("\r\n");

Here it would have been very useful if the code for "_jspx_meth_c_forEach_0" method was also given.
16 years ago
JSP
It is always good to have the JSP without scriplets. It helps the people maintaining the JSP code apart from the web designers. There are some JSP page s I have seen containing all processing logic and lot of scriplet in it, extending more than 3500+ lines of code. What I meant to say is keeping the JSP with only tags helps everyone ;-)
16 years ago
JSP
I have downloaded the JSP spec. Any Hints on where to find it in the JSP spec?
16 years ago
JSP
hi guys,
Is there anyone who could help me out?
16 years ago
JSP
I would like to know how a JSP page is parsed and converted into a servlet. I am interested in knowing the Order of parsing the various JSP elements like EL,TagLibs,Scriplets.Do any of the guys here know about it?
16 years ago
JSP
hi,
I could get some information from your replies and the links you gave but, still I need some clarifications
1. What is the total amount of ports available on a system
2. Can there be more ports on a system with a load balancer and many machines
3. Does the browser opens a port for each page opened
16 years ago
hey I made the required changes. thanks for your suggestion.
16 years ago
the explanation is really good
16 years ago