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

  • Home
  • SEARCH
  • 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 235025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:13:57+00:00 2026-05-11T20:13:57+00:00

I know my problem or the way I want this to work might not

  • 0

I know my “problem” or the way I want this to work might not be a common approach, but I hope someone can point me in the right direction.
I am still messing with a self written java server (let’s call it “myserver”). But I kinda just want it to validate whether a user is allowed to access the servlet he is requesting.
I am doing following: The user calls myserver. Here a login-form is called and the user logs in. The data is checked.

NOW: If the user is allowed to access the content I want him redirected to tomcat behind myserver to handle the servlet-requests.

My question: How can I redirect the request from myserver to tomcat? Is there a java-way?

Thanx in advance.

… dg

  • 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-11T20:13:58+00:00Added an answer on May 11, 2026 at 8:13 pm

    You could use some java HTTP client or a TCP port forwarder and forward all request coming to your server to the real tomcat server.

    Update:
    Here you can find a servlet I used couple of years ago. You could possibly use it as starting point.
    So for example, you programmatically create a forwarding to the tomcat server and when the user is allowed to pass through, send it the forwarder’s port number.

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

Sidebar

Related Questions

I know I've solved this problem before, but I can't remember or find the
First off, I know I can copy "this" on instantiation, but that doesn't work
I know this might seem like a duplicate, but I'm not getting anywhere with
I know this is a quite easy problem but I just want to solve
I occasionally get this problem, and generally work around it, but it's rather frustrating.
I'm very new to web development and I know this might be stupid approach
Here is a way to solve Euler problem 43 (please let me know if
I know I've had this problem before so I'm really frustrated. I've got the
I'm trying to use RabbitMq in a more unconventional way (though at this point
I'm trying really hard to made this work, but I'm having no luck. I'm

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.