Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request time attributes

 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Any ideas on why the line 1 is not OK. But line 3 is OK .
They look similar to me .
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a few typos. Your include tags and setProperty tag are not closed. Also, there's a double quotation missing after NewYork.
 
Charmy Madhvani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How

The syntax is ok, but accessing the page will cause an error. I don't know what Akhil means by "ok"
 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris
Thanks for finding the typos .It was my mistake .
I was going through Manning's SCWCDExam guide by Hanumanth Deshmukh . One of the topics about XML documents and request time attributes discussed this . I think when they say it is OK , it means it is syntactically correct and JSP will get translated to servelt code .

I am still trying to find the answer ...
 
Kaarthick Ramamoorthy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akhil Maharaj,

I tried your two <jsp:include> tags:

1)
2)

The first one works fine without any error.
The second one doesn't work. It is clear that the syntax is wrong.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!