Skip to content
Advertisement

Tag: servlets

Websphere liberty profile error: 404 SRVE0190E

What could be the reason for the error: Error 404: SRVE0190E: File not found: /SimpleServletPath I am deploying in websphere liberty profile server. I can’t reach my admin console login page I can reach my welcome page on my websphere liberty profile server but can’t do so after creating a servlet. That’s when the above 404 error comes up. There

JSP input comes null to servlet

I’m trying to pass parameter to jsp to servlet. And my code is : Server side : JSP side : When i run it on localhost kullanici variable comes null. Any solution ? EDİT : Answer I think you mean that you want to go FROM a jsp TO a servlet. If that’s the case, look the action attribute: If

Pass Hidden parameters using response.sendRedirect()

How would I pass hidden parameters? I want to call a page (test.jsp) but also pass 2 hidden parameters like a post. Answer TheNewIdiot’s answer successfully explains the problem and the reason why you can’t send attributes in request through a redirect. Possible solutions: Using forwarding. This will enable that request attributes could be passed to the view and you

In Java servlet, cookie.getMaxAge() always returns -1

If I set a cookie with a setMaxAge() well into the future, when I read the cookie back into memory in a subsequent request, the getMaxAge() gives me back a -1. I have checked the actual cookie via Chrome’s settings, and inspector, and I can verify that the expiration date is indeed set 60 days in the future. Why does

Write and Read Cookies in different Applications

I have two applications running in Jboss, can I write a cookie in a application and read in another? For example, if I have two Servlets: – WriterCookieServlet on localhost:8080/Application1 – ReaderCookieServlet on localhost:8080/Application2 WriterCookieServlet: Then on ReaderCookieServlet I want read this cookie. Answer I think @galuano1 is right: this should indeed be possible. Make sure the path is correct,

How to access a request attribute set by a servlet in JSP?

I’m trying to retrieve attribute values set by a servlet in a JSP page, but I’ve only luck with parameters by ${param}. I’m not sure about what can I do different. Maybe its simple, but I couldn’t manage it yet. In the JSP I have been trying to retrieve the “attribValue”, but without success: If I pass a parameter through

Radio Button value retrieval using servlets

I’m quite new to the process of web development, so I apoligise if this seems a really silly question. Basically, I’m creating a servlet whereby a user will answer ‘yes’ or ‘no’ to three 3 questions, and then submit the form. What I wish to do is to retrieve the value of each button, and store it a data structure

Advertisement