geeta lalchandani

Ranch Hand
+ Follow
since Jun 07, 2005
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 geeta lalchandani

i have a situation where i have a for loop, and then another for loop in the enclosing one. On every iteration of the for loop(inner), i need to evaluate the body.. (i set some parametrs in the pageecontext) amd they are displayed.

Now, the state of both the loops is to be maintained, i cannot use the SimpleTag, will have to use the ClassicTags only.

I extend BodyTagSupport, but then the counter of the inner for loop gets reset, on doAfterBody, any ideas of how can i implement it??
14 years ago
JSP
so far i was in the impression that the portletApi:encodenamespace encodes the parameter, based on the portletid. but this scenario proves that its not only based on the portletid.. but also follows some other logic...

i have a portlet that conditional includes either a.jsp or b.jsp. I have a variable var on both the jsp. the variable is encoded... but then the encoding is different on both of them..

also.. wondering.. how are the variables in the themes encoded??
14 years ago
I use websphere portal, and use the urlgeneration tag... to link to a page with the given custom unique name...

now i have two links with the same custom name, placed on different jsps... the urls generated by them are different.. though on click they return to the correct page....

was wondering.. is this url generation based on the some random generation or portlet ids or something else ...
14 years ago
I used castor 0.9.5 to generate the code from the xsd, and that worked fine. I had to upgrade the castor jar to 0.9.9.1 and the marshalling unmarshalling works fine, bt the source generated now doesnt work. When I run the SourceGeneration there is a nullpointer exception because of the LocationPackage Mapping.... in the BuilderConfiguration.

I am unable to figure out if theres something with the configuration..
Thank you all.

Manisekharan Chella, did you have to give them any docs, coz i think that one in canada says there has to be the address proof that has to be submitted.
I have a voucher that i have bought in India. Wanted to know if i can take the exam in Canada?

Can some one please help.
I agree to both of you Jeanne and Arun.

I was actually going through some dummy questions and this was one of them. So i posted this. The note that was there was the fully qualified names was wrong. but i have seen it work.
14 years ago
the book specified that the second option wud work..
tested that .. it doesnt.

Bear, why do you want me to look at the servlet code? The query was for the useBean.. anything specific you wanted to point to
14 years ago
JSP
EL
Stefan,

this was a question in one of the dumps, so i just cant remove the ''.

Bear, I tried it, there is a runtime exception when there are ''.Works ok when the '' are removed.
14 years ago
JSP
Which of the following XML codes correctly specify a URL to servlet mapping in the deployment descriptor of a web application?

1.
<servlet-mapping>
<servlet-name>catalog</servlet-name>
<url-pattern>/catalog/*</url-pattern>
</servlet-mapping>


2.
<servlet-mapping>
<servlet-name>com.abcinc.CatalogServlet.class</servlet-name>
<url-pattern>/catalog/*</url-pattern>
</servlet-mapping>
14 years ago
Thanks william.
Yes there exists something that is the default servlet context.As per the specs..

Servlets in a container that were not deployed as part of aWeb application are
implicitly part of a �default� Web application and have a default ServletContext.
In a distributed container, the default ServletContext is non-distributable and
must only exist in one JVM.
14 years ago
Thanks a ton Chetan
14 years ago
JSP
EL
will this EL work

<%
List l= new ArrayList();
l.add("a");
request.setAttribute("list",l);
request.setAttribute("listIdx","1");
%>

${list['listIdx']}.
as per me.. the value in the [] must resolve to the index, but as it is quoted. it wont work.
14 years ago
JSP
refering to Head Frst JSP Servlets ,,page 416.




What happens when these parts of servlet code Exceute? (person is abstract and eMployee is concrete).

1
Person p = new Employee();
p.setName("evan");
request.setAttribute("person", p);

2
Employee p = new Employee();
p.setName("evan");
request.setAttribute("person", p);

Should the results of both not be the same?
14 years ago
JSP

If everybody promise that they will provide a constructor with a parameter �ServletConfig� while creating a servlet then they might remove this method (not sure though).



How can you get the 'ServletConfig� in the construstor.It is possible only after the servlet is instantiated.

You can use the construstor though.. if you do not want to access and the 'ServletConfig� and may be define and initialise just the instance variables.
14 years ago