Jingh Yi

Ranch Hand
+ Follow
since Mar 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jingh Yi

I found out how. Just use <param> tag
12 years ago
Hi,

How do I pass the parameter along the redirect view-id? I would like to be able to do this:

<redirect view-id="/secure/AttachFiles.xhtml?studentId=#{studentHome.studentId}">

However it throws an error. I don't know what attribute I should set for redirect tag for this.

Thanks,
Jenny
12 years ago
Can doStartTag() return SKIP_BODY when body-content is defined as tagdependent?

Thanks,
Jenny
bengt and Mat,

Thanks for reply.

Mat, I think I got your point. for example, if there is an attribute like 'person-name', then we have to use xxx["person-name"] instead of using the dot operator or the attribute name itself.
I know I can set <scripting-invalid> to be true for this purpose, like this:

<jsp-config>
<jsp-property-group>
<url-pattern> *.jsp </url-pattern>
<scripting-invalid>
true
</scripting-invalid>
</jsp-property-group>
</jsp-config>

is there a way to set it in jsp directives? like isElIgnored for EL?
Did you ever notice that there is no EL implicit object equivalent to 'config' implicit object in jsp? so how does EL get the JSP init parameters??
For example, I have following set up in web.xml:

<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errorPage.jsp</location>
</error-page

<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/arithmeticErrorPage.jsp</location>
</error-page>

My question is, when ArithmeticException happens, which error page does it go to?

Thanks.
Jenny
bengt,

It's a valid point. Thanks.

Mat,

Not sure what you are talking about. Sorry.
The following EL implicit object:
- pageScope
- requestScope
- sessionScope
- applicationScope

why do we need them? they can only be used to retrieve the attributes inside that scope, right? But we can directly access the attributes in those scopes by referencing the attribute names set in those scopes???

Thanks,
Jenny
Name the method defined in the HttpServletResponse class that may be used to set the content type. Do not include parenthesis after the method.

The answer is setContentType.

But I think setHeader is also right. We can have HttpServletResponse.setHeader("Content-Type", "text/html"). Right?

Thanks!
Jenny
Dear ranchers,

Do you find jdiscuss web site acting wacky lately? I've been taking Enthuware mock exams from jdiscuss.com and I found many times, the answer page doesn't match with the questions. Do you find it also?

Thanks,
Jenny
Thank you, Aruneesh, for your kind reply!
Hi,

I'm going to take SCWCD exam. I want to confirm CX-310-081 is the one instead of CX-310-082.

Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition 1.4 (CX-310-081)

Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition 1.4 Upgrade Exam (CX-310-082)

Thanks!
Jenny
try adding this line on top of your jsp:

<%@ page isELIgnored ="false" %>