Pooja Shankar

Greenhorn
+ Follow
since Mar 29, 2005
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pooja Shankar

thanx a lot Narendra Dhande....
the problem was that i was using jboss and had forgotten to include the tld file, while buildingwith ant...anyway...thanx.
Pooja
sorry i've corrected in the pgm... i typed it wrong here....I don't understand why it does not work...

[ May 19, 2005: Message edited by: Pooja Shankar ]
[ May 20, 2005: Message edited by: Pooja Shankar ]
Could anybody tell me where I went wrong....

myTag.tld
---------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
<tlib-version>1.0</tlib-version>
<short-name>mytag</short-name>
<uri>dbs</uri>
<tag>
<name>dataBase</name>
<tag-class>com.customtag.log.MyTag</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>update</name>
<required>true</required>
<rtexpression>true</rtexpression>
</attribute>
</tag>
</taglib>




myJsp.jsp
---------
<%@ taglib uri="dbs" prefix="db"%>
<db:update><%=(String)session.getAttribute("user")%></db:update>



MyTag.java
----------
package com.customtag.log;
import java.io.IOException;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
class MyTag extends SimpleTagSupport
{
public void doTag() throws IOException,JspException {
System.out.println("tag invoked....");
}
}


output
------
Exception rg.apache.jasper.JasperException: File "/jsp/dbs" not found
[ May 19, 2005: Message edited by: Pooja Shankar ]
the static method is not actually overridden, as you expect it to be.remove the static modifier and you'll see the result after overridding takes place.
the static method is not actually overridden, as you expect it to be.remove the static modifier and you'll see the result after overridding takes place.
Is it that the people who pass test never visit the site???
Pooja
Hi All,
I've just started to prepare for scwcd.I've bought HFJ&S. I would be very thankful if people who have finished exams, share experience about preperation,notes etc.It will help me plan for my exam which I must take in the last week of coming month,I'm quite new to some portions of jsp,things like custom tags etc. Is it possible for me to take the test by next month?.Thanx in Advance.
Pooja
[ April 21, 2005: Message edited by: Pooja Shankar ]
Hi friends,
could you plz give me the url to visit for sun's free exam.Thanx in advance.
Pooja.
Dear Shah,
Thanks, you are right.It works in 5.
Pooja
jononku,
I would very well agree with you.I feel the same you felt while reading the book. Atleast somebody did say it.
Pooja.
Hi Friends,
Expression Language is not working for me.I use tomcat 3. Could somebody tell me a possible solution.
Pooja
[ April 15, 2005: Message edited by: Pooja Sharma ]
Dear Sanjay,
No its not necessary to remember all method signatures.you just read all the methods and you must be able to recognize that such and such methods with signature exists.
Pooja
Mishra Anshu ,
Thanx I got the answer.
Pooja
[ April 03, 2005: Message edited by: Pooja Sharma ]
<servlet>
<servlet-name>servlet1</servlet-name>
<servlet-class>com.whatever.myServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>servlet1</servlet-name>
<url-pattern>/my/test/firstPage</url-pattern>
</servlet-mapping>

Here we are mapping a url-pattern to the class in the <servlet-name> element, ie. on typing http://....../my/test/firstPage we get the myServletClass invoked. but to account for the following.(/my/test/*)
<servlet-mapping>
<servlet-name>servlet1</servlet-name>
<url-pattern>/my/test/*</url-pattern>
</servlet-mapping>
Thanx in Advance.
[ April 02, 2005: Message edited by: Pooja Sharma ]
false for me to... in both cases