Need help in retrieving a varchar in a web application.

HI,
I need a urgent help in selecting a varchar column on to the web application.
Here are I am using the DB as MSSQL. I can see more than 1000 characters when I open the table in Enterprise Manager, but the same query if I excute in SQL Query Analyser, I see the result with only 256 characters. In the same way my Java application is working. In my DB table I have a column with nvarchar and I want to write to code to get that infomration of 2000characters on to the web page.
Can any one of you help me out.
You can reach me at [email protected]
Thank You
Neelima

However, the interesting thing here is that the SQL
analyzer displays the same 256 charater for the select statement...So you see 1000 using one MS tool and 256 using another tool? And neither of these have anything to do with java.
Hmmm.....to me that suggests that it has nothing to do with java.
If it was me I would start looking at my assumptions about where the data is coming from:
-Is it the same database?
-Is it the same table?
-Is it the same row?
-Is it the same field?
-Is something modifying it while I am looking at it?

Similar Messages

  • Need help in reporting of protected resources in web application

    Hi,
    I am using form based authentication for viewing protected resources of my web application. By j_security_check, it authenticates the user and if authentication is successful, then user can view protected resources of the site.
    Now I want to generate a report of which protected resources are accessed by which user along with its timestamp.
    Now my question is can I generate this report by j_security_check. I am not sure how should I call my ReportingDAO from web tier as with j_security_check the whole authentication is done by container itself.
    Thanks

    This is what I have done for form based authentication...
    <security-constraint>
          <display-name>Example Security Constraint</display-name>
          <web-resource-collection>
             <web-resource-name>Protected Area</web-resource-name>
          <!-- Define the context-relative URL(s) to be protected -->
          <url-pattern>/pdfs/*</url-pattern>
          <!-- If you list http methods, only those methods are protected -->
          <http-method>DELETE</http-method>
             <http-method>GET</http-method>
             <http-method>POST</http-method>
          <http-method>PUT</http-method>
          </web-resource-collection>
          <auth-constraint>
             <!-- Anyone with one of the listed roles may access this area -->
             <role-name>manager</role-name>
             <role-name>user</role-name>        
          <role-name>admin</role-name>
          </auth-constraint>
        </security-constraint>
        <!-- Default login configuration uses form-based authentication -->
        <login-config>
          <auth-method>FORM</auth-method>
          <realm-name>Example Form-Based Authentication Area</realm-name>
          <form-login-config>
            <form-login-page>/registration/login.jsp</form-login-page>
            <form-error-page>/registration/login_error.jsp</form-error-page>
          </form-login-config>
        </login-config>Now, if user is not authenticated, login page opens. In login.jsp, I have a form whose action I have set to j_security_check. Form fields are j_user_name and j_password.
    <filter>
        <filter-name>LoginFilter</filter-name>
        <filter-class>com.filters.LoginFilter</filter-class>
        </filter>
    <filter-mapping>
        <filter-name>LoginFilter</filter-name>
        <url-pattern>/j_security_check</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
      </filter-mapping>I mapped a login filter with the url pattern /j_security_check. So from login.jsp, when user submits the login page, Login filter should be called.
    I don't know why my LoginFilter is not called? Filter gets called only when I change url-pattern of LoginFilter to /pdfs/* (i.e., same as the url patter n of the protected resource)
    Can anyone please help me in this regard
    I am deploying my web application on tomcat. Is it a bug of tomcat?
    Thanks

  • I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.

    I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.  I have gone to my app folder and tried to update my iPhoto Library.  I have gone to my trash and brought it over to my desktop and still cannot use it.  Please help!

    Try this fix discovered by User photosb189:
    From Finder, hold down the option key on your keyboard and click on the Go menu at the top of the screen
    Select Library from the drop down menu
    Then navigate to Application Support > iLifeAssetManagement > assets
    Right click on the 'sub' folder and choose Compress
    Drag the resulting zip file to your Desktop (as a backup)
    Go to your System Preferences and choose iCloud
    Turn OFF the iCloud Photos option
    Go back to Library > Application Support and DELETE the iLifeAssetManagement folder
    Now, in System Preferences, turn the iCloud Photos option ON
    iPhoto should now be able to launch. Give it enough time to re-download your Photo Stream content. if you are missing any of your My Photo Stream photos (more than 30 days old), unzip the sub folder on your desktop and drag that into iPhoto.

  • Hello, I need help to retrieve deleted information to partition an external hard drive. What should I do?

    Hello, I need help to retrieve deleted information to partition an external hard drive. What should I do?

    I'm not about the question, and giving you the right answer requires me to ask a few more questions.
    Do you want to retrieve deleted information for future usage, or to completely delete a partition? The latter is straightforward: simply erase the partition. The former is more complicated: it's very difficult, even using available commercial software, to recover deleted information. If the data is important, you may want to contact a professional like DriveSavers. It won't be cheap.

  • I need help whenever I want to install a new application I receive a message that I cannot be connected to I tunes store although I am connected to the Internet Help

    I need help whenever I want to install a new application I receive a message that I cannot be connected to I tunes store although I am connected to the Internet Help

    Click here and follow the instructions to change the iTunes Store country.
    (85848)

  • HT1338 II need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible? need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible?

    II need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible?

    MadMAC0 posted at https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182 that:
    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • I need help with retrieving my security questions

    Hi i need help please!! Im desperate!!
    Everytime i log on apple and try to change my security questions. It takes me back to the log in page as soon as i press on password and security tab and i get this message ( an unknown error has occured ) i really dont know what to do i am not able to buy anything on app store because everytime i try to purchase it asks for my security questions which i have forgotten... I live in egypt btw. And i almost exceeded my security questions attempts :S.
    Help would be much appreciated thank you ;)

    Read this about how to change the security questions: http://support.apple.com/kb/HT5312
    If you can't use these procedures contact Apple. See http://support.apple.com/kb/HT5699
    You can also call your country number from http://support.apple.com/kb/HE57 and ask to speak with Account Security.
    You can also go to the ExpressLane at https://expresslane.apple.com and then iTunes > iTunes Store > Password and Security Questions and fill out the form.

  • Need Help in the installation of p6 v7 web access on weblogic

    Hello all
    i have a problem and i need help .. when i installed the Web Access on web-logic the state of the deployed application is failed i've installed it several times and the state is still failed
    i checked the configuration on page 160 on the admin guide and i did everything as stated in the guide
    i don't know what is the problem can any body help me
    thanks alot
    Edited by: 796239 on Oct 13, 2010 1:25 AM

    Hello Lin,
    I am not able to understand anything from the error message which you have pasted. But I have successfully deployed the primavera web access for company.
    I have written down the steps properly using some images also for my future reference in a M.S. Word document.
    If you want I can send the document to you which I am sure will help you. You let me know your mail id.
    Regards
    Hawker

  • Need information about Pricing details of deploying the web application in Amazon EC2 cloud and deploying procedure clearly

    Can anybody give in detail explanation about deploying the asp.net web application into Amazon Cloud, which is using SQL Server as a database. I want the pricing information about the Amazon Cloud.
    Before that this web application is used in Intranet environment.
    Regards,
    Hanife

    "explanation about deploying the asp.net web application into Amazon Cloud,"
    You'll need to contact Amazon tech support for that information.
    "I want the pricing information about the Amazon Cloud."
    Again, only Amazon can give you definitive pricing information. Start here:
    http://aws.amazon.com/
    Thanks for understanding.

  • Need help in retrieving data from database table

    Hi ,
    I have a Ztable with primary key.The table gets automatically sorted on primary key
    But I want to retrieve the ztable data in the order in which i enter data in to table.
    EXAMPLE :
    I enter data as : mydata
                            action
                            welcome
    When i retrieve this data  internal table should be filled in the same order.
    Your inputs will be very helpful.
    Thanks in advance.

    You will need to change your table to use a number as the first key field (after the client) which you increase by 1 each time you make a new entry.  Alternatively you can add a data/time stamp to the end of your table and use this to sort your internal table once you've extracted the records.
    Regards,
    Nick

  • Need help for retrieving parameter containing "\" char from ServletRequest

    I'm implementing a portal using Jetspeed 1.4, and I would like to include the "\" character in the login name of a HTML form like below:
    login_name=INTRANET\Guest
    And in many parts of the programs, it needs to interpret the path to identify the login name via the code segments below:
    StringTokenizer st = new StringTokenizer(req.getPathInfo(), "/");
    boolean name = true;
    String pathPart = null;
    while (st.hasMoreTokens()) {
    if (name == true) {
    tmp = URLDecoder.decode(st.nextToken());
    name = false;
    else {
    pathPart = URLDecoder.decode(st.nextToken());
    if (tmp.length() != 0) {
    /* start debug */
    System.out.println(pathPart);
    /* end debug */
    add(convert(tmp), pathPart);
    name = true;
    I expect that I should be able to be retrieved the login name as INTRANET\Guest. However, this is not the case, and I got INTRANET/Guest instead. By looking at the value of req.getPathInfo() of the 1st line, the path has already been wrongly interpreted as:
    /media-type/html/user/INTRANET/Guest/page/...
    Is there any way I can get the same parameter if "/" character is included? On the other hand, I want to reference the source code of Servlet 2.2 or above, but I can't find it available from java.sun.com, while the only v2.1.1 available here is simply a rubbish. Please help.
    Thank you for your attention.

    Thank you for your reply. However, because I'm trying to modify the open source, and the login name is hard-coded appended into the path, where effort modifying this is very huge. It will be very convenient if I ca n find an alternative to get the value of getPathInfo() but with "\", or I can reach the source code and modify it straightly.
    However, I can't imagine even Servlet 2.2+ source code (2.1.1 is available, but no use) is not made available by anywhere of java.sun.com, including the SCSL. What's so-called open source?!

  • Canon EOS Camera T3- took pictures, but not seeing it on viewer? Need Help to retrieve.

    Hello Everyone, 
    I am new to this forum, so I hope you can help.  I recently took pictures on my Canon EOS T3 camera.  
    Questions:
    The camera was giving me a sound as if it was taking the picture, but unfortunately, when I try to locate it on the preview viewer, I could not find it.  
    As well, I also took a few pictures, and saw them  on the viewer,but can't retrieve them on my computer. 
    I would appreciate any assitance you can provide to me. 
    I await your response, 
    Cheers, 
    nshah123

    You probably need a new SD card.  At any rate you need to try one and see if that is the problem,
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • Need help on retrieving query result - NPE

    Hi, I could get results with the native query in my TOAD, but I can't get it working in my session EJB. I tried both native query and EJB ql. The query created fine, as soon as I try to retrieve results, it gets stuck.
    My native query looks like this:
    Query query = em.createNativeQuery("select sum(o.amount_reimbursed) from t_expenses o where o.employee_id = '999999911' " +
    "and o.EXPENSE_ID in (select p.expense_id from T_Per_Diem_Xref p where p.expense_Type_Xref_Id=22 " +
    "and p.expense_Id in (select e.expense_Id from T_Expenses e where e.employee_Id='999999911' " +
    "and e.expense_date > to_date('01/01/2011', 'mm/dd/yyyy') and e.expense_date < to_date('12/31/2011', 'mm/dd/yyyy')))") ;
    My EJB query looks like this:
    Query query = em.createQuery("select sum(o.amountReimbursed) from TExpenses o where o.employeeId = ?1 " +
    "and o.expenseId in (select p.expenseId from TPerDiemXref p where p.expenseTypeXrefId=?2 " +
    "and p.expenseId in (select e.expenseId from TExpenses e where e.employeeId=?1 and e.expenseDate>=?3 and e.expenseDate<=?4))");
    query.setParameter(1, employeeId);
    query.setParameter(2, expenseType);
    query.setParameter(3, fDay, TemporalType.TIMESTAMP);
    query.setParameter(4, lDay, TemporalType.TIMESTAMP);
    Either one, I get NPE at the line retrieve result.
    // sumAmt = (Double)query.getSingleResult();
    List list = query.getResultList();
    if (list != null) {
    long longAmt = (Long)list.get(0);
    sumAmt = (Double)list.get(0);
    As you can see, I tried to getSingleResult, or getResultList. also tried to convert the result to Double or Long. None worked.
    Please help and thank you for your time.
    Sophia

    Frank, thank you for your reply. I have this code in my session Facade EJB, and I get the NPE in my backing bean which calls this method. When I debug the code, it appears what really cuases the problem is in this code on the line I try to assign the query result to my variable 'sumAmt = (Double)query.getSingleResult();'. In the debug, when it reaches this line, it starts to give me all kinds of pop-up windows saying couldn't find this file or that file or packages. If I get a stack trace later, I will post it. Right now I am trying to fix something else.
    Thanks, Sophia

  • Laptop broken and music deleted from iphone5  - I need help to retrieve itunes?

    My old laptop has broken and at the same time my music has been deleted from my iphone5 (silly mistake by my husband to free more space for newborn photos!). I am not very technologically advanced with this sort of thing - can anyone tell me if it is possible for me to retrieve my itunes somehow? I can use another laptop. My itunes library was made up of a mixture of imported CDs and tunes purchased from itunes store. Just music on there. Any help greatly appreciated.

    Depends on exactly what happened to the old laptop, but it may well be possible to extract the drive, put it in an enclosure, then retrieve your iTunes library and other data from it.
    tt2

  • Need help to retrieve my iphone files

    my iphone wasn't synch regularly and i usually doing manually transferring photos and music to my computer.
    now, i lost some of my recent photos, messages, and ALL my downloaded/purchased apps and files in my iPhone after software update.
    Is there any way i can retrieve it? Please Help..

    Your data is only where you put it.   It is your responsibility to backup your content.
    Nothing should only be on the iPhone.
    Everything should live on your computer/cloud service.  The iPhone just allows it to be portable.
    As provided, you can redownload some iTunes purchases in some countries.

Maybe you are looking for

  • HP LaserJet M1120n Multifunction Printer, control panel display

    Hi, Yesterday here was an electrisity cut. After that all devices worked normally, except the printer. Control panel display of the printer was out of function and control panel buttons  didn't work. I turned  the printer off and waited some time. Af

  • Windows 8.1 Data reordering issue with Intel Adaptors

    According to Intel, there is a data reordering issue with their adaptors and probably this dumb WIDI software. This is from Intel site. they say some are fixed, "A future Windows 8 fix will address this issue for other Intel wireless adapters." I hav

  • Where to upload custom JACC provider jar for AS9.1 (Glassfish V2 Beta 1)?

    Hello, as I do have some issues with SOAPMessage object on AS9.0U1 as described here: http://forum.java.sun.com/thread.jspa?threadID=5162508 I'm also trying to duplicate this issue on AS9.1 (Glassfish V2 Beta 1). At the first I need to deploy our cus

  • TOAD ERROR : OCI version 10.2.0.1.0 is not supported

    Hi all, Previously i have oracle 9i in my system, now i installed oracle 10.2.., after this when i am trying to retrieve data from tables im getting this error "OCI version 10.2.0.1.0 is not supported". Please help me how can i solve this problem. Th

  • Vista, PSE 11, Epson R3000

    After printing a picture, cannot print a second picture.  Message:"There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents"  This does not occur with PSE 9