Author | Message |
---|---|
Fatemah
Posts: 59
|
Posted 02:39 Apr 18, 2012 |
Dear professor, When I click on an item, it directs me to a page says " Redirecting to null". Please see the attached file. Why is that? Last edited by Fatemah at
02:40 Apr 18, 2012.
|
cysun
Posts: 2935
|
Posted 07:52 Apr 18, 2012 |
Well, if you look at the address bar, it's clearly an invalid url. I'm guessing you are using a servlet (i.e. DisplayUrl) to redirect the user to the item url - you don't need to do that. Just use <a href="...">, e.g. <a href="${item.url}">${Item.name}</a>. |
Fatemah
Posts: 59
|
Posted 15:08 Apr 18, 2012 |
Thank you professor. |
cysun
Posts: 2935
|
Posted 16:28 Apr 18, 2012 |
BTW you got a null because there are spaces in the URL so you didn't get the parameter value. |
Fatemah
Posts: 59
|
Posted 16:44 Apr 18, 2012 |
Yes, that's right. I used this servlet just to see what's wrong with the redirection process. Now it works fine without the DisplayUrl servlet of course. |