Problem in writing the URL in Paging tag

This is the part of my code which actually does paging
<table width="544">
<pg:paging url="AdminPolicies.jsp?catid=${catid}">
<c:forEach var="Material" items="${mat}" varStatus="row" >
<pg:item>
<tr class="${row.index % 2 == 0 ? 'even' : 'odd'}"><td id="line"><strong><a id = "link" href="Admin/${Material.location}">
<c:out value="${Material.name}" /></a></strong>
Author: <c:out value="${Material.author_fname}" /> <c:out value="${Material.author_lname}" />
<c:out value="${Material.description}" />
Submitted By: <c:out value="${Material.submitter}" />
Date Submitted: <c:out value="${Material.date}" />
<%
if(loggedUser.isInRole("admin"))
%>
<div id="right"><a href="Admin/EditMaterial.jsp?catid=${Material.catid&scatid=${Material.scatid&name=${Material.name}&submitt=EditMaterial&no=no ">Edit</a> | <a href="Admin/EditMaterial.jsp?catid=${Material.catid}&scatid=${Material.scatid}&name=${Material.name}&delete=delete&noscatid=noscatid " onClick="return confirm('Are you sure you want to delete this Material');">Delete</a></div>
<%
%>
</td></tr>
</pg:item>
</c:forEach>
<pg:index>
<pg:page><%=thisPage%></pg:page>
<pg:nextPages><a href="abc.com">ABh</a></pg:nextPages>
</pg:index>
</pg:paging>
</table>
My problem is that in url="AdminPolicies.jsp?catid=${catid}
I am not getting the value of catid. i.e ${catid} comes out to be blank when I click on the link of page 2.
catid is the value on my page which I get from request object.
Can u tell me how can I get the catid value in URL tag.
Also placing the caid in this <%=catid%> way does not work.
Waiting for your reply,
Aniketh

Hello Can anyone put some light on this post...

