473,322 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to get context path in jsp pager tags.

I am using a variable to set contextpath as given first.

Expand|Select|Wrap|Line Numbers
  1. <c:set var="path" value="${pageContext.request.contextPath}"/>
then i am using this variable in
Expand|Select|Wrap|Line Numbers
  1. c:out 
tag.
as
Expand|Select|Wrap|Line Numbers
  1. <c:out value="${path}"/>
in
Expand|Select|Wrap|Line Numbers
  1. <pg:pager maxPageItems="345" url="/myweb/device/deviceResults.do" prevNextUrl="/myweb/device/findDeviceResults.do">
here
Expand|Select|Wrap|Line Numbers
  1. /myweb
is the context path. But i want to write dynamically .

Expand|Select|Wrap|Line Numbers
  1. ]<pg:pager maxPageItems="345" url='<c:out value="${path}"/>/device/deviceResults.do' 
. But this code is not working.
Nov 4 '11 #1
0 1545

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sławomir Marcinkowski | last post by:
Hello, can someone show use example use smarty pager plugin? {pager rowcount=$LISTDATA.rowcount limit=$LISTDATA.limit txt_first=$L_MORE class_num="fl" class_numon="fl" class_text="fl"} I'm...
1
by: SPG | last post by:
Hi, I am relatively new to TOMCAT, and am trying to deploy a web app using it. I have a domain name that I want to use to access my web app directly. By default, I deploy my WAR, and it deploys...
1
by: Blue Man | last post by:
is that possible to use dynamic paths in web.config for httphandler like this? <httpHandlers> <add verb="*" path="archive/\d{4}/\d{2}/\d{2}/\d+\.aspx" type="myclass,assembly" />...
5
by: Flip | last post by:
I'm trying to reference images in my webapp. I'm coming from j2ee and I just write a small jsp scriplet that says to go grab the context path. How do I do that with C#? If it's done differently...
2
by: JerryK | last post by:
Hi, We have a couple of pages on the site that need to be secure. Is there any way to get (redirect, etc) to these pages without using an absolute path? Alternately, the whole reason for...
0
by: Ray | last post by:
I am trying to add a "Next >" and "<Prev" button to the pager of my datagrid. I have been able to add the hyperlinks to the pager. I am now trying to determine the correct postback script to...
0
by: Joey | last post by:
Hello, I need to be able to access the linkbuttons that are used for paging inside a datagrid so I can set the style for what eventually becomes the client-side html anchor tags. I have read...
1
by: Debs | last post by:
Hi, I am running my website using Weblogic, so the path is something like http://<myip>:<port>/<servername>/ On JSP pages I can use <%=request.getContextPath()%to get the root path of the...
2
by: Arjen | last post by:
Hi, I have a list up to 100 records. I can use the datagrid with the pager functionality. But I can also use a repeater with a self made pager control. What is the best and why? I think the...
0
by: SunkenHeights | last post by:
Hi people. Can anyone please tell me how to write into an xml given the context path? I am able to write into the xml given the physical path but when I pass the context path a TransformerException...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.