Questions tagged [pagecontext]
18 questions
4
votes
1 answer
Struts2, convert s:select list to display Tag column
I have the following selection list in jsp:
I chose to implement pagination…

manu
- 241
- 1
- 2
- 16
4
votes
1 answer
Access PageContext inside jsp declaration
One of my jsp has a function in declaration
<%!
public String performLogic(String state) throws Exception {
String resposeXML = "";
resposeXML = GetRequestViaXML(pageContext);
}
%>
This performLogic function need to call a…

user2779544
- 429
- 1
- 8
- 24
2
votes
1 answer
Page scope in jsp
I understand that page scope is the default scope in a jsp (least privileged as compared to request/session/application scope) and objects can be accessed only within the same jsp page.
I want to know if there is any possibility that two users…

Savita Chaurasiya Rohra
- 63
- 1
- 8
1
vote
1 answer
How to test SPFX webpart that uses pageContext?
I have a web part that uses the pageContext to get info about the page that the user is viewing. Until now I hve been available to test the webpart in my private environment by installing it in the app cataloge and then adding it to the page that I…

Americo Perez
- 95
- 1
- 4
- 17
1
vote
2 answers
does pageContext.findAttribute() function finds request scope also?
I have the following snippet in my jsp file:
<%
String name = request.getParameter("name");
out.println(pageContext.findAttribute("name"));
%>
Name in request scope: <%=name %>
The output I get for passed parameter name =…
Name in request scope: <%=name %>
The output I get for passed parameter name =…

SwatiBhalla
- 39
- 1
- 6
1
vote
1 answer
How to get value if i refresh the page without use of session scope
I have one web page in this i have one variable like state and it set value like state , I want this value if i refresh my page then also i want to get value without using of session ,
I try the page scope but it can not give value if i refresh the…

Panchotiya Vipul
- 1,226
- 5
- 17
- 42
0
votes
1 answer
The request object is accessed in the JSTL tag via pageContext
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
This code segment I am getting this error. Please…

Malavisooriya
- 1
- 1
0
votes
1 answer
How to use the pageContext in SPFx?
I am trying to get a value from the current page by using the pageContext but I am getting either undefined or 404.
This is the situation:
In the Site pages library there are several news pages. Each news page has some tags attached to them. This…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
0 answers
How to replace the implicit pageContext object when converting servlets into Jax-RS web services?
I am dealing with a huge legacy application based on servlets. A whole API has been defined through javabeans to fetch server-side data and manipulate it in the JSPs.
In this API the pageContext object gets tossed around, sometimes in order to…

gaudi_br
- 183
- 2
- 12
0
votes
1 answer
How to set encoding pageContext.getOut().write(message)?
what is default encoding of
pageContext.getOut().write(message) and how to set the other encoding if I need?

Nico_99
- 29
- 2
- 7
0
votes
1 answer
JSP pageContext properties
I'm trying a few examples from the O'Reilly Java Server Pages book by Hans Bergsten.
I'm stuck on the pageContext request properties! Not all of them are working. Most are ok, but these ones don't seem to…

aubreybourke
- 439
- 1
- 5
- 17
0
votes
1 answer
Configure session time out tapestry
my XML web is configured as follow web.xml, i don't even know why it is giving me that error,i would like to refresh my layout.tml page after that 1 minute so i added to my layout this : meta obviously tapestry doesn't know page Context.
Do you…

M.Simon
- 11
- 9
0
votes
1 answer
request attribute and pagecontext attribute in JSP
I have come across a scenario where I have set my attribute in the Action class:
request.setAttribute("itemList", itemList); /* valid List item - confirmed */
and on JSP, I tried to use it within forEach tag as

ha9u63a7
- 6,233
- 16
- 73
- 108
0
votes
1 answer
Find which JSP set attribute as pageContext
I have this statement in JSP (it is not my code, I am rewriting someone else code):
String mode = (String)pageContext.findAttribute(IParameterName.POPUPMODE);
POPUPMODE contains value (during debug where I am right now) value: EDIT
In eclipse I…

Nenad Bulatović
- 7,238
- 14
- 83
- 113
0
votes
1 answer
Thymeleaf: How to read variables from page context in the processor class
In my current spring-boot project I have a view mapped in my controller this way:
@RequestMapping(value = "cadastra")
@PreAuthorize("hasPermission(#user, 'cadastra_'+#this.this.name)")
@Menu(label = "cadastra")
public String cadastra(Model…

Kleber Mota
- 8,521
- 31
- 94
- 188