This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Javaranch tip: A lot of people (myself included) won't bother sifting through more than 3 or 4 lines of unformatted code. You took the time to add UBB code tags, which is great but it looks like you also removed all the indenting. Preserving the indenting is main reason for using UBB code tags in the first place.
You can always fix the text in your first post by clicking on the .
The message is telling you that the object represented by the scoped variable "person" is actually a String object, not a Person object. If you'll look closely at ToyServlet, you will see that you actually did place a String in the request scoped variable "person", that string being "p". I suspect what you meant to do was use the Person object represented by the variable p instead.
I am afraid the problem is not what you told me brother. you need to look closer the problem because I took the problem from hfsj book (chapter 8,page 374).It's exactly the same as in the book. p is object which I created on ToyServlet ,Person is actually string. so please solve this ASAP.This EL has bugged me up.
by the way don't you think it could be scope problem.I did not set the scope yet.Because as far as I know default is page ,should I need request scope. :p
please verify that too.
best regards, omi [ March 20, 2008: Message edited by: omi sharma ]
I can assure you that java.lang.String does not have a name property. Look more closely at your book. If, indeed, it is setting a string literal as the attribute, then you should also check that book's errata site to see if it was a misprint.
Joined: Feb 15, 2005
Originally posted by omi sharma: you need to look closer the problem...so please solve this ASAP
Actually, I don't need to do anything, as I'm just here in the forum to help with questions and for my own fun and enjoyment. Isn't this fun? [ March 20, 2008: Message edited by: Merrill Higginson ]
I am sorry friends,I had no intention to hurt your feelings. you are absolutely right,you need not do anything for me. I should have said,'I beg you to solve my problem.' Sorry for my air of manager. LOL
Actually at that time ,I was not in the situation to think as I am taking too much tension these days.
'you need to ' is dangerous while you are asking for help. This is the second time when someone hit me for using that word. LOL
And as to the problem ,you are absolutely right.I did not notice correctly.