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 766697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:05:25+00:00 2026-05-14T17:05:25+00:00

i have created one hyperlink, and by clicking on that i am redirecting the

  • 0

i have created one hyperlink, and by clicking on that i am redirecting the page to another JSP, but i am not getting the correct URL that i am passing, URL is appended with another string and the page is not redirected,

please anybody have any idea about that, help me out

  <td align='<%=lstrColAlign%>' class="<%=tdclass%> Label2"  
   style="<%=rb.getDataStyleString(rvo,data)%>">
   <a  href="#" onclick="JavaScript:window.open( '<%=columnUrl%>','newwindow','top=0, left=0,   
             scrollbars=yes,status=1,resizable=yes,height= (screen.availHeight - 10),
             width= (screen.availWidth-5)')"> <%=rb.getDataValue(data)%></a>
   </font></td>

where i should get

...Project1-context-root/servlet/Reports.controller.ReportController?ActionFlag=get.............

but instead of that i am getting

...Project1-context-root/servlet/servlet/Reports.controller.ReportController?ActionFlag=get.....

so, extra word servlet/ is appended

  • 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-05-14T17:05:26+00:00Added an answer on May 14, 2026 at 5:05 pm

    Relative URL’s without a leading slash are relative to the current context. I.e. if the current URL in the browser address bar is http://example.com/context/index.jsp and the relative URL to be opened from the current context is context/page.jsp, then the final URL would be http://example.com/context/context/page.jsp.

    There are several ways to fix this:

    1. Remove the same context in the relative URL, so that it ends as page.jsp.
    2. Add a leading slash so that it becomes relative to the domain root: /context/page.jsp.
    3. Make it an absolute URL instead: http://example.com/context/page.jsp.
    4. Bring the context of the relative URL one step back: ../context/page.jsp.

    It works all the same way as with disk filesystem paths.

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

Sidebar

Related Questions

I have created one aspx Page from that i need to access the property
i have created one jsp file but it doesn't running in any way..!! it
I have created one application in flex that is accessing the Java webservice using
I have created a new method in one of the project's controllers that it
I have created one application using XCode. Now i want to deploy that application
I have created one web app using mvc and in that used form authentication
I have created one application which is reading outlook mail, but when user install
i have created one method to write to Log file but each time it
I have created one application for my portfolio. Let's say the URL is http://fb.domain.com/about/
I have created one static library in iPhone sdk, and I am worried that

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.