Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

problem using greybox

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm working with Spring MVC and greybox (popup window) to popup a login form.
But still i couldn't get this working.

In my home.jsp i have defined the following as stated in the greybox tutorial.



and in the same jsp i have the login link like this:



when i start this application and click on login link the login.jsp is shown as a new page, not as a greybox popup. I guess greybox doesnt get called to show the requested page. Am i doing sumthg wrong here? Can anyone please help me to get this working???

Thanks in advance.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the name of the directory really "resouces"? Is this a Spring issue, or a greybox issue? Do you get any console errors in Firebug?
 
Prasath Premkumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi David,

Thanks for your reply. Yeah, the directory name is correct there and no errors from firebug too. It seems to me like Spring handles the request and shows that page via ViewResolver, so greybox doesnt get called..... this is what i guess... How can i handle this problem???

Looking forward for your answer.....

Thanks.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using an absolute path?

(I really would recommend spelling "resources" correctly instead of allowing the spelling error to remain in your app's structure.)
 
Prasath Premkumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi David,

I tried the absolute path too, but it didn't work. The required page is shown correctly but not via greybox. Thats the problem. Spring handles the request correctly but don't pass through greybox, it shows that page directly i guess. Any ideas to overcome this issue???

I changed the spelling mistake in the directory name as "resources". Thanks a lot.

 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic