This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes doubt in el function example ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "doubt in el function example ?" Watch "doubt in el function example ?" New topic
Author

doubt in el function example ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

was trying the dice roll example given in hfsj book page no. 393-394 and was getting error in my tld file which says "invalid content was found starting with element uri. one of {http://java.sun.com/xml/ns/j2ee":short name} is expected.

i did a search on the same example here at coderanch and found out a similar post where Bear sir told to put <short-name>whatever<short-name>. and it worked.

my question is that why it didn't worked without short-name. in the book there is not short-name tag.


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

It can depend upon the version of JSP you are using. The XML Schema for the the TLD has changed over time.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

Thanks alot Sir
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in el function example ?
 
Similar Threads
What determines Websphere Name Server
Any book with example based review for SCJP?
resource not found
Are code examples useful?
EL functions in Eclipse, Can not find a tag library descriptor for ..., help needed