Similar Messages

  • Problem After writing the Jfree chart into pdf

    Hi All,
    I am writing the Jfreechart object with my company logo into JSP and and setting the content type as "application/pdf". I am getting the error as
    java.lang.IllegalStateException: getOutputStream() has already been called for this response.
    I have searched for it in the google as well as sun forums for so many hours and i implements so many suggested solutions but i am unable to remove the exception.
    The problem might be using response.getOutputStream() to get the output stream to in the response.
    But while debugging the code I observed that I am getting the error after complete execution of the code ie. after displaying the pdf.
    I am using JSF with JBoss portlets.
    Could any one help me in solving this problem as soon as possible..
    Thanks in advance.

    I am using the fallowing code to write into response. After execution of all the code and after displaying pdf its throughing the exception
    *OutputStream outStream = response.getOutputStream()*
    //To get the logo path from propeties file
    ResourceBundle resourceBundle = ResourceBundle.getBundle("imagepath");
                      String imagePath = resourceBundle.getString("imagepath");
                      Image image2 = Image.getInstance(imagePath);
                        image2.scaleToFit(100, 100);
                        PdfPTable pdfPTable =  new PdfPTable(2);
                        pdfPTable.getDefaultCell().setBorder(0);
                        PdfPCell cell = new PdfPCell(image2);
                        cell.setHorizontalAlignment(Element.ALIGN_LEFT);
                        cell.setBorder(0);
                        pdfPTable.addCell(cell);
                        pdfPTable.addCell("");
                      //get the Pdf writer object
                   PdfWriter     writer = PdfWriter.getInstance(document, outStream);
                       document.open();
                   document.add(pdfPTable);
                      PdfContentByte contentByte = writer.getDirectContent();
                      PdfTemplate template = contentByte.createTemplate(1200, 750);
                      Graphics2D graphics2d = template.createGraphics(600, 750, new DefaultFontMapper());
                      Rectangle2D rectangle2d = new Rectangle2D.Double(0, 0, 540, 700);
                      jfreechart.draw(graphics2d, rectangle2d);
                      graphics2d.dispose();
                      contentByte.addTemplate(template, 50, 25);
                      //setOldchartObject(chartInfoBean);
                      System.out.println("This is before closing th edocument.");
                      document.close();

  • Problem in writing the message from the return table

    Hi All,
    I have place the following piece of code to write what I have in a table to the screen:
    LOOP AT t_return INTO wa_return WHERE type = 'E'.
         lo_api_controller ?= wd_this->wd_get_api( ).
            CALL METHOD lo_api_controller->get_message_manager
              RECEIVING
                message_manager = lo_message_manager.
            lv_message_string = wa_return-message.
    *     report message
            CALL METHOD lo_message_manager->report_error_message
              EXPORTING
                message_text = lv_message_string.
    *        EXIT.
        ENDLOOP.
    now the problem is on the output screen it's only showing me the first line of the table and it's not going to the second line of the table t_return...
    Can you please see what I am doing wrong here.
    Thanks,
    Rajat

    try to concatenate all the message into a string.. and finally call the method. Also, search in WEB DYNPRO forum on this..
    LOOP AT t_return INTO wa_return WHERE type = 'E'.
         lo_api_controller ?= wd_this->wd_get_api( ).
            CALL METHOD lo_api_controller->get_message_manager
              RECEIVING
                message_manager = lo_message_manager.
            lv_message_string = wa_return-message.
    *     report message
            CALL METHOD lo_message_manager->report_error_message
              EXPORTING
                message_text = lv_message_string.
    *        EXIT.
        ENDLOOP.

  • Problem in finding the url

    i am providing the url "C:\\Documents and Settings\\snehasis\\My Documents\\aa.gif" for an image located "C:\\Documents and Settings\\snehasis\\My Documents\\aa.gif") and it is throwing an error. It is due to the path not found .how to rectify it

    Review the documentation for the method you are using and determine what argument it takes. You are providing a string consisting of a file path/name. Is that valid?

  • Problem in Creatig the URL iview for a Team Room

    Hi SDN,
    <b>
    I have created a team room in collaboration and created the URL iview of that team room.
    But in the iview i am getting the MASTHEAD of the portal also.
    But I do not want the MASTHEAD to appear.
    HOW DO I GO ABOUT THIS??????
    </b>
    regards
    Brahmachaitanya

    Hi Brahmachaitanya
    Well it is unfortunately not possible to just copy the link of a room and use it as reference in an URL iView. A solution we are using a Collaboration Room launching iView. We simulate the form that is used in the CLP:
    <script language=\"Javascript\">
         function gotoRoom(){
              top.EPCM.doNavigate(\'CollaborationConnector://portal_content/com.sap.ip.collaboration/Rooms/" + room_id + "/workset?NavTargetAsRoot=true\', \'0\');
    </script>
    I hope this helped.
    Cheers, Normen

  • My problem deals with the url bar.

    Before switching to 5.0, I was able to type in let's say something like, "Imdb.com jack nicholson" into the url bar & I would end up on the actors Imdb profile, but now since I switched, it just re directs me the google search for his page. So, is there something I can do or re config to back to the way it once was? Thanks!

    There is a change beginning in Firefox 4 in how Location bar search works.
    *'''''In Firefox 3.6.x''''', Location bar search uses Google "Browse by name" search. With the browse by name search, it performs a Google search and
    **if there is a clear match it will take you to the site
    **otherwise it shows the Google search result page
    *'''''Firefox 4's default''''' is
    **to perform a Google search and present the Google search results page '''''if''''' you type something which is not recognized as a URL
    **you must type a complete URL, such as www.youtube.com , to go directly to the site
    To get the Firefox 3.6.x behavior in Firefox 4. you need to change a hidden preference '''''OR''''' install the add-on below.
    '''To change the preference:'''
    #Type '''''about:config''''' into the location bar and press the Enter key
    #If you see a warning, accept it (promise to be careful)
    #A list of preferences will open
    #Filter = keyword.URL
    #Double-click on that preference in the lower pane
    #A small window will appear; copy one of the URLs below and paste into the box in that small window (or type it into the box in that window '''''exactly''''' as shown below):
    *Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    *Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    '''Instead of the above, you could install this extension:'''
    *'''''Browse by name''''' add-on: https://addons.mozilla.org/firefox/addon/browse-by-name
    See:
    *http://kb.mozillazine.org/About:config
    *http://kb.mozillazine.org/Keyword.URL
    *http://kb.mozillazine.org/Location_Bar_search
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.4"
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.

  • Problem while writing the data (LSMW direct input method for Creating BOM )

    Hi all ,
    I am unable to create a BOM using LSMW standard dirrect input mehtod .
    While i going through the *Read data *  step , it is reading the data but unable to write the data .
    My input text files are correct , Is it a problem with respect to the Logical Path or Logical File ......
    Please let me know the Possibilities of arising this problem .
    Regards,
    Raj

    Hi,
      Check this document:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90d90895-68dd-2a10-f096-bf8cf2e2f65b
    cheers
    Aveek

  • Problem in accessing the url on client with win7 64 bit

    Hello experts,
    we recently install fusion 11.1.2.1.0 and database 11g.
    scenario:
    database server:(192.168.1.100)
    plateform: window server 2008, 64 bit
    product: oracle database 11g.
    application server:(192.168.1.101)
    plateform: window server 2008 64 bit
    product: oracle fusion 11g(forms and report)
    i sucessfully install and configure the forms configuration. my application is running on same application server.
    url to access the application:
    http://aserver:9001/forms/frmservlet?config=erp
    url is accessing on the application server as well as client having 32 bit xp operating
    system after insatlling the java.
    but if same url is accessing on database server and clients with window7 64 bit, not accessing after installing the java as well.
    please help
    thanks
    yash

    Hi Amit
    We also have this issue with weblogic webservices. Did you get any resolution for this issue.
    When the service is executed for lesser number of hits, all the responses are processed properly. But as load (Number of hits for the same service) increases, few responses are failed to be parsed in the web service client. We could confirm that the producer responds with proper content type (text/xml)
    Any help or pointers will be greatly appreciated.
    Thanks,
    Finny

  • Problem in writing the query

    hi
    I want to write aquery as
    l_query1 varchar2(1000)
    default 'select COLUMN_NAME ,DATA_TYPE from all_tab_columns where rownum <=2';--where TABLE_NAME = || ||p_tname;
    p_tname has the value for TABLE_NAME .
    for this I need to include the value of p_tname in single quotes.
    i want the output as
    'select COLUMN_NAME ,DATA_TYPE from all_tab_columns where rownum <=2';--where TABLE_NAME = 'oracle' ';
    how to do so?
    thanks
    cheers

    e.g.
    l_query1 := 'select column_name from all_tab_columns where table_name = '''||p_tname||'''';

  • Problem in writing the routine in transfer rule....

    Hi,
    I want to put the routine for the upper case in the transfer rules.
    When I go to the Infosource and create the transfer routine I do not
    get the editable code for the field for which I want to create the routine.
    Only editable thing I get is "RESULT"
    As nothing else is editable not even the TRAN_STRUCUTE has anything.
    Everything is commented out by the system automatically.
    How to make this editable and put the code.
    Thanks , Jeetu

    try to concatenate all the message into a string.. and finally call the method. Also, search in WEB DYNPRO forum on this..
    LOOP AT t_return INTO wa_return WHERE type = 'E'.
         lo_api_controller ?= wd_this->wd_get_api( ).
            CALL METHOD lo_api_controller->get_message_manager
              RECEIVING
                message_manager = lo_message_manager.
            lv_message_string = wa_return-message.
    *     report message
            CALL METHOD lo_message_manager->report_error_message
              EXPORTING
                message_text = lv_message_string.
    *        EXIT.
        ENDLOOP.

  • How do I pass a parameter to a portlet on the URL?

    I have a portlet on one tab that searches for parts. (This portlet is written and maintained by someone else.) When a user clicks on a part number in the result set on this portlet they need to be taken to another tab (different portlet on the same page) with that part number as a parameter. The second portlet then dynamically writes an
    <iframe src="http://someurl?partnumber=xyz" />
    to call an external application passing the part number as a URL parameter to the external application.
    Writing the <iframe /> dynamically is no problem. The problem is passing the part number from one portlet to another. We planned to do this by using hrefs in the part search portal using URLs like
    http://hostname:port/pls/portal/url/page/test1/portlet2?partnumber=xyz
    for each part number. The problem is that the URL parameter doesn't get passed to the second portlet. Here is the code in the second portlet:
    <%
    PortletRenderRequest portletRenderRequest =
    (PortletRenderRequest)request.getAttribute("oracle.portal.PortletRenderRequest");
    String partnumber = portletRenderRequest.getQualifiedParameter("partnumber");
    %>
    It always sees null for the partnumber parameter.
    I also have <passAllUrlParams>true</passAllUrlParams> in provider.xml.
    I've tried checking this by calling the URL of the second portlet directly from a browser. The portlet sees the partnumber parameter as null, but the URL window in the browser returns the modified URL from the portal with the partnumber parameter set properly. Portal is seeing the parameter but not passing it to the portlet.
    I haven't tried actually setting the in the first portlet and seeing if it all works when called from inside the portal, but I don't see why it shouldn't work by calling the second portlet URL directly with a parameter.
    Am I missing some step in order to pass a parameter from one portlet to another? The parameters I have to pass are dynamic, based on the result set returned by a search in the first portlet.

    My second to last paragraph should have been:
    "I haven't tried actually setting the hrefs in the first portlet and seeing if it all works when called from inside the portal, but I don't see why it shouldn't work by calling the second portlet URL directly with a parameter."

  • Problem with UI5 ESS URL with Role Upload in HR Renewal 2.0

    Hi Experts,
    We are in the process of implementing the HR Renewal 2.0 FP1.
    I have made the custom copy of the Standard PFCG ESS role SAP_EMPLOYEE_ESS_XX_UI5_1 into ZSAP_EMPLOYEE_ESS_XX_UI5_1.
    I was able to upload this role in to SAP Portal by selecting the default system object created to point to our ECC system and assigned the ESS role to the end user.
    Now the problem is with the URL which needs to points to the UI5 ESS Landing page in the ECC system. Instead the URL path now is,
    http://portalhost:50000/sap/bc/ui5_ui5/sap/arsrvc_suite_pb/main.html?page=HR_SELFSERVICES.
    I have maintained the system object name in the Generic Content property category of iView and still it picks up the portal URL.
    The relative path should be appended with the ECC host details instead of portal host details.
    Please help me to resolve the issue.
    Thanks,
    Urmi

    Hi Sharadha,
    Run the role from backend and make sure its has correct expected url, then from portal we can address it easily.
    Once you copy and make Zrole, you have to modify and it should point it to the correct catalog.
    In case if you still face issue, pls open a new  thread and past ur screen shots and details, so that we can suggest appropriate. 
    Regards
    Yugandhar reddy

  • How do I set the URL to be correct in the browser?

    When I click on a link, like the following:
    "http://127.0.0.1:8100/test/viewpage?cmd=viewpage&id=2808"
    I then get that link appearing in the browser URL field.
    However, when I go to the same page via a Servlet (and the action is activated via a Submit button) then the URL is showing something like:
    "http://127.0.0.1:8100/test/viewpage"
    although the page is displaying the correct/same data.
    Is there a way to build the URL in the response so it is the same as going via the link above? (ie it has the rest of the parameters "?cmd=viewpage&id=2808" at the end).
    The problem is that the URL ""http://127.0.0.1:8100/test/viewpage" is meaningless so for it to be useful it must have the parameters on the end.
    Thanks in Advance,
    The Whale

    Thanks,
    I did not realise it would be that simple.
    So as long as I have the same INPUT fields within the form that equals the parameters I want on the URL then it works fine.
    Thanks Again,
    The Whale

  • The URL "^0" could not be found on the server.

    I am new at all of this so forgive me for my lack of knowledge on ipods. I just got a new ipod 30GB and just purchased a movie on iTunes. I tried to download it but said "There was a problem downloading". The URL "^0" could not be found on the server. Don't know what this means. Can anyone help me out on this? Thanks
      Other OS  

    I get that every now and then when making a purchase at iTunes store. What I usually do is reorder the product and iTunes acknowledges that an attempt has been made, that it will retry the download. However that was iTunes 6...I cannot say the same for iTunes 7 (which as you know is full of bugs).
    ITUNES 7 IPOD RESTORE
    iTunes 7 seems not to come with the iPod updater in the installation package and the restore program as well. Apple forces you to have an online connection. One of my computers has no internet connection and if I try to restore my iPod, all I get is an error. APPLE JUST SCREWED UP EVERYTHING WITH ITUNES 7.

  • Problem: ()[]{} invisible inside the script-tag

    Hi there,
    This morning I realised I had some strange problem with my Dreamweaver CS4. The brackets ()[]{} are somehow invisible inside the script-tag. I know they are still there, because they execute correctly and when I copy a codefragment with some (of the now invisible) brackets to another text-editor, they are there again.
    Let me give a short example:
    // Brackets are visible in DW   ()[]{} These are visible, tooI can see the "bla", but NOT the brackets before and after it. ()[]{} These here are visible again. 
    So you see, brackets are somehow made invisible inside the script-tag, and I'd like to know how to make them visible again.
    Here's what I tried so far (everything without success):
    - restart Dreamweaver
    - restart PC
    - check the options menu (didn't find anything for this problem)
    - hide/show the script-tag using dreaweaver's feature for this.
      Intresting point here: when the part where the brackets are, are collapsed it shows me "()[]{}[..." as a preview. So even Dreamweaver "knows" the brackets are there, but still refuses to show them -_-
    - set the gui setting from "coder" to "classic" and back.
    Any help is appreciated!
    Thanks in advance, really need to solve this, since I am using alot of hardcoded 2-dimensional javascript arrays and therefore alot of []
    Best regards
    Michael

    Sorry for doubleposting, I should have read the manual for posting code :|
    here's the code I was giving as an example:
    <title>brackets work fine here: ()[]{}</title>
    <style type="text/css">
    .someclass {background:url(theseBracketsAreVisible.png)}
    </style>
    </head>
    <body>
    <div>()[]{} these are visible as well</div>
    <script language="javascript">()[]{}[bla]</script> I can see the "bla", but NOT the brackets before and after it.
    ()[]{} These here are visible again.
    </body>
    Sorry again..
    edit:
    I realised it hides words like "function" aswell o_O
    <script language="javascript">
    function test() {ar = new Array;ar = ["a","b","c"];alert(ar);};
    </script>
    The code above is visible for me in Dreamweaver like this:
    <script language="javascript">
    test ar =  Array;ar = "a","b","c";alertar;;
    </script>
    really strange..

Maybe you are looking for

  • How can 2 people working on different locations collaborate on imovie?

    Hi, My cousin and I were trying to work on a movie for my Grandma's b'day. It is basically a bunch of pictures with music. We are located in different countries. I was hoping she could work on the project and then send the project file to me (before

  • Pie chart with two measures and date dimension navigation not working

    Hi Experts, Pie chart with two measures and date dimension navigation not working. Any help is appreciated. Thanks V

  • Re: Issue with Proximity Sensor during calls

    Im sure if it is a hardware issue, all Apple would have to do is change the software. Im sure they can add something to the software that allows you to lock the buttons when on a call, or make the sleep button on top of the phone disable the proximit

  • RAM not showing up in system properties

    I have 3GB installed on my OLD Windows XP I have noticed lately that when I checked my System Properties it only says 2GB. But HWINFO32 shows 3GB I ran memtest86 to see if my ram was failing but it passed. Any ideas on why it only shows 2GB. I have a

  • Cash Receipts Analysis

    Our auditors want to confirm 2010 Accounts Receivable balance by analyzing subsequent cash receipts in 2011. They want to know from the AR cash receipts received in 2011 what total dollar amount applies to 2010 AR documents. I ran the report S_ALR_87