• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question 1030885226407

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
<html><body>
<jsp:useBean id = "bean" class="JBean" />
<jsp:setProperty name="bean" property="*">
Title : <%=bean.getTitle()%> <br>
Num : <jsp:getProperty name="bean" property="num" />
</body></html>
Answer provided says :
Title : JBean (which is correct) and Num : 3 ???
I don't understand the second part
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again .
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic