aspose file tools*
The moose likes Spring and the fly likes problem using greybox 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 » Frameworks » Spring
Bookmark "problem using greybox" Watch "problem using greybox" New topic
Author

problem using greybox

Prasath Premkumar
Ranch Hand

Joined: Nov 13, 2008
Posts: 43
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.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 13, 2008
Posts: 43

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
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 13, 2008
Posts: 43

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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem using greybox
 
Similar Threads
what is the URL ?
Problem with Ajax autocomplete Tag
link css style sheet
Prototype Ajax.Request error - Function Expected Options
Problem with Ajax autocomplete Tag