473,386 Members | 1,830 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,386 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 1547

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.