Parsing a querystring

hi,
i have a jsp that validates a login form and depending on the result of the validation, redirects the user to the main page (validation ok), or redirect the user to the login page with a querystring, like this: "response.sendRedirect("login.jsp?login_error=1");"
my problem is who to parse the string...
i have several login_error, it can be 1, 2 or 3, and i want to get that value...
i have tried it with the request.getParameter() method but it doesn't seem to work, i always get an error.

ok... you're right... i complety forgot to explain the error...
the thing "blows up" whem i try to do the following:
if(login_error.compareTo("1") == 0
or when i try
if(login_error.equals("1"))
by the way... which one is more correct???
thanks for the posts!

Similar Messages

  • Parsing a querystring GET request that has a pound sign (#)

    I apologize if this posting is in the incorrect forum, but I couldn't figure out which one was MOST appropriate, so I chose the most general. I have a Java program that processes a URL request from an external application. The URL is invoked with several query string variables, including one for ShippingAddress. I found yesterday that when their system passes a pound sign (#) in the URL, it crashes my program. Apparently, the pound sign is not just automatically converted to a hex equivalent (%23) like a space(%20) is, for example. So when I try to parse it, it fails. For example, the URL might be something like this:
    http://www.mydomain.com/process.nsf?openagent&shippingaddress=123 Main Street #307
    The spaces do not cause any issues. However, when it comes to parsing the " #307", it dies.
    To parse the query string, I'm using the following utility class. I'm not a Java guru, so my question is if there is a way to modify this class to handle the # sign in the URL? Going to the developers of the other system and requesting they replace the # with a hex value will take months. Thank you!
    import lotus.domino.*;
    import java.util.*;
    public class UrlArguments extends Hashtable {
    public UrlArguments() {
    public void fromString(String args) {
    StringTokenizer toks = new StringTokenizer(args, "&=", true);
    String tok = toks.nextToken(); // first token is command: skip it.
    String key = null;
    boolean bKeyNext = true;
    while (toks.hasMoreTokens()) {
    tok = toks.nextToken();
    if (tok.equals("&")) {
    if (bKeyNext && (key != null)) {
    // Null value
    put(key, "");
    key = null;
    bKeyNext = true;
    } else if (tok.equals("=")) {
    bKeyNext = false;
    } else {
    if (bKeyNext) {
    key = new String(tok);
    } else {
    if (key != null) {
    put(key, tok);
    key = null;
    // We have to special-case a valueless argument at the end.
    if (bKeyNext && (key != null)) {
    // Null value
    put(key, "");
    public void fromSession(Session session)
    throws lotus.domino.NotesException {
    AgentContext agentContext = session.getAgentContext();
    Document doc = agentContext.getDocumentContext();
    // First add all of the CGI variables. They are in the document context.
    Vector items = doc.getItems();
    for (int iItem = 0; iItem < items.size(); iItem++) {
    Item item = (Item) items.elementAt(iItem);
    put(item.getName(), item.getText());
    // Now parse the URL arguments themselves.
    fromString(
    doc.getItemValue("QUERY_STRING_DECODED").elementAt(0).toString());
    // A simple accessor to make casts unnecessary.
    public String getString(String key) {
    return (String) get(key);
    }

    ot just automatically converted to a hex equivalent (%23) # is a valid part of the URL, it is a separator for the fragment part.

  • Error on modifying the SharePoint excel services viewer (xlviewer.aspx) page

    I am working on SharePoint 2013 and am following this
    article to modify the xlviewer.aspx page in order to pass into it URL parameters. After following the instruction when I reload the new webpage (MyXLViewer.aspx) I am getting the foll. error:-
    Sorry, something went wrong An error occurred during the compilation of the requested file, or one of its dependencies. 'Microsoft.Office.Excel.WebUI.ExcelWebRendererInternal' does not contain a definition for 'RowsToDisplay' and no extension method 'RowsToDisplay'
    accepting a first argument of type 'Microsoft.Office.Excel.WebUI.ExcelWebRendererInternal' could be found (are you missing a using directive or an assembly reference?) Technical Details
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: db9b709c-966c-80de-156d-15c4b2783b09
    Date and Time: 2/3/2014 5:15:03 PM
    Go back to site
    Can you please try this and replicate and let me know if you are facing the same issue..? Or whether I am doing something wrong here? Foll.
    is the procedure I have followed:-
    Create a copy of XLViewer.aspx which is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS. I named my copy MyXLViewer.aspx. you can try /14/ incase of SharePoint2010..
    Open MyXLViewer.aspx in Notepad and do the following;
    <%@ Page language="C#" Codebehind="XlViewer.aspx.cs" AutoEventWireup="false"... --> Change This To --> <%@ Page language="C#" Codebehind="XlViewer.aspx.cs" AutoEventWireup="true"...
    Placed foll code before head tag closes </head> on
    the page:
    <script runat="server">
    private void Page_Load(object sender, System.EventArgs e)
    if (Request.QueryString["RowsToDisplay"] != null)
    m_excelWebRenderer.RowsToDisplay =
    Int32.Parse(Request.QueryString["RowsToDisplay"]);
    if (Request.QueryString["ColumnsToDisplay"] != null)
    m_excelWebRenderer.ColumnsToDisplay =
    Int32.Parse(Request.QueryString["ColumnsToDisplay"]);
    if (Request.QueryString["ToolbarVisibilityStyle"] != null)
    if (Request.QueryString["ToolbarVisibilityStyle"] == "1")
    m_excelWebRenderer.ToolbarStyle =
    ToolbarVisibilityStyle.FullToolbar;
    else
    m_excelWebRenderer.ToolbarStyle =
    ToolbarVisibilityStyle.None;
    </script>

    Hi,    
    The article you referenced might be applied to SharePoint 2007, however, in SharePoint 2013, the
    RowsToDisplay property and
    ColumnsToDisplay property are no longer supported, so these properties are not guaranteed
    to work as they were in SharePoint 2007.
    If you want to customize the Excel Web Access Web Part, it is recommended to take a look at the two documentations about Excel Web Access Web Part custom properties:
    http://office.microsoft.com/en-001/sharepoint-server-help/excel-web-access-web-part-custom-properties-HA010377893.aspx
    http://office.microsoft.com/en-001/sharepoint-server-help/excel-web-access-web-part-summary-HA010105454.aspx
    Best regards
    Patrick Liang
    TechNet Community Support
    Hello Patrick,
    As I have posted in my question I am interested in customizing the Excel viewer aspx page which opens up when you open an excel book via the document library in SharePoint 2013. The solution you are talking about is to modify the properties of the excel
    web part and this does not answer my question.
    Again, can you tell me if there is any possible way to customize the XLVIEWER.ASPX page sitting in LAYOUTS folder so that I can access certain properties like AllowInteractivity, etc? Or has this been completely discontinued by Microsoft in SharePoint 2013?
    If the RowsToDisplay
    property and ColumnsToDisplay
    property are no longer supported, are there
    any other property that this tag supports?
    We have opened the xlviewer.aspx page from layouts folder and can see the foll. control:
    <Ewa:ExcelWebRendererInternal id="m_excelWebRenderer" runat="server"
    AllowInteractivity="false" AllowPivotSpecificOperations="false"/>
    However, there is no documentation available from Microsoft or any other dev sites on this control/tag. This
    link mentions that the ExcelWebRendererInternal is a totally useless instance.
    I need clarification on this.
    We also tried to edit the "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\ewa.strings.moss.js" file. But, any edits corrupts what is rendered on the right click of the pivot chart/table on xlviewer.aspx
    page.

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • 'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

    I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
    two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
    The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
    The code generated when I add the aspx page is below:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
    The code behind is as follows:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Utilities;
    using System.Reflection;
    namespace MY.Solution.Layouts.MY.Solution
    public partial class processingpage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    try
    //Get a reference to the SPWeb object
    SPWeb oWeb = SPContext.Current.Web;
    //Use the Parameters That Are Passed In
    SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
    SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
    sContentType = thisItem["ContentType"].ToString();
    sContentTypeID = thisItem.ContentTypeId.ToString();
    if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["ID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["AIID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAICID = thisItem["AICID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else
    LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
    catch (Exception ex)
    LoggingService.LogError("My.Solution - Processing Page", ex.Message);
    finally
    //DO SOME FINAL THINGS HERE WHEN REQUIRED.
    In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
    'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    When I change the line:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    to inherit as follows:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
    it does not work either.
    If I change it to inherit like below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
    it also does not work.
    What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

    @NadeemYousuf I have tried this too and it didn't work.  
    What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

  • No mapping exists from object type Telerik.Web.UI.RadMaskedTextBox to a known

    hi for all i got this problem when i try to update record in a database actually it's first
    time happining with me
    No mapping exists from object type Telerik.Web.UI.RadMaskedTextBox to a known
    managed provider native type
    and this is my code
    SqlCommand cmd = new SqlCommand("update RealEstate set DestinationEntity=@speechDirect,FULLName=@name,Individual_Iqama_NR=@egamhNo,Individual_Passport_NR_ID=@passport,Individual_Gender=@six,Individual_Sociall_Status=@martialstate,Individual_Passport_Issue_Date=@passportdate,Individual_Nationality_ID=@nationality,IqamaIssued_From=@egamhsource,Total_Staying_Time_KSA=@stayduration,Individual_Work_Address=@workdisc,Possess_Type=@omntype,Apartment_No=@estateno,Apartment_Floor_No=@storyno,Possess_City_ID=@city,QuarterID=@area,Deed_No=@InstrumentNo,Deed_Date_HijriAfter=@Instrumentdate,Deed_Issue_City_ID=@Instrumentsource,Request_Status=@orderstate,Real_Estate_Area=@estatespace,[notes]=@notes,Incomming_No=@waredno,Incomming_Date_HijriAfter=@wareddate,Qaied_No=@ghaidno,Qaied_Date_HijriAfter=@ghaiddate,ExportNumber=@jihtsdor, ExportDateHijriAfter=@job where Possess_ID=@id", _con);
    cmd.CommandType = CommandType.Text;
    _con.Open();
    cmd.Parameters.AddWithValue("@id", int.Parse(Request.QueryString["Serial"].ToString()));
    cmd.Parameters.AddWithValue("@speechDirect", RadComboBox1.SelectedValue);
    cmd.Parameters.AddWithValue("@name", txtname.Text);
    cmd.Parameters.AddWithValue("@egamhNo",txtegamhno.Text);
    cmd.Parameters.AddWithValue("@passport", txtpassportno.Text);
    cmd.Parameters.AddWithValue("@six",RDSix.SelectedValue);
    cmd.Parameters.AddWithValue("@martialstate", Rdstatus.SelectedValue);
    cmd.Parameters.AddWithValue("@passportdate", DateTime.Now);
    cmd.Parameters.AddWithValue("@nationality", RdNationality.SelectedValue);
    cmd.Parameters.AddWithValue("@egamhsource", txtegamhsou.Text);
    cmd.Parameters.AddWithValue("@stayduration", txtstayduration.Text);
    cmd.Parameters.AddWithValue("@workdisc", txtjobdirec.Text);
    cmd.Parameters.AddWithValue("@omntype", RdownType.SelectedValue);
    cmd.Parameters.AddWithValue("@estateno",txtflatNo.Text);
    cmd.Parameters.AddWithValue("@storyno", txtstoryNo.Text);
    cmd.Parameters.AddWithValue("@city", RDcity.SelectedValue);
    cmd.Parameters.AddWithValue("@area", RadComboBox2.SelectedValue);
    cmd.Parameters.AddWithValue("@InstrumentNo",txtskno.Text);
    cmd.Parameters.AddWithValue("@Instrumentdate", txtskdate.Text);
    cmd.Parameters.AddWithValue("@Instrumentsource", Rdsksource.SelectedValue);
    cmd.Parameters.AddWithValue("@orderstate", Rdordercase.SelectedValue);
    cmd.Parameters.AddWithValue("@estatespace",txtspace.Text);
    cmd.Parameters.AddWithValue("@notes", txtcomments.Text);
    cmd.Parameters.AddWithValue("@waredno",txtwaredno.Text);
    cmd.Parameters.AddWithValue("@wareddate", txtkitabno.Text);
    cmd.Parameters.AddWithValue("@ghaidno", txtgaidno.Text);
    cmd.Parameters.AddWithValue("@ghaiddate",txtghaiddate.Text);
    cmd.Parameters.AddWithValue("@jihtsdor",Rdsksource.SelectedValue);
    cmd.Parameters.AddWithValue("@job", txtsaderdate);
    int x =cmd.ExecuteNonQuery();
    any one could provide suggestion to solve this problem
    thanks

    Hello,
    I would like suggest you posting it to:
    http://www.telerik.com/support
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dynamically load content based on parameters

    Hi guys,
    I have a got a CQ design question here:
    We are building a site which will render various header, footer, list of products and some sections of the main body depending on a set of parameters.
    There are over 300 variations of these parameters, therefore we need to create a machnism which helps to determine what content/page to render at runtime.
    We have thought about couple solutions but still not having a clear idea how they will work in CQ:
    1. Use good old queryString, get the parse the queryString, then in the main jsp page, add some logic and decide which jsp to page to include. But this means we will need potentially hundreds if not thousands of jsp pages to render different content.
    2. Use dynamic selector to include dynamic content. But does that eliminate the need of hundreds of jsp pages?
    Also, in CQ, what is the best practice to store these parameters in http session? Or should they be stored in sling http session instead?
    Many thanks!!!

    If your page consists of a combination of distinct building blocks, and for each building block you have a small number a variantions (3-5), you could use SSI on the dispatcher webserver to build the complete page. Then each individual building block can be cached at the dispatcher, reducing the load on CQ5 publishing dramatically.
    cheers,
    Jörg

  • Crystal Report Viewer 2008, postback causes a weird QueryString for dates

    HI,
    I'm having a weird problem that was masked with the error "".
    What is happening to me is that i have an ASPX page where the QueryString passed in is used as parameters to the report (straightforward).  When the page first loads, this is all fine the QuerySTring is properly parsed and the report is properly displayed.  Now, the problem comes when i click on the PRINT Button it performs a postback, and during that postback the querystring is read so that it can rebuild the report on the postback.  (In previous versions of crystal, this has always worked).  The issue here is that the version 12 of the report viewer here now appears to also append some information to the query string that was not previously there (like this:  ServletTask=Print&cmd=get_pg&page=1)  So the problem here for me is this is what my original QueryString looks like:
    tokenid=b2817081-6b52-43c7-8e2c-d6209af2ed98&Type=Appointment&Val=12%3b1%3b1%3b06%2f10%2f2000
    THat query string is generated by the following code (pre-encoded)
    "PrintPage.aspx?tokenid=" & Guid.NewGuid.ToString & "&Type=Appointment&Val=" & "12" & ";" & "1" & ";" & "1" & ";" & "1/1/2000"  (NOTE the date here, i'll get to that in a second)
    Then, what the problem is on the postback the Query String looks like this:
    tokenid=2a4f42de-bd90-48b5-ac82-bd34b503afd3&Type=Appointment&Type=Appointment&Val=12%3b1%3b1%3b1%2f1%2fPrintPage.aspx%3ftokenid%3d2a4f42de-bd90-48b5-ac82-bd34b503afd3&Val=12%3b1%3b1%3b1%2f1%2f2000&ServletTask=Print&cmd=get_pg&page=1
    As you can see here it's all messed up.
    So, what i found here is that the underlying cause is that we are passing a "date" in the original QueryString and it seems on the postback the Crystal Reports Viewer is having some issue with that and basically messes up the query string...
    I have Crystal Reports 2008/SP3 installed.
    Any help would be greatly appreciated.
    Thanks

    Cleaning up these forums I came across this unanswered thread.
    Very weird behavior that I have seen maybe 3 or 4 years ago - I think it was with opendocument.aspx...
    In this case, we appear to be re-adding the querystring with the aspx name and question mark (u2026.parentagesu2026).  Having two question marks (%3f) is essentially a malformed URL since this indicates where the querystring starts.
    The duplicate querystring may have been a coding error(?) where it gets added again on a postback.
    Were you able to resolve the issue?
    Ludek

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Acrobat pro Extended | Passing variable value with Querystring

    Hi,
    We are facing issue with opening a web link with passing a variable value as query string parameter. We have added a form button on the pdf page, on click of it we have opened a web page and we want to pass a variable value in the query string. We can not give the hard code value in querystring, as the value keeps on changing.
    Please refer to the images below.
    here the data will be my variable name, which contains some value. When i execute it, it passes data as a string, i want to pass its value in the query string parameter. How i can do this?
    I had found one more way, is to call a function on the form button click, and in that pass the query string parameter as a variable, it works. But the problem in this case i am faceing is, in the app.launchURL command i have to provide a http path, means something like http://www.google.com, then only it works. I have that page on my local (no server), so i want to add the path as onlu page.html
    //Reference code, this fun will be called on a button click
    function LaunchPage()
        app.launchURL("http://www.aptara.com/page.html?value="+data+""); //this works
        app.launchURL("page.html?value="+data+""); //this dosent works
    Please do let me know, how i should proceed. To repeat, i want to invoke a page, which is on my local system with a querystring, in which i sud pass a variable value.
    Thanks,
    Ajit danve
    Sr. Developer
    Aptara, Pune.

    re: George Johnson
    Thank you for the response. This process that we are looking to do is necessary. We have 400+ OLD PDF forms that currently are printed by our print shop and then manually filled out and scanned into our system. The current process requires a clinician to log into our scanning system, identify a patient chart, and then identify the type of report they are scanning in. This process is time consuming with possibility of errors (wrong chart selected, wrong form, etc.). Plus, we have to stock up to 400 forms at each location.
    We don’t have the funds to convert 400+ complex forms into electronic submissions where the form fields are discrete and file accordingly. So, what we have come up with to save costs of a new system and reduce potential errors is to add a barcode to each existing form.
    Basically, each form will get a barcode and a javascript function in the onload event to process and parse passed in link parameters.
    So when a clinician clicks on a form link in our EMR system the form will load passing in the patient acct. number and form name into the link parameters (all on our local intranet) so it will get embedded into the barcode on the form. They will then print the form fill out the data (or have the patient fill it out) and then drop it in the scanner. Our scanning system will automatically see the barcode and file the form under the correct patient and form folder based on the barcode info. (A scanned image of the form will save to the patient profile).
    Ultimately we would like to convert all of these forms to electronic signature/submission but we do not have the funds or the time to do this.

  • Trouble integrating SAX parser in a servlet for mini search engine.

    OK, what I'm trying to do is to create a servlet that searches RSS feeds for titles that match the query, parses them using SAX, and writes them out to HTML, so that the user sees them. The problem is trying to get Ant to compile it since it appears that syntax errors are holding me back such as trying to use the out statements that are in the endElement and trying to find an algorithm that compares the search query with it's instance in the contents of the title tag. In other words, the search query seeks the contents in the title tag to see if there is an instance of the search query in it, so that it spits out the corresponding titles. Can someone please help me since I tried serching about this and came empty handed.
    P.S.: I started working with servlets for about a month now, thus my knowledge is pretty much limited. Also, how would I go about in using multiple feeds for searching particular titles?
    Here's the code:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.URL;
    import java.io.*;
    import java.util.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.*;
    public class SearchAndDeliver extends HttpServlet implements ContentHandler {
    String queryString=null;
    boolean inTitleElement;
    boolean inLinkElement;
    String title=null;
    String link=null;
    String comparison=null;
    java.io.PrintWriter out = response.getWriter();
         public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes atts)
              throws SAXException
                   if(localName.equals("title"))
                             title="";
                             inTitleElement=true;
                   if(localName.equals("link"))
                             link="";
                             inLinkElement=true;
              public void endElement(String namespaceURI, String localName, String qualifiedName)
                   if(localName.equals("title"))
                             System.out.println(title);
                             inTitleElement=false;
                   if(localName.equals("link"))
                             System.out.println(link);
                             inLinkElement=false;
                   comparison=title.indexOf(queryString);
                   try
                        if(queryString.equals(comparison))
                                  out.println("<a href=\""+link+"\""+">"+title+"</a><br>");
                        else
                                  out.println(" Your search of "+queryString+" produced no results.");
                   catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
              public void characters(char[] text, int start, int length)
              throws SAXException
                   if(inTitleElement)
                             title+=String.valueOf(text,start,length);
                   if(inLinkElement)
                             link+=String.valueOf(text,start,length);
              public void setDocumentLocator(Locator locator) {}
              public void startDocument()
              throws SAXException
                    inTitleElement=false;
                    inLinkElement=false;
              public void endDocument() {}
              public void startPrefixMapping(String prefix, String uri) {}
              public void endPrefixMapping(String prefix) {}
              public void ignorableWhitespace(char[] text, int start,int length) throws SAXException {}
              public void processingInstruction(String target, String data){}
              public void skippedEntity(String name){}
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException
                   //XMLReader parser=new SAXParser();
                   XMLReader parser=XMLReaderFactory.createXMLReader();
                   queryString = request.getParameter("query");
                   response.setContentType("text/html");
                   out.println("<html>");
                   out.println("<head>");
                   out.println("</head>");
                   out.println("<body>");
                   out.println("<h2>Headlines from The New York Times Arts Section.</h2>");
                   try
                        parser.setContentHandler(this);
                        parser.parse("http://www.nytimes.com/services/xml/rss/nyt/Arts.xml");
                   catch(SAXException e)
                             //System.out.println(args[0]+" is not well formed");
                             System.out.println(e.getMessage());
                   catch(IOException e)
                             System.out.println("Due to an IOException, the parser could not check"+parser);//I don't know what to make of this as well.
                   // do-nothing methods
                   out.println("</body>");
                   out.println("</html>");
                   out.close();
             public void doGet(HttpServletRequest request, HttpServletResponse response)
             throws ServletException, java.io.IOException
             doPost(request,response);
    }

    Here's the errors that I'm getting, and the rest are within the code since there's something wrong with the syntax and structure itself.
    ant
    Buildfile: build.xml
    prepare:
    compile:
    [javac] Compiling 1 source file to C:\Program Files\Apache Software Foundati
    on\Tomcat 5.0\webapps\searchanddeliver\build\WEB-INF\classes
    [javac] C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\searc
    handdeliver\src\SearchAndDeliver.java:20: cannot resolve symbol
    [javac] symbol : variable response
    [javac] location: class SearchAndDeliver
    [javac] java.io.PrintWriter out = response.getWriter();
    [javac] ^
    [javac] C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\searc
    handdeliver\src\SearchAndDeliver.java:48: incompatible types
    [javac] found : int
    [javac] required: java.lang.String
    [javac] comparison=title.indexOf(querySt
    ring);
    [javac] ^
    [javac] 2 errors

  • Urgent :How to get values after parsing

    Hi ..
    I am using SAX parser for parsing a xml document.
    After parsing i want to get the valuse to make a jsp page. how do i get the Values after parsing.
    the code i am working on is:
    import java.util.*;
    import java.lang.*;
    import java.io.*;
    import java.io.IOException;
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class performDemo
    public static void main(String args[]) throws Exception
         performDemo p =new performDemo();
         p.performDemo(args[0]);
    public void performDemo(String uri)
    System.out.println("Parsing XML File: " + uri + "\n\n");
    try {
    XMLReader parser = new SAXParser();
    ContentHandler contentHandler = new MyContentHandler();
    parser.setContentHandler(contentHandler);
    parser.parse(uri);
    } //try ends here
    catch (IOException e)
    System.out.println("Error reading URI: " + e.getMessage());
         } //catch ends here
    catch (SAXException e)
    System.out.println("Error in parsing: " + e.getMessage());
    } //catch ends here
    } //function ends here
    class MyContentHandler implements ContentHandler {
    private Locator locator;
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    this.locator = locator;
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    PLese suggests.

    Dear Gaurav
    Please consider the blow JSP CODE:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" autoFlush="true" session="true" buffer="8kb"%>
    <HTML>
    <HEAD>
    <TITLE> SAX PARSER BEAN</TITLE>
    </HEAD>
    <BODY>
    <jsp:useBean id="p" class="sax.performDemo" scope="page"/>
    <%
    String file = request.getParameter("loc");
    String xpath = request.getParameter("xpath");
    %>
    <br> In <%=file%> and for <%=xpath%> is <br> <%=p.performDemo(file,xpath)%>
    <br><br>Node Names: <%=p.getNodes()%>
    <br><br>AttNames: <%=p.getAttNames()%>
    <br><br>AttValues: <%=p.getAttValues()%>
    <br><br><%=p.clearAll()%>
    </BODY>
    </HTML>
    THIS IS CORRESPONDING SAX BEAN TO THE ABOVE JSP CODE
    I am using "sax" package. PLease make changes accordingly.
    package sax;
    import java.util.*;
    import java.lang.*;
    import java.io.*;
    import java.io.IOException;
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class performDemo
    public static ArrayList NodeNames = new ArrayList();
    public static ArrayList attNames = new ArrayList();
    public static ArrayList attValues = new ArrayList();
    public static String QueryString="",QString1="", QString2="",start="",end="";
    public static boolean start_collecting=false;
    public static void main(String args[]) throws Exception
    performDemo p =new performDemo();
    System.out.println("\nResult: "+p.performDemo(args[0],args[1]));
    System.out.println("\nNodes "+p.getNodes());
    System.out.println("\nAttNames "+p.getAttNames());
    System.out.println("\nAttValues "+p.getAttValues());
    public String performDemo(String uri,String xpath)
    //System.out.println("Parsing XML File: " + uri + "\n\n");
    QueryString=xpath;
    StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
    if(QueryString_ST!=null)
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
    try
    XMLReader parser = new SAXParser();
    ContentHandler contentHandler = new MyContentHandler();
    parser.setContentHandler(contentHandler);
    parser.parse(uri);
    return("Given File Parsed Successfully!");
    } //try ends here
    catch (IOException e)
    //System.out.println("Error reading URI: " + e.getMessage());
    return("IO Exception Occured!! \n \n Check the file name and path");
    } //catch ends here
    catch (SAXException e)
    //System.out.println("Error in parsing: " + e.getMessage());
    return("SAX Exception Occured!!! \n \n Check the xpath ");
    } //catch ends here
    } //function ends here
    public ArrayList getNodes()
    return NodeNames;
    public ArrayList getAttNames()
    return attNames;
    public ArrayList getAttValues()
    return attValues;
    public String clearAll()
    NodeNames.clear();
    attNames.clear();
    attValues.clear();
    return("Cleared!!");
    class MyContentHandler extends performDemo implements ContentHandler {
    private Locator locator;
    public void setDocumentLocator(Locator locator) {
    //System.out.println(" * setDocumentLocator() called");
    this.locator = locator;
    public void startDocument() throws SAXException {
    //System.out.println("Parsing begins...");
    public void endDocument() throws SAXException {
    //System.out.println("...Parsing ends.");
    public void processingInstruction(String target, String data)
    throws SAXException {
    //System.out.println("PI: Target:" + target + " and Data:" + data);
    public void startPrefixMapping(String prefix, String uri) {
    //System.out.println("Mapping starts for prefix " + prefix + " mapped to URI " + uri);
    public void endPrefixMapping(String prefix) {
    //System.out.println("Mapping ends for prefix " + prefix);
    public void startElement(String namespaceURI, String localName,String rawName, Attributes atts)throws SAXException
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
                   if(start_collecting)
    if((atts.getLength())>1)
                   NodeNames.add(localName);
                   for(int i=0;i<=(atts.getLength()-1);i++)
              attNames.add((String)atts.getLocalName(i));
              attValues.add((String)atts.getValue(i));
    //System.out.print("startElement: " + localName);
    //if (!namespaceURI.equals("")) {
    ////System.out.println(" in namespace " + namespaceURI + " (" + rawName + ")");
    //} else {
    //System.out.println(" has no associated namespace");
    //for (int i=0; i<atts.getLength(); i++)
    //System.out.println(" Attribute: " + atts.getLocalName(i) +"=" + atts.getValue(i));
    public void endElement(String namespaceURI, String localName,String rawName) throws SAXException
         end=localName;
         if(end.equals(QString2))
              start_collecting=false;
    //System.out.println("endElement: " + localName + "\n");
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    //System.out.println("characters: " + s);
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    //System.out.println("ignorableWhitespace: [" + s + "]");
    public void skippedEntity(String name) throws SAXException
    //System.out.println("Skipping entity " + name);
    Cheers....!!
    Newton
    Bangalore, INDIA

  • Exeption in SAP Application Integrator occured: Unable to parse template

    Dear readers,
    When I'm trying to acces some of the Manager Self Services Iviews or pages in the SAP EP, I get the following error message:
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template
    complete log:
    Error message
    Location: com.sap.portal.prt.runtime
    11:41_16/01/09_0001_6564750
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template &#39;&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;/sap/bc/webdynpro/&lt;WebDynproNamespace&gt;/&lt;WebDynproApplication&gt;/;sap-ext-sid=&lt;ESID[url_ENCODE]&gt;?sap-ep-iviewhandle=007&lt;ESID[HASH]&gt;&amp;sap-wd-configId=&lt;WebDynproConfiguration&gt;&amp;sap-ep-iviewid=&lt;IView.ShortID&gt;&amp;sap-ep-pcdunit=&lt;IView.PCDUnit.ShortID&gt;&amp;sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-ep-version=&lt;Portal.Version[url_ENCODE]&gt;&amp;&lt;ProducerInfo&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;&lt;StylesheetIntegration[IF_true PROCESS_RECURSIVE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;&#39;; the problem occured at position 310. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:123)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    I guess this has something  to do with authorizations or portal permissions ? Can anyone help me with this problem?

    Enabled the Services due to transaction SICF, now I'm getting to following message:
    Error when processing your request
    What has happened?
    The URL http://nldbpd00.phobos-servicenet.nl:8010/sap/bc/webdynpro/sap/UMB_BSC_MY_ELEM/ was not called due to an error.
    Note
    The following error text was processed in the system DV0 : WebDynpro Exception: ICF service node "/sap/public/bc/icons" is not active (see SAP Note 517484)
    The error occurred on the application server nldbpd00_DV0_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: STARTUP_CHECKS of program CL_WDR_UCF====================CP
    Method: CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: CREATE of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DV0 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server nldbpd00_DV0_01 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server nldbpd00_DV0_01 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Seems to be work for an ABAP-er.

  • Sharepoint 2013: Url parameters not parsed?

    Hi and goodmorning,
    I'm here asking for your kind help (sorry for my bad english): I'm deploying an internal portal for a non-profit association:
    we have Sharepoint 2013.. and everything I did in the past with 2010 with no problems.. now seems to be much more complicated.
    What I have is:
    an external list from a sql server (list is displaying correctly)
    In the content type I defined a field as filter "CercaNome" (it's a sql field)
    in my default view list"lista.aspx" I created a parameter:
    <ParameterBinding Name="FltNome" Location="QueryString(FltNome)" DefaultValue=""/>
    4. and a filter:
    <Method Name="Insoluti40Read List">
    <Filter Name="CercaNominativo" Value="*{FltNome}*"/>
    </Method>
    What I expect is that calling the page with: lista.aspx?FltNome=ADA  to have all record containing "ADA" in "CercaNome" field, instead I receive always all record (filter is not applied)
    If in the  FltNome parameter binding  I put DefaultValue="ADA" and i call
    the page lista.aspx with no parameters, it returns the correct dataset (only records containings "ADA" ) and this means that filter work correctly but the querystring instead is not parsed.
    Anyone can help?
    thanks

    Hi ,
    This should help you
    http://blog.pentalogic.net/2014/05/sharepoint-designer-2013-how-to-modify-list-view-filters-parameters/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Multiple Source parameter in QueryString

    Hi Experts,
    I am having a Page with a Default list view of a custom list. With jquery i relink the click on the edit-button to a custom Edit-Form and i add the Source to the QueryString, like so:
    var myList = $('a[href*="84858E12"]');
    if(myList)
    myList.each(function ()
    var att = $(this).attr('onclick');
    if(att)
    if(att.match(/ID=([0-9]*)/))
    var id = $(this).attr('onclick').match(/ID=([0-9]*)/)[1];
    var bo = $(this).closest('td').next('td').next('td').find('a').text();
    $(this).removeAttr('onclick');
    $(this).attr('href', '/Lists/myList/Edit.aspx?ID=' + id + "&BO=" + bo + "&InitialTabID=Ribbon.Read");
    $(this).attr('onclick', 'GoToLink(this);return false;');
    So my starting page was http://xxx.com/Seiten/acm.aspx
    Then when i click to edit my custom Form comes up and URL is:
    http://xxx.com/Lists/myList/Edit.aspx?ID=80&BO=LE/2014/2000080&InitialTabID=Ribbon.Read&Source=http%3A%2F%2Fxxxt%2Ecom%2FSeiten%2Facm%2Easpx
    This custom Edit-Form has a list view Webpart on the bottom to show related data from another list. Also here i relinked the edit button to a custom edit form of that list, like so:
    var hu = window.location.href;
    var gy = hu.split("&");
    var source =gy[0]; var orgurl = hu;
    var com = $("a[href*='ListId=%7B636BE5B5%2D8BD7%2D4CC0%2D9856%2DAF1A0F272C97%7D']");
    if(com)
    com.each(function ()
    $(this).removeAttr("onclick");
    $(this).click(function(e)
    e.preventDefault();
    var currentid = $(this).attr('href').match(/ID=([0-9]*)/)[1];
    var encbo = getBO();
    $s = "/Lists/many/Edit.aspx?ID=" + currentid + "&BO=" + encbo + "&InitialTabID=Ribbon.Read" + "&Source=" + source + "%26BO=" + encbo + "%26InitialTabID=Ribbon.Read";
    location.href = $s;
    So when i click i go to the related data edit form, URL is:
    http://xxx.com/Lists/many/Edit.aspx?ID=94&BO=LE/2014/2000080&InitialTabID=Ribbon.Read&Source=http://xxx.com/Lists/myList/Edit.aspx?ID=80%26BO=LE/2014/2000080%26InitialTabID=Ribbon.Read
    When i save or cancel i will come back where i came from (works great!) but then my origin starting URL (http://xxx.com/Seiten/acm.aspx) is not there as the Source Portion of the QueryString (And until now i didn't
    set it somewhere). So when i now click cancel or save (I am in the first custom edit form) I am at the Default AllItems.aspx and not where i started from.
    So i tried to add a second Source Portion to the Source, like so:
    $s = "/Lists/xxx/Edit.aspx?ID=" + currentid + "&BO=" + encbo + "&InitialTabID=Ribbon.Read" + "&Source="
    + source + "%26BO=" + encbo + "%26InitialTabID=Ribbon.Read"
    + "%26Source=" + orgurl;
    This will not work! -SharePoint does not parse the 2nd Source Portion and adds a comma into the QueryString.
    Does anybody know how to get around this?
    Thanks, Ronny

    Hi Ronny,
    According to your description, my understanding is that you want to pass multiple Source parameters in Query String.
    Per my knowledge, the full URL should be http://xxx.com/Lists/many/Edit.aspx?ID=94&BO=LE/2014/2000080&InitialTabID=Ribbon.Read&Source=http://xxx.com/Lists/myList/Edit.aspx?ID=80%26BO=LE/2014/2000080%26InitialTabID=Ribbon.Read%26Source=http%3A%2F%2Fxxxt%2Ecom%2FSeiten%2Facm%2Easpx
    based on your need.
    The second ‘&Source’ should be replaced with ‘%26Source’ and then the URL can work.
    Please test with the URL above in the browser directly to see if the issue still occurs.
    If not, please check if there is anything incorrect in your code.
    More information are provided in the link below:
    http://raymondlittle.wordpress.com/2011/10/13/passing-source-querystring-value-which-contains-multiple-querystring-values-to-an-display-edit-or-new-list-item-forms/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Brand new MBP and the user directory is corrupt?

    hi, i just installd my new MBP and did a sync of my G5 settings (all except bookmarks) added a few things to my desktop and when i rebooted the desktop was cleared and the home directory was missing "Movies" "Music" "Pictures" in the left most column

  • IWeb pages reverting to older version- not a browser issue, deleting prefs/caches no help

    Hi everyone, forgive me if this is a newb question but I've scoured the internet for answers and all of them I've already tried with no luck. I'm using iWeb and encountering a problem that has me completely stumped. I'm trying to publish changes to m

  • How does one remove a author of a doc

    Hello I purchased a health intake form from someone and all I want is that person to be removed as author so she isnt able to see my clients information. I paid for the form not her being on it.

  • New Mac - Does Migration Assistant Step On New iLife?

    Greetings! I'm fortunate to take delivery of a new iMac this afternoon. I plan on using the Migration Assistant to migrate from my old iMac. I have iLife '09, and was wondering if during the migration process if selecting Applications will overwrite

  • How do I backup all my files if my Macbook won't start up?

    So a few days ago, my dad and I got into a fight - he reacted by pouring coffee all over my macbook, then continuously slammed it on the floor. There wasn't really much I could do for my macbook then, except the basic procedure of powering it off, tu