Kyle Bradley

Greenhorn
+ Follow
since Feb 05, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kyle Bradley

I see this is old, but a google search brought me here so I'm adding an answer...


The Servlet 3.0 standard gives you two ways to disable URL session rewriting. This works in Tomcat 7, Glassfish v3, and any other Servlet 3.0-compliant servlet container. First, you can add this to your web.xml webapp config:




Or programmatically, you can use:





Found from this url: https://fralef.me/tomcat-disable-jsessionid-in-url.html
OR this url: http://stackoverflow.com/questions/962729/is-it-possible-to-disable-jsessionid-in-tomcat-servlet
8 years ago
I have only ever used Java without a "framework". What benefits do I have for using Groovy? Why should I use Groovy?

Where do I start with Groovy?
Is it used in web applications?
Are there any tutorials?
Does it integrate well within NetBeans?
8 years ago
maybe I didnt explain it well enough...


If I do this I get the result I want:



Result gives me the url I want
Localhost:8080/App/action?whateverParametersIHaveHere


What I did not want to have to do was the check (parentPage.equals("/App/view.jsp"))

Is there not a way to get the actually url in the url bar? I thought that request.getRequestURL would give it to you but it is returning the forwarded url of the .jsp (I do not want the .jsp but the servlet address that is in the url bar)

8 years ago
What you are saying seems backwards then... I want the url of the servlet which would not be the forwarded url.
8 years ago
Hello,

I am trying to store the url visited so when the session does not exist it redirects you to the login page then after login it will direct you to the page you were attempting to access.

Setup:
web.xml directs /action to servlet action.java

I access the page from the servlet(action.java) and redirect you to the jsp page via: request.getRequestDispatcher("/view.jsp").forward(request, response);
The url says the servelts name

So on the page action the url is:
localhost:8080/App/action

but request.getRequestURI().toString(); shows /App/view.jsp


How can I get the url to show the servlet address?


8 years ago
I would suggest making your video game using Unity which uses c# or the unreal engine (which i believe is now free?)

https://unity3d.com/

https://www.unrealengine.com/what-is-unreal-engine-4

Making a game is extremely difficult, and there is a lot more involved than you might initially imagine (create all graphics, create story, create ai, create user interactions, maintain performance, ...).
There is also a tremendous amount of tutorials and support online for the 2 mentioned platforms.
8 years ago