How To Hide URL in struts1.x - struts-1

I am using struts 1.3 to develop my web application.I want to show static url(for every request url same) in client side.Can any one please tell me the solution.
Thanking you.
With Regards
Suresh

Related

instant search with jquery and spring mvc

I need some help with jquery or other scripts for instant search.
I have basic knowledge of jquery. And I use Spring MVC as the back end program.
In my page I need to search for two users and the result must bee shown on the same search page.
My question are: Must I use PHP for connecting to database? Is PHP working with spring?
Any example any where using live search with jquery and spring?
Thanks
I wrote a post about integration jQuery / AJAX / Spring MVC.
You can read it # http://stories.stefanocazzola.it/2012/07/spring-and-json-requests.html
Hope this can help you out,
Stefano
You might take a look into
JavaScript dynamic language support in Spring framework
and jquery autocomplete
"Is PHP working with spring": No it does not.
As far as the code goes, I create something over the weekend.

Can I use spring liferay for mobile web development

Can I use spring liferay for mobile web development?
This is very basic question but I tried on google but I can't find any tutorial on this. Can anyone suggest anything on this.
Yes you can use it I think, since Spring is a server side java framework and for mobile web-development I don't think you need to do anything special apart from customizing the look-and-feel of the page which can be done through themes in liferay.
Starting from Liferay 6.1 you can even define Mobile Device Rules.
For a quick demo of this you can go to Liferay site, and try to change the window size of the browser and then see how the page changes. Even you can try to view this site in a mobile phone.
Hope this helps.

asp.net mvc 3.0 Global Filter for SSL pages

I’m in the process of creating a new C# asp.net mvc 3.0 project.
The web site will hold some public pages (such as: Home, about us, contact us, etc…) and hold some SSL enabled pages (such as: Login, Forgotpassword, Signup, in addition to all the pages in the application that the user will see after a successful authentication).
I’m curious to hear your thoughts (an opinion), before deciding on a particular approach.
I was thinking of using the Global Filter approach provided in MVC 3.0 in order to verify what are the pages being accessed…if the user is accessing public pages them make sure he’s in http:// if the user is accessing an SSL page then make sure it prints out the https://
Would the Global Filter approach be appropriate for what I’m trying to achieve?
Is there a good blog post for MVC 3.0 with such thing? (Currently googling).
Feel free to show me how or even propose an alternative.
Thanks
Sincerely
Vince
I believe this is what you are looking for...
http://weblogs.asp.net/jeffwids/archive/2010/08/19/how-to-switch-between-http-and-https-in-asp-net-mvc2.aspx

Rails 3. Cannot validate URLs for http prefix

I am developing an application in Rails 3 and in this application I let the users add URLs to websites. The current problem I am facing is that some of the users forget to include the http or https prefixes which results in a non working link.
Unfortunately there seems to be no way to validate this out of the box?
How can I go about to validate if the submitted URL includes http?
Thankful for all help!
There is a plugin named validates_url_format_of that seems to work for Rails 3. Otherwise you can write your own custom validator.

IIS7 MVC deploy - 404 not found on some actions

Once deployed parts of my web-application stop working. Index-es on each controller do work, and one form posting via Ajax, Login works too. Other then that yields 404. I understand that nothing particular should be done in integrated mode.
I don't know how to proceed with troubleshooting.
Some info:
App is using default app pool set to integrated mode.
WebApp is done in net framework 3.5.
I use default routing model.
OS is Windows Server 2008.
IIS 7
Any help is appreciated. Thx.
EDIT:
I determined that only actions that accept ID parameter don't work. On the contrary, when I add dummy id method in Home controller of default MVC app it works.
EDIT 2:
I found the problem. Links on few pages of the site didn't use ActionLink helper. It was harder to see because of the Ajax invoking. So, never hardcode links to the actions on the site, even temporary.
Please go through this link for details on deploying MVC application with IIS 7 integrated mode.
http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs

Resources