File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question 1030885226407 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question 1030885226407 " Watch "Question 1030885226407 " New topic

Question 1030885226407

Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
public class JBean
private String title = "JBean";
private int num;
public void setTitle(String t){ this.title = t; }
public String getTitle(){ return this.title; }
public void setNum(int n){ this.num = n; }
public int getNum(){ return this.num; }
What will be printed when the following JSP page is requested through the url: http://localhost/test.jsp?num=4?
<jsp:useBean id = "bean" class="JBean" />
<jsp:setProperty name="bean" property="*">
Title : <%=bean.getTitle()%> <br>
Num : <jsp:getProperty name="bean" property="num" />
Answer provided says :
Title : JBean (which is correct) and Num : 3 ???
I don't understand the second part
Mark Howard
Ranch Hand

Joined: Feb 14, 2001
Posts: 285
Hi Bhushan (me again)
I just replied to your latest message (see here) on the errata in JWebPlus. Looking at this one, I'm guessing you are running Enthuware's latest version of JWebPlus(7). There aren't many errors and it is worth responding to the author. I had some problems implementing JWebPlus7 on Win98SE, and they were very helpful (and quick) at helping me sort it out.
Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
Thanks again .
I agree. Here's the link:
subject: Question 1030885226407
It's not a secret anymore!