Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7984095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:09:32+00:00 2026-06-04T11:09:32+00:00

I have written a controller to redirect to the specified page. While redirecting to

  • 0

I have written a controller to redirect to the specified page. While redirecting to the page it is showing the given URL in the browser and then only it is redirecting. How to prevent it to not to show the URL. Any one kindly help me

The code is

render :update do |page|
    page.redirect_to "/jasperserver/j_spring_security_check?j_username=#{username}&j_password=#{password}"
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:09:34+00:00Added an answer on June 4, 2026 at 11:09 am

    Not sure I get it. Why are you using render :update to begin with? Why not just redirect_to the URL you want?

    Beyond that, though, I was concerned by the username & password in the querystring. Maybe this is just meant as an example…but if not, you might consider some sort of encryption.

    And also escaping any odd characters in the username or password might be a good idea.

    I wouldn’t have posted an answer, since I don’t understand the need for render :update, but the other stuff seemed worth pointing out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have done a VF page in this pages controller. I have written a
I have written one controller class, in which i am writing one request mapping
I have written VHDL code for VGA controller for spartan 3E board. The code
I have written a function for browser compatibility. When I pass objTR.cells[0] it works
I have a controller written in python cherrypy that should check if a db
I have written the following code : @Controller @RequestMapping(/test) public class Home { @RequestMapping(value
I have written my own Exception (MyException) and implemented Logging and showing Error Messages
I have written a little PDF viewer which is supposed to show PDFs page
I have written a controller action that checks for the existence of a PDF
I have 2 buttons Edit and Next . I have Action written on controller

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.