Problems faced when using JSTL

Hi all,
I am a beginner in using JSTL 1.1 tag library in my web application and I got problems when I was dealing with it. The problem is, how can I pass the form bean parameter value (e.g. ArrayList) into the core tag? What should I do before defining the <c:forEach/> and the attributes I should defined inside the tag? I am confused with them. Could anyone have suggestions? Please do shout. Many thanks!
Van

JSTL works with JSF only in particular circumstances. Those are some guides about this topic:
http://jsffaq.com/Wiki.jsp?page=DoJSTLAndJSFCanBeUsedTogether
http://jsffaq.com/Wiki.jsp?page=IsItPossibleToUseJSTLsCForEachWithFacesContext
http://jsffaq.com/Wiki.jsp?page=IsItPossibleToUseJSTLsConditionalTagsWithFacesContext
Sergey : http://jsfTutorials.net

Similar Messages

  • Problems faced when using xsl:include and extension functions

    I am Working in XML and XSLT using Oracle's XML Parser V2.
    Previously i had worked in Microsoft technology using MSXMLParser.
    I am facing some problems in XSLT. They are as below...
    1. Using <xsl-include href="Somexsl.xsl">
    the oraclexmlparser processor is giving the error : XSL-1002: Error while processing include XSL file (no protocol: Submenu.xsl).
    * Can u tell me why i am getting this error, and what is the fix for this.
    The same case with <xsl:import> too.
    2. In case i have to write some functions in the previous WD of xsl i used these statements
    <?xml version='1.0'?>
    <!DOCTYPE PageRoot SYSTEM "../../Common/dtd/PageNavBar.dtd">
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/TR/WD-xsl"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    result-ns="">
    <xsl:script xmlns:xsl="uri:xsl"><![CDATA[
    var strWebContentPath = "/SurSITE/Content/";
    var strWebImagePath = "/SurSITE/sursitegraphics/";
    function IncScript()
    return "<script language='javascript' src='/SurSITE/Includes/avalidations.js'></script>";
    ]]>
    </xsl:script>
    To call the function i used this
    <xsl:eval no-entities='true'> IncScript();</xsl:eval>
    * Can u tell me how do i do this now, i tried with the code above using the current name space (<xsl:stylesheet version="1.1"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />)
    Please use the example given above.
    I will be very greatfull to u if u can give me some suggestion or help for the above said problems.
    Thanking you and eagerly waiting for your reply(s).
    null

    The current version is "1.0" not "1.1"
    You haven't included the code for what your <xsl:include>
    statement looks like, which seems to be what it's complaining
    about...
    XSLT 1.0 has no <xsl:eval>, this is a microsoft specific tag
    from a pre-XSLT-1.0 version.
    XSLT 1.0 has no <xsl:script> element either.

  • Problem faced when using calculated field as filter

    Iam using an Oracle External Data Source.The external table contains a timestamp field and I add this to my data object.The year,month etc. functions work well on this field and results appear on list views.But when I try to generate a filter for this field and display the view I get errors.
    SQLSYNTAXERROREXCEPTION_REPORTSERVER_STREAMINGLIST_INITIALIZE
    Exception Message ORA-00904: "MONTH": invalid identifier
    So,I tried out with the call center data object found in bam samples.This had a datetime field.Filters on calculated fields work fine here.
    Is the former problem due to timestamp datatype or external datasource or anything else?
    Thanks,
    Raghuram

    Answer to following questions will help me narrow down the problem:
    1. Which version of BAM are you on - 10g or 11g?
    2. What condition are you using in filter i.e. "is equal to", "is less than equal to", "is like"...etc?
    3. In which format is the timestamp data being given in the filter? (by format, I mean mm-dd-yy HH:MM:SS etc)
    4. Can you give the exact datatype of the DB in which this timestamp data is stored?

  • I am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    i am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    If you refer to this
    https://www.iepdirect.com/iepdotnet/hub/index.html
    then they have an issue with mac version.
    At a first glance, their website is optimized for Windows only, it displays badly in Safari, perhaps it would be better in Firefox or other browser.

  • Problems occured when using BAPI_INSPECTIONPLAN_CREATE

    hi,guys!
    please help!
    problems occurred when using BAPI_INSPECTIONPLAN_CREATE to create inspection plans.
    problems as belows:
    This inspection point completion is not possible for task list type Q;
    Consistency check not successful when creating operation;
    Inspection characteristic cannot be uniquely assigned to one operation.

    Hi Alex,
    There must be some data issue.
    Just try to create the Inspection plan without BAPI i.e. using the transaction for the data you have and see whats happening.
    Regards,
    Atish

  • Problem encountered when using RKD_WORD_WRAP

    Hi all,
    I have encountered a problem when using RKD_WORD_WRAP. The problem is that the paragraph is not being formatted nicely when i try to printout in Smartforms.
    Eg is that I want to format this paragraph;
    "Text Conversion: Convert Text Formats
    The function module CONVERT_TEXT provides the
    following format conversion options:"
    However, when I output it out, the text was being displayed like this;
    "Text Conversion: Convert Text Formats
    The function module CONVERT_TEXT provides
    the
    following format conversion options:"
    The problem is that even though after the "the" word, although that line still has some spaces, thecorresponsing words just wont get concatenate to the 2nd line (as seen above).
    Is there any way to fix this?? Or is there a standard value to be use for the outputlens parameter so that the above situation will not occurs??

    Check the below program and output :
    report ztest_ytt.
    data input type string.
    data SWASTRTAB like SWASTRTAB occurs 0 with header line.
    start-of-selection.
    input = 'The function module SWA_STRING_SPLIT that you have said is not
    working successfully. It is still giving me the same problem where it is
    appending a new line where there is still enough space for the word on
    the current line'.
    CALL FUNCTION 'SWA_STRING_SPLIT'
      EXPORTING
        INPUT_STRING                       = input
       MAX_COMPONENT_LENGTH               = 100
      TERMINATING_SEPARATORS             =
      OPENING_SEPARATORS                 =
      TABLES
        STRING_COMPONENTS                  = SWASTRTAB
    EXCEPTIONS
       MAX_COMPONENT_LENGTH_INVALID       = 1
       OTHERS                             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at SWASTRTAB.
    write:/ SWASTRTAB-STR.
    endloop.
    This is output :
    The function module SWA_STRING_SPLIT that you have said is not working successfully. It is still       
    giving me the same problem where it is appending a new line where there is still enough space for      
    the word on the current line                                                                               
    Suppose you want to print 100 charcters in each line .. upto 95 charcters you have words perfectly the next will start at 97th ,so here word is <b>' Function'</b>
    so this word will not fit into that line since you have 4 charcters,Function word is containg 8 charcters,this word will come in next line.
    Check the program and give what ever input and see the results.
    Thanks
    Seshu

  • Problem Tranforming xml using jstl

    Hello To Every One
    I have transformed xml document using servlet now i need to know how can i transform xml document using jstl. I have found this code very often but it doesn't work with a relative or absolute url. I need to pass parameters dynamically.
    <c:import var="xml" url="<%=xmlFile%>" />
    <c:import var="xslt" url="<%=xsltFile%>" />
    <x:transform xml="${xml}" xslt="${xslt}" />In this code I have to pass xmlFile and xsltFile parameter dynamically and i want to make it as session variables. When i put relative url in *<c: import >* tag it works fine but for absolute url it does not work. Although I doesnot want to pass absolute url but relative ones, but how can i achieve that one.
    E.G.
    <x:transform xml="relative url for xmlfile" xslt="relative url for xslt file" />If anyone have the solution please reply me as soon as possible. Thanx in Advance for your kind Attention.

    Thanx for your answer This is my Code which works fine.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
      <head>
      </head>
      <body>
        <form method="post">
       <c:import var="xml" url="..\\data\\192.168.1.94\\master.xml" />
    <c:import var="xslt" url="..\\other\\Masterview.xsl" />
    <x:transform xml="${xml}" xslt="${xslt}" />
        </form>
      </body>
    </html>But in <c:import > tag i want to put url value dynamically so when i convert that string to a variable and pass that variable into url attribute it does not work.
    Like This
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
      <head>
      </head>
      <body>
       <%
       try{
            String xmlFile="..\\data\\"+session.getAttribute("param1").toString()+"\\master.xml";
            String xsltFile="..\\other\\"+session.getAttribute("param2").toString()+"\\MasterView.xsl";
            }catch(Exception ep){ep.printStackTrace();}
       %>
        <form method="post">
       <c:import var="xml" url="<%=xmlFile.toString()%>" />
    <c:import var="xslt" url="<%=xsltFile.toString()%>" />
    <x:transform xml="${xml}" xslt="${xslt}" />
        </form>
      </body>
    </html>

  • Problem facing when uploadin file thru java applet using WSA

    I am facing a issue, when I am trying to upload a pdf file on a website which uses java applet and WSA as proxy. On the java applet window when I select the file a click upload, it gives " Upload failed : java.net.Unknownhostexception ".
    On checking the issue in java console getting following error "SEVERE: java.net.UnknownHostException: www.mca.gov.in
    java.net.UnknownHostException: www.mca.gov.in
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
    at javazoom.transfer.client.http.HTTPTransfer.headInfo(Unknown Source)
    at javazoom.transfer.client.http.HTTPUploadTransfer.dbupdate(HTTPUploadTransfer.java:973)
    at javazoom.transfer.client.http.HTTPUploadTransfer.run(HTTPUploadTransfer.java:155)
    at java.lang.Thread.run(Unknown Source)
    network: Connecting http://www.mca.gov.in:80/ with proxy=DIRECT
    29-Oct-2009 15:03:58 javazoom.transfer.client.http.HTTPTransfer headInfo
    SEVERE: java.net.UnknownHostException: www.mca.gov.in
    29-Oct-2009 15:03:58 javazoom.transfer.client.http.HTTPUploadTransfer run
    INFO: Upload failed"

    Done, what next ?
    Noah

  • Problem faced when automating the P.O and P.O Release transactions

    Hi,
    I was trying to automate the Purchase Order and Purchase Order Release screen using ECATT tool.
    I recorded the Purchase Order screen by importing the Purchase Requisition Number.
    When i record the Purchase Order screen, the screen settings was different and when i was replaying the script, the settings was different.
    The Problem which i faced was when i was recording the Purchase Order transaction, the header tab was in the expand status.But when i execute the recorded script, the header tab gets collapsed. Because of this change, the Purchasing Org tab value is not passed and it throws an error.
    Please help me to find a solution for this problem.
    The same happens in Purchase Order release transaction.
    When i am recording the Purchase Order Release transaction, the Release Strategy tab is active and when i am replaying the script which i have recorded, it is not the same of what i have recorded.
    Therefore, it throws an error.
    Kindly help me to get a solution for the problem

    Can u help me in doing this.
    I have not done any script using this Conditional loop. Help me to do this..
    If u also have any documents related to this Conditional loop, kindly let me know the links..
    Hope u will help me to find a solution.
    Regards,
    Shriram.S

  • Problem facing when changing configuration characterstic values in SO

    Hi Experts,
    I am facing a problem when i am chaging sales order configuration characterstic values they are updating perfectly. But when i am creating purchase order with reference to sales order then the sales order configuration currency characterstic values are picking as 0 which are already updated perfectly in sales order.
    I am using cl_cbase-> set_configuration method for to update the characterstic currency values.
                    cl_cbase->set_mark_for_saving after the above method
                    cl_cbase->save_and_free after the above method.
    Would request your suggestions if you have come across this situation.
    Advance Thanks
    Regards,
    Chandra.

    Hi,
    Can do it using Union All is prompt SQL and presentation variable in report.
    Refer : http://www.varanasisaichand.com/2010/01/editing-all-choices-in-dashboard.html
    Regards,
    Srikanth

  • Problem Faced While Using The Expdp Utility in Oracle 10g

    We are getting the following error while exporting the tables of a schema.
    ORA-39127: unexpected error from call to export_string :=DMSYS.DBMS_DM_MODEL_EXP
    .instance_info_exp('DM$P_MODEL_EXPIMP_TEMP','YEARLID',1,1,'10.01.00.03.00',newbl
    ock)
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "DMSYS.DBMS_DM_MODEL_EXP", line 1061
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 4995
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while ca
    lling DBMS_METADATA.FETCH_XML_CLOB [TABLE:"YEARLID"."CONTACTS_PGRANT_NOV22"]ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22
    275
    The table CONTACTS_PGRANT_NOV22 has got a column of type CLOB. We are exporting in the metadata only mode. Interestingly when we are exporting only this table individually, we are not getting any problem. Please suggest at the earliest.

    Hi,
    I need to take full export of the database with out data and for all schemas. Can you tell is below syntax correct or not:
    expdp system directory=DATA_PUMP dumpfile=FullDB1_Jan25_08.dmp job_name=test3 logfile=FullDB1_Jan25_08_EXPDP.log CONTENT=METADATA_ONLY full=y
    if I use above syntax I am not seeing all schema names in log file during expdp as we see in exp option.
    Please let me know correct syntax.

  • Problems faced while using MicrosoftOfficeInterop

    We are developing a windows program solution in which we programmatically access the Excel functionality and control the behaviour of the *.xlsx files. 
    We are using
     Visual Studio 2012 Professsional,
     Language C# 
     Namespace Microsoft.Office.Interop.Excel.
     Functions being used are standard functions  like 
    ExcelApp.Workbooks.Open(…….)
    WorkBook.Save(..)
    WorkBook.Close(..) etc.
    To control behaviour of .xlsx files, We are also using events like 
    BeforeClose
    BeforeSave
    BeforePrint   etc 
    On few systems (operating systems Windows 7 and above with Microsoft Office 2010 and above) we are facing problems. It gives exception with exception message as  “HRESULT: 0x800AC472”.  This exception is raised randomly (i.e. if it is raised while
    using WorkBook.Save(..) but few seconds  before this , same file is successfully saved at same machine and same path. OR if it is raised while using ExcelApp.Workbooks.Open(…….), the same was successful just before few miliseconds.)
    We know one instance where it is expected to happen. If we are working on a machine where the office installed is a trial version (i.e. the Product Key id is not entered during installation), the above problem is known to happen. But it disappears immediately
    after we feed the Product key. The Program behaves perfectly.
    But on few machines where the windows is properly installed and the Office is also properly installed, the above mentioned problem is faced and we are not able to locate why the problem occurs.
    Can you guide us to locate  the problem and overcome the same?

    Hi Mukund,
    The
    Excel for Developers forum is a better place for Office development questions. Please feel free to open a new thread at there.
    Thank you for your understanding.
    Best Regards,
    Franklin
    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.

  • Problem faced when installing oracle 10g

    i faced this problem when intalling oracle 10g in windows xp. this dos prompt opens for 5 min. and then it get closed..after tht nuthing happens.
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 4.0, 5.0, 5.1 or 5.2. Actual 5.1
    Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 4
    294967296 Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from C:\DOCUME~1\ADMINI~1\LOCALS~
    1\Temp\OraInstall2006-09-02_03-43-19AM. Please wait ...

    Check the directory read-write permission and the space on the C:\ Drive C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\OraInstall2006-09-02_03-43-19AM.
    Actually Oracle Installer might be trying to create log file and due to above two reason not able to proceed.

  • TS3899 When at home using our home wireless I can send and receive emails on my iPad no problem.  When using other wireless networks I can send emails to people who share the same Internet provider but not others.  Why?

    Is the wireless provider the issue?  I can receive emails everywhere I go but in some locations can only send to a limited number of email addresses.

    Greetings
    I suspect that the issue is the SMTP server settings. On your home network you are using your providers SMTP server and all is fine (If you check your email account configs you will find that the SMTP server is set to your providers?).
    When you use a different network (provider) mail will not be sent unless you use that networks (providers) SMTP server (this is a security issue to address ways of "spamming").
    So if youre 3G/4G provider is the same as you home provider all will work well via your home WiFi. If you turn off WiFi and just use your 3G/4G connection to send mail (iPhone/iPad etc) all will work well (when you are out and about and using anothers WiFi network).
    If you are connected to, say a MacDonalds WiFi, mail will probably not be sent. (It will be received though).
    Using WEB mail interface (via your WEB browser) removes this problem as well. 
    (A SMTP server is what is used to send email. So to successfully use anothers (not a networks the same as your providers) WiFi network and send email via it, you must know the SMTP servers name and reconfigure your email account/s to use that server to send mail.)

  • JDev gives error when using JSTL Core

    When following structure gives the mentioned errors on both the "if" tag and the "font" tag.
    <logic:notEmpty ...>
    <logic:iterate ...>
    <c:if ...>
    <font ...> <bean:write .../></font>
    </c:if>
    </logic:iterate>
    </logic:notEmpty>
    errors are "field apache not found in class java.lang.Object" and " ; expected" which flag the opening "<" for both the <c:if and the <bean:write
    It works just fine if I make the changes to the .jsp on the target server. This is a component of a struts-tiles web page.
    Any help would be greatly appreciated.
    Thanks.
    Can anyone add any insight?

    Hi,
    in which context do you use this, plain JSP or JSF ? If JSP, can you try without <logic:notEmpty ...> as this is not a standard JSTL element?
    Frank

Maybe you are looking for