JAXB parsing doesn't create set properties.

Using ant and JAXB - when the package is compiled with dtd and the elements are
set to minOccurs="0" maxOccurs="unbounded", no set method is produced.
If the minOccurs="0" maxOccurs="unbounded" is removed set methods are available,
although then the elements are mandatory. Using the following dtd, provider_vendor_batch is the root element.
<xs:element name="provider_vendor_batch">
          <xs:complexType>
               <xs:sequence>
                    <xs:element ref="update_institutional"/>
                    <xs:element ref="demographic_only" />
                    <xs:element ref="vendor_record" minOccurs="0" maxOccurs="unbounded" />
                    <xs:element ref="provider_record" minOccurs="0" maxOccurs="unbounded" />
               </xs:sequence>
          </xs:complexType>
     </xs:element>

Oops. Sorry. You must have posted this while I was asleep. :)
Here it is, I hope everyone uses it...and that Sun changes the whole maxOccurs thing.
3 Things I'd like to see done in the next version of JAXB.
1) Allow for numeric Wrapper types in the type = "xsd:...". Like, for Long and Integer...not just BigInteger.
2) Create a tag type, that is like <xsd:all>, but allows for multiple occurences, in ANY order, i.e. DBAAECBBAD
3) Fix (cough)the maxOccurs = "unbounded" to create set methods at compilation.
Anyway, here's the script.
<target name="codegen" description="Generate JAXB classes" >
<!-- generate the Java content classes from the schema -->
<echo message="Compiling the schema..."/>
<property name="build.src" value="." />
<!-- Set the value to your build source... -->
<xjc schema="YOUR.xsd" target="${build.src}" package="your.package.here"/>
<!-- Set the Schema to your XSD file, and the package to the destination package -->
<replace dir="${build.src}" token="protected java.util.List"
value="protected java.util.List" />
<replaceregexp match="java\.util\.List get(.+)\(\);"
replace="java.util.List /\*NOP\*/ get\1\(\);
void set\1\(java.util.List _\1\);" byline="true" >
<fileset dir="${build.src}" />
</replaceregexp>
<replaceregexp match="new java\.util\.List()"
replace="new java\.util\.ArrayList" byline="true" >
<fileset dir="${build.src}" />
</replaceregexp>
<replaceregexp match="public java.util.List get(.+)\(\).*\{"
replace="public void set\1\(java.util.List _\1\) \{
this._\1 =new com.sun.xml.bind.util.ListImpl( _\1);
public java.util.List /\*NOP\*/get\1\(\) \{" byline="true" >
<fileset dir="${build.src}" />
</replaceregexp>
</target>

Similar Messages

  • Mojarra doesn't implement setting properties on declared converters?

    Hi,
    I tried to register a custom converter in faces-config, by means of the following declaration:
    <converter>
              <description>Formats a number with exactly two fractional digits.</description>
              <converter-id>numberformat.two</converter-id>
              <converter-class>javax.faces.convert.NumberConverter</converter-class>
              <property>
                   <property-name>maxFractionDigits</property-name>
                   <property-class>java.lang.Integer</property-class>
                   <default-value>2</default-value>
              </property>
              <property>
                   <property-name>minFractionDigits</property-name>
                   <property-class>java.lang.Integer</property-class>
                   <default-value>2</default-value>
              </property>
         </converter>I've used this kind of code before a long time ago when using MyFaces, and this always Just Worked. However, with Mojarra it just doesn't work.
    I used the converter on my view like this:
    <h:outputText value="#{bb.someVal}">
         <f:converter converterId="numberformat.two"/>
    </h:outputText>By putting a breakpoint in javax.faces.convert.NumberConverter, I can check that the converter is being called, but the properties just aren't set on the instance.
    I hunted the Mojarra source code, but I also can't find any code that is supposed to set these properties.
    For instance, the ApplicationImp.createConverter method consists of this code:
    public Converter createConverter(String converterId) {
            if (converterId == null) {
                String message = MessageUtils.getExceptionMessageString
                    (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "convertedId");
                throw new NullPointerException(message);
            Converter returnVal = (Converter) newThing(converterId, converterIdMap);
            if (returnVal == null) {
                Object[] params = {converterId};
                if (logger.isLoggable(Level.SEVERE)) {
                    logger.log(Level.SEVERE,
                            "jsf.cannot_instantiate_converter_error", converterId);
                throw new FacesException(MessageUtils.getExceptionMessageString(
                    MessageUtils.NAMED_OBJECT_NOT_FOUND_ERROR_MESSAGE_ID, params));
            if (logger.isLoggable(Level.FINE)) {
                logger.fine(MessageFormat.format("created converter of type ''{0}''", converterId));
            return returnVal;
        }So without all the error checking, the method basically boils down to just this:
    return (Converter) newThing(converterId, converterIdMap);The heart of newThing consists of this:
    try {
                result = clazz.newInstance();
            } catch (Throwable t) {
                throw new FacesException((MessageUtils.getExceptionMessageString(
                      MessageUtils.CANT_INSTANTIATE_CLASS_ERROR_MESSAGE_ID,
                      clazz.getName())), t);
            return result;So there's no code that's supposed to set these properties in sight anywhere.
    Also the converter tag (com.sun.faces.taglib.jsf_core.ConverterTag) nor any of its base classes seems to contain such code.
    Either I'm doing something very wrong, or Mojarra has silently removed support for setting properties on custom converters, which would seem awkward.
    Any help would be greatly appreciated.

    rlubke wrote:
    Mojarra has never supported such functionality, so it hasn't been silently removed.Thanks for explaining that. Like I said, the silently removed option thus was the less likely of the two ;)
    The documentation for this converter sub-element states:
    <xsd:element name="property"
    type="javaee:faces-config-propertyType"
    minOccurs="0"
    maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:documentation>
    Nested "property" elements identify JavaBeans
    properties of the Converter implementation class
    that may be configured to affect the operation of
    the Converter.  This attribute is primarily for
    design-time tools and is not specified to have
    any meaning at runtime.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    That documentation is quite clear indeed. I now notice that the project I was working on still had a JSF 1.1 faces-config DTD, and that documentation said this:
    Element : property
    The "property" element represents a JavaBean property of the Java class represented by our parent element.
    Property names must be unique within the scope of the Java class that is represented by the parent element,
    and must correspond to property names that will be recognized when performing introspection against that
    class via java.beans.Introspector.
    Content Model : (description*, display-name*, icon*, property-name, property-class, default-value?,
    suggested-value?, property-extension*)So there it actually says nothing about the design time aspect.
    I do have to mention that I think this entire difference between design time and run time could maybe have been a bit more officially formalized. Don't get me wrong, I think JSF and the whole of Java EE is a really good spec that has helped me tremendously with my software development efforts, but this particular thing might be open for some improvements. A similar thing also happens in the JPA spec, where some attributes on some annotations are strictly for design time tools and/or code generators, but it's never really obvious which ones that are.
    More on topic though, wouldn't it actually be a good idea if those properties where taken into account at run-time? That way you could configure a set of general converters and make them available using some ID. In a way this wouldn't be really different in how we're configuring managed beans today.

  • SETTING PROPERTIES FOR A MAPPING VIA OMBPLUS ISN'T WORKING

    Hi, i have a problem with OMBPLUS:
    I have a script which creates a mapping and then is supposed to change properties for the mapping and seems to do so via OMBRETRIEVE. But when looking in OWB the properties aren't changed.
    If I change any of the properties inside OWB and then run the script again, then the properties are changed. Does anyone know why the behavior is like this?
    /thanx Joel
    When running the script the output looks like this:
    CREATE MAPPING 'XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED FAIL OVER TO ROW BASED}
    ALTER MAPPING PROPERTIES FOR 'T_A_TEST_XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED}
    -- ALL DONE --
    The script:
    set temp_module "TMP"
    set tmp_table1 "XXX_1"
    set tmp_table2 "XXX_2"
    set map_name "XXX_1_IN"
    puts -nonewline "CREATE MAPPING '$map_name'... "
    OMBCREATE MAPPING '$map_name' \
    ADD TABLE OPERATOR '$tmp_table1' BOUND TO TABLE '../$temp_module/$tmp_table1' \
    ADD TABLE OPERATOR '$tmp_table2' BOUND TO TABLE '../$temp_module/$tmp_table2' \
    ADD CONNECTION \
    FROM GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table1' \
    TO GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table2'
    OMBCOMMIT
    puts "DONE"
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts -nonewline " ALTER MAPPING PROPERTIES FOR '$map_name'... "
    OMBALTER MAPPING '$map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMBCOMMIT
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts "-- ALL DONE --"
    puts ""
    OMBDISCONNECT

    Thanks for your idea Roman, but it doesn't solve my problem.
    The problem is regardless of which property (Runtime parameters in OWB) I try to change. Before ANY property is changed via OWB (GUI) the changes via OMB doesn't come to effect (even if RETREIVE after OMBCOMMIT says so).
    Regards, Joel

  • [JS CS3]setting properties of inline rectangle

    Hi,
    This doesn't seem to work for somes reason...
    myLibItem = myLib.assets.item("Steunvraag");
    var myIP = myFrame.texts.item(0).insertionPoints.item(-1);
    myLibItem = myLibItem.placeAsset(myIP);
    myLibItem.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
    So I've placed a library asset in an insertion point - so far so good - but when i want to set properties of the result (a rectangle), I get an error about the object not supporting the method anchoredObjectSettings. I use the same construction elsewhere in the script with a textframe created from scratch, and that works fine.
    Any suggestions?
    thnx

    placeAsset returns an array (even for this case where there can only ever be one item). So:
    myLibItem = myLibItem.placeAsset(myIP)[0];
    Dave

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error in VT04 - Doesn't create Shipments

    Error in VT04 - Doesn't create Shipments
    We have this function module that automatically creates delivery and shipment base from the Goods Receipt.
    The problem is it doesn't createe shipment document because the delivery doc doesn't exists.
    Upop debugging, the delivery has been created. And appends the delivery number into TVARV table (found in PERFORM CHANGE_VARIANT_VALUES). Then there's this code that it doesn't recognized the delivery that it was created.
    PERFORM CHANGE_VARIANT_VALUES USING VBKOK-VBELN_VL.
          SET UPDATE TASK LOCAL.
          SUBMIT RV56TRGN WITH P_OUT  EQ C_X
                         WITH V_PSEL EQ 'RV56LFSL'
                         WITH V_PSP0 EQ 'RV56TRSP'
                         WITH V_PTR0 EQ ZVXXAUTOGRDN-DATA_OPTS
                   AND RETURN EXPORTING LIST TO MEMORY.
          COMMIT WORK AND WAIT.
    Though in the production this program works. But in QA server it doesn't. I am not sure if this is the effect of a Unicode issue also.
    Help me guys.. I just couldn't find in program RV56TRGN on how the values will get from TVARV.
    I am not familiar with the command SET UPDATE TASK LOCAL. If this is related to Memory storage that might get the last value.
    Points will be given for the helpful ideas. Thanks!

    Hi,
    The service contracts guide also says to run 'Installed Base Interface' concurrent program for shippable items. Even after running this concurrent program no contracts is created.
    Any step to be done further??
    Regards,
    Nithya

  • Message Queue 4.4 doesn't know "jms.properties" ?

    Sun JMS Tutorial illustrates using a properties file to supply context properties. You define a System property "jms.properties" to point to the location of the properties file:
    java -Djms.properties=%J2EE_HOME%\config\jms_client.propertiesInside of said file is the properties in question (these are a surmise; the contents are nowhere documented).
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    java.naming.provider.url=file:///C:/TempThen a call to InitialContext() will succeed.
    But the Tutorial assumes you're running under J2EE, and I'm not. I'm using the stand-alone Message Queue 4.4. If I define the properties on the command line,
    java -Djava.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory -Djava.naming.provider.url=file:///C:/Tempthen InitialContext() succeeds.
    If I explicitly dump the contents of the file into System.properties,
           String
           prop = System.getProperty( "jms.properties" );
           Properties props = System.getProperties();
           try  {
               java.io.File pf = new java.io.File( prop );
               props.load( new java.io.FileInputStream(pf) );
           catch( Exception ex )  { ex.printStackTrace(); }Then they get defined and InitialContext() tries to use them. But if I don't then they never get defined. Obviously the Tutorial expects that someone will do that, but who? AFAIK, both environments use the same naming library.
    Has the behavior of MQ changed since version 1.3 of the tutorial? Or is J2EE doing something that the standalone product doesn't?

    This is all about JNDI configuration. Before you can look up an object in a JNDI repository you need to tell the JNDI runtime which JNDI provider to use. This means you need to set the system properties java.naming.factory.initial and java.naming.provider.url to specify which JNDI provider to use and where the data is located. There's a bit about this in the JNDI tutorial [http://java.sun.com/products/jndi/tutorial/basics/prepare/initial.html|http://java.sun.com/products/jndi/tutorial/basics/prepare/initial.html] .
    The tutorial you are running uses the simple file-based JNDI provider known as "fscontext" and included in fscontext.jar.
    That tutorial seems to be reading the jms.properties property and importing its contents, though I can't see where that is supposed to happen and so am not surprised it doesn't work. jms.properties is not, as far as I can see, a standard property name.
    The MQ 4.4 documentation describes how to configure an InitialContext to use fscontext by configuring those properties directly. This would definitely work!
    [http://docs.sun.com/app/docs/doc/821-0029/aeqbb?a=view|http://docs.sun.com/app/docs/doc/821-0029/aeqbb?a=view]
    Note that your JNDI datastore (which you've defined to be in C:\Temp) will start off empty, so any lookups will fail unless you've inserted connection factories or destinations in there yourself. I see that is covered elsewhere in the JMS tutorial you were following. There's also a simple MQ GUI tool that can do this. [http://docs.sun.com/app/docs/doc/821-0027/aeoaz?a=view|http://docs.sun.com/app/docs/doc/821-0027/aeoaz?a=view]
    Finally, if you're simply trying to learn about JMS and MQ you can skip the use of JNDI completely and simply instantiate the underlying connection factories explicitly. This wouldn't be appropriate in a production environment (where it is recommended to store such objects in a central store) but for developmeht purposes would work just fine.
    Nigel
    http://docs.sun.com/app/docs/doc/821-0029/aeqbb?a=view

  • General class and setting properties vs specific inner class

    This is a general question for discussion. I am curious to know how people differentiate between instantiating a standard class and making property adjustments within a method versus defining a new inner class with the property adjustments defined within.
    For example, when laying out a screen do you:
    - instantiate all the objects, set properties, and define the layout all within a method
    - create an inner class that defines the details of the layout (may reference other inner classes if complex) that is then just instantiated within a method
    - use some combination of the two depending on size and complexity.
    - use some other strategy
    Obviously, by breaking the work up into smaller classes you are simplifying the structure since each class is taking on less responsibility, as well as hiding the details of the implementaion from higher level classes. On the other hand, if you are just instantiating an object and making some SET calls is creating an inner class overkill.
    Is there a general consensus for an approach? I am curious to hear the approach of others.

    it's depends on your design..
    usually, if the application is simple and is not expected to be maintain (update..etc..) than I just have all the building of the gui within the same class (usually..the main class that extends JFrame).
    if the application follows the MVC pattern, than I would have a seperate class that build the GUI for a particular View. I would create another class to handle the ActionEvent, and other event (Controller)
    I rarely use inner class...and only use them to implements the Listerner interface (but only for simple application)..

  • SETTING PROPERTIES FOR A MAPPING VIA OMBPLUS ISN'T WORKING (OWB10gR2)

    Hi, i have a problem with OMBPLUS:
    I have a script which creates a mapping and then is supposed to change properties for the mapping. The script worked in previous releases of OWB but after upgrading to 10gR2 I get an error that DEFAULT_OPERATING_MODE property does not exist.
    Does anyone know why I get the error?
    /thanx Joel
    When running the script the output looks like this:
    CREATE MAPPING 'XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED FAIL OVER TO ROW BASED}
    ALTER MAPPING PROPERTIES FOR 'T_A_TEST_XXX_1_IN'...
    OMB02902: Error setting property DEFAULT_OPERATING_MODE of T_A_TEST_XXX_1_IN: MMM1034: Property DEFAULT_OPERATING_MODE does not exist.
    -- ALL DONE --
    The script:
    set temp_module "TMP"
    set tmp_table1 "XXX_1"
    set tmp_table2 "XXX_2"
    set map_name "XXX_1_IN"
    puts -nonewline "CREATE MAPPING '$map_name'... "
    OMBCREATE MAPPING '$map_name' \
    ADD TABLE OPERATOR '$tmp_table1' BOUND TO TABLE '../$temp_module/$tmp_table1' \
    ADD TABLE OPERATOR '$tmp_table2' BOUND TO TABLE '../$temp_module/$tmp_table2' \
    ADD CONNECTION \
    FROM GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table1' \
    TO GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table2'
    OMBCOMMIT
    puts "DONE"
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts -nonewline " ALTER MAPPING PROPERTIES FOR '$map_name'... "
    OMBALTER MAPPING '$map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMBCOMMIT
    puts "-- ALL DONE --"
    puts ""
    OMBDISCONNECT

    Hi, don't look at the script it was copied and pasted from an old thread. The problem is the error I get when trying to execute:
    OMBALTER MAPPING 'map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMB02902: Error setting property DEFAULT_OPERATING_MODE of map_name: MMM1034: Property DEFAULT_OPERATING_MODE does not exist.
    //Joel

  • Create custom properties in folder in KM

    Hi to all,
    In KM I have created a folder and now I need to create a custom field in setting - properties in this folder.
    I go to System Administration - System configuration - Knowledge Management - Content management.
    Now i go to Configuration - Component Management - Global service and I have created a Namespace, a Group and Properties.
    I think that if I go to the Content administrator - KM content - go to my folder - Details - Settings - Properties, I should see the custom field but I don't see it.
    Can anybody helps me?
    Thanks a lot.

    I have similar problem with custom properties for UME. I have added a property userdesig. I can see them in myprofile and user management in a separate tab 'Customized information'.  I can also save data in this property. 
    The problem is when I go to 'Content administrator - KM content - go to my folder - Details - Settings - Properties' I am unable to see the Custom Field.
    Would appreciate any help.
    Thanks
    JPM
    Edited by: JOSEPH MILTON on May 16, 2009 2:26 PM
    Edited by: JOSEPH MILTON on May 16, 2009 2:27 PM

  • SAX parser doesn't report IDREF type

    I have been trying to create my first DTD:
    <!ELEMENT Network (Node+, Link*)>
    <!ELEMENT Node EMPTY>
    <!ATTLIST Node
    ID ID #REQUIRED
    title CDATA #IMPLIED>
    <!ELEMENT Link EMPTY>
    <!ATTLIST Link
    source IDREF #REQUIRED
    dest IDREF #REQUIRED
    title CDATA #IMPLIED>
    and would expect that the source and dest attributes of the
    Link element would have the type IDREF when being parsed with
    the SAX parser. Using the SAXSample.java provided I get the
    following output for a test network:
    StartElement:Network
    IgnorableWhiteSpace
    StartElement:Node
    ID(ID)=node1
    title(CDATA)=test node
    EndElement:Node
    IgnorableWhiteSpace
    StartElement:Node
    ID(ID)=node2
    title(CDATA)=another node
    EndElement:Node
    IgnorableWhiteSpace
    StartElement:Link
    source(CDATA)=node2
    dest(CDATA)=node1
    EndElement:Link
    IgnorableWhiteSpace
    StartElement:Link
    source(CDATA)=node1
    dest(CDATA)=node2
    EndElement:Link
    IgnorableWhiteSpace
    EndElement:Network
    This clearly shows source and dest reported as CDATA type. Not
    exactly what's in the DTD.
    Is this an undocumented feature (a.k.a. bug?)
    Regards,
    Gary Howard.
    Smart Network Technology,
    Nortel Networks, UK
    null

    Thanks for the replies, but I don't think we are quite connecting. I do eventually want to be able to validate an XML file against a schema (which I can't do either), but first I want to be able to validate the schema file itself; i.e. to confirm that the schema I designed is a valid schema file. As I understand it, it should be possible to tell the parser that the schema to validate against is the "schema for writing schemas", http://www.w3.org/Schema/schema.xsd (or whatever it is). That's where I'm getting stuck, that the parser doesn't recognize the elements for actually defining a schema.

  • Setting properties

    hi,
    is it possible to set properties on one java class and then acess them from another?
    setting on one
    <jsp:useBean id="employee" class="com.Database.Employee scope="page"/>
                                           <jsp:setProperty name="employee" property="forename" value="Helen"/>
                                           <jsp:setProperty name="employee" property="surname" value="McArthur"/>
                                  </jsp:useBean>setting on another:
         <jsp:useBean id="empskill" class="com.Database.EmployeeSkill" scope="page">
             <jsp:setProperty name="empskill" property="sname" value="Java"/>
         </jsp:useBean>
         so that i may call this?:
    public ArrayList getReport()
            System.out.println("calling getEmployeeSkills(ename, sname, yearsexp");
            ArrayList employeeSkillDetails = new ArrayList();
            try
                JDBCConn conection = new JDBCConn();
                this.con = conection.Connect();
                stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                StringBuffer sb = new StringBuffer();
                sb.append("SELECT Forename, Surname, SkillName, SkillLevel, YearsExperience  " +
                        "FROM TB_Employee, TB_Skill, TB_EmpSkill " +
                        "WHERE TB_EmpSkill.EmpID = TB_Employee.EmpID  " +
                        "AND TB_EmpSkill.SkillID = TB_Skill.SkillID ");
                if (Employee.forename != null)
                    sb.append("AND forename = '" +Employee.forename+ "' ");   
                if (Employee.surname !=null)
                    sb.append("AND forename = '" +Employee.surname+ "' ");   
                if (this.yearsexperience != null)
                    sb.append("AND YearsExperience = '" +this.yearsexperience+ "' ");
                System.out.println(sb.toString());
                rs = stmt.executeQuery(sb.toString());
                while (rs.next())
                    EmployeeSkill empSkill = new EmployeeSkill();
                    Employee.forename = rs.getString(1);
                    Employee.surname = rs.getString(2);
                    empSkill.skilllevel = rs.getString(4);
                    empSkill.yearsexperience = rs.getString(5);
                    employeeSkillDetails.add(empSkill);
            catch (Exception e)
                e.printStackTrace();
            return employeeSkillDetails;
        }or do all the varables have to be in the same class

    all iget when i do this is:
    org.apache.jasper.JasperException: /main.jsp(34,73) equal symbol expected
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: /main.jsp(34,73) equal symbol expected
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
         org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:193)
         org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:143)
         org.apache.jasper.compiler.Parser.parseUseBean(Parser.java:1014)
         org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1240)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1576)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Coding Multiple TDMS Set Properties Efficientl​y

    I am trying to save some test settings as TDMS properties.  I have figured out the mechanics of saving individual properties to the file, but I have 25 or so properties to write to the file.  What is the most efficient way to code this in LV, so that I don't have to use the "TDMS Set Properties" block 25 different times?  I have tried sending the block arrays, but it doesn't like that.  Is there some kind of loop I can use?
    Steve
    Solved!
    Go to Solution.

    Another idea is this:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • TDMS Set Properties fails

    Hi.
    I am currently developing an application which writes some data into a TDMS file.
    I have used the TDMS Set Properties VI to add some special properties as meta data.
    Basically it works, but only once. Now I would like to know why: The error message is:
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @. "
    I attached two files. One of them works (the one where only a single Set Properties VI is actually used), the other doesn't - it returns the error above.
    Why is that so?
    Attachments:
    works.jpg ‏85 KB
    doesntwork.jpg ‏87 KB

    Hi Wolfgang
    I am sorry that I can't provide any VIs, because I stopped working for the company (this was just some bonus project to do something). I don't have the VIs here, I also do not have 8.2 here, so I can't build a sample application anymore.
    As soon as I connected the second wire to MF (or LF, it didn't matter), the VI gave me an error (I don't remember the error code, sorry) directly after the VI where I connected. If only one
     was connected, everything worked fine.

  • LR4.1 doesn´t create a psd

    when i use the external editor function, LR4.1 doesn´t create a psd-file. CS5 will directly open the DNG.
    With LR4.0 i didn´t have this problem. Anyone here to solve this problem?
    (VISTA Ultimate)

    yes i did.
    the setting is PSD, 16 bit, Adobe RGB, 96 dpi
    I took settings to the 2nd externel and chose CS5 (32bit) with the same features.
    Also i testest it with setting to TIF. Nothing works.
    If i use VIVEZA2 as external, it works and creat a PSD.
    Tom

Maybe you are looking for

  • Problem with chart/grap​h multiple scales

    I have a chart with multiple scales. If I turn the visiblity off for some of the scales and then turn them back on they are not in the correct order on the chart. I have attached a program that I used to recreate the problem. Please advise. Thanks At

  • Issue with re-authentication and executing a package

    We have our timeout set to 60 minutes. When I timeout and re-authenticate when on a dynamic page that executes a package onSubmit, instead of executing the package, IE tries to download it. Has anyone ever encountered something like this and/or have

  • Is there a way to leave Video messages?

    I am using iChat, I understand you can leave video messages to your buddies, provided they are not Off Line but is there any kind of software that would allow me to record and send a video message to someone? Thanks Frederic

  • HOW TO ADD TEMPLATE TO DREAMWEAVER?

    CAN SOMEONE GIVE ME BASIC STEPS TO ADD A TEMPLATE. I DOWNLOADED THE .ZIP FILE TO MY DESKTOP. ANY AND ALL INFO IS APPRECIATED.

  • ORA-06508 Solution for attached libraries

    If you are getting the ORA-06508 runtime error, it may be the result of a corrupted .pll file. You can solve this by doing the following: 1) Remove the attached .pll file from the form. 2) Verify whether the refrenced objects in the form from the .ol