Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Yiqiu Li
11,619 Points${gif.name} not working
Hi, I am having trouble displaying the gif page after applying the PathVariable annotation. the error message I am getting:
There was an unexpected error(type = Internal Server Error, status=500). Exception evaluating SpringEL expression:"gif.name" (gif-details:13)
I've actually moved on to the next video and tried the th:text="${gif.username}" for the dynamic username field, and it doesn't work as well. Although I managed to make it work by th:text="${gif.getUserName()}".
I have followed every step of the course so my code is identical to whats in the video. I believe this is something to do with the HTML file syntax? Can someone help please, thank you.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsAlexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsI Believe that you do everything like he says, but I still need to see your code and reproduce error.
Could you share project on GitHub and paste link here, so that I can download and see your files.
it is done very easily if you have GitHub account in Intellijidea:
https://www.jetbrains.com/help/idea/2016.2/share-project-on-github-dialog.html
Just by looking at what you say.
{gif.username}will NOT work if name of your getter isgetUserName(), because if your field isusername, the getter MUST begetUsername. Check the difference.About the
gif.nameI need to take a look.Here are also links how to connect GitHub account to Inteliijdea just in case:
https://www.jetbrains.com/help/idea/2016.2/using-github-integration.html
https://www.jetbrains.com/help/idea/2016.2/registering-github-account-in-intellij-idea.html