How do I use orderby in weblogic 6.1?
I am trying to use the orderby function in weblogic and the method in which
I have implemented I have shown in ejb-jar.xml and
weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
implemented it in the right way.
Thank you
Ronak Parekh
I am getthing the error:
Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
was:
The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
a null ejb ql value.
The finder method findAllOrderByUserName of ejb UsersEJB cannot have
a null ejb ql value.
This is my weblogic-cmp-rdbms-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>UsersEJB</ejb-name>
<data-source-name>UsersDB</data-source-name>
<table-name>USERS</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>userName</cmp-field>
<dbms-column>USER_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>userPass</cmp-field>
<dbms-column>USER_PASS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userPass</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>RolesEJB</ejb-name>
<data-source-name>RolesDB</data-source-name>
<table-name>ROLES</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>roleName</cmp-field>
<dbms-column>ROLE_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>roleDesc</cmp-field>
<dbms-column>ROLE_DESC</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleDesc</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
This is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Users Entity Bean</display-name>
<ejb-name>UsersEJB</ejb-name>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
<ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>users</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>userName</field-name></cmp-field>
<cmp-field><field-name>userPass</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>UsersEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/UsersDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
<entity>
<display-name>Roles Entity Bean</display-name>
<ejb-name>RolesEJB</ejb-name>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
<ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>roles</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>roleName</field-name></cmp-field>
<cmp-field><field-name>roleDesc</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>RolesEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/RolesDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UsersEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>RolesEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
You CTRL- or RIGHT-click on a bookmark and select Delete from the context menu.
If you click on the Bookmark icon in the toolbar they will be listed in the sidebar on the left.
Similar Messages
-
How can i use javascript in weblogic jsp
Hai,
I know that we can use the jsvascript to validate the html parameters.
Is the wblogic jsp support the javascript ?. I tried in weblogic
5.1.0.,the javascript is not working.
anybody can help me how to validate html input and how can i use
javascript in jsp.
Thanks
Srinivas
Do you know how JSP can use a variable defined in Javascrip ?
Thx,
Lin
"Cameron Purdy" <[email protected]> wrote:
>Write your JSP as you would any HTML file, including JavaScript. Then
>rename the .html file to .jsp. Add your custom tags and Java code as
>desired. Done.
>
>There was a complaint in the 5.0 beta about the JSP parser choking on
>JavaScript, so I would make sure you at least try on the latest 5.1 service
>pack, just in case.
>
>Cameron Purdy
>
>"SRINIVAS" <[email protected]> wrote in message
>news:[email protected]..
>> Hai,
>> I know that we can use the jsvascript to validate the html parameters.
>>
>> Is the wblogic jsp support the javascript ?. I tried in weblogic
>> 5.1.0.,the javascript is not working.
>> anybody can help me how to validate html input and how can i use
>> javascript in jsp.
>>
>> Thanks
>> Srinivas
>>
>
>
-
How do you implement orderby in weblogic 6.1?
I am trying to use the orderby function in weblogic and the method in which
I have implemented I have shown in ejb-jar.xml and
weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
implemented it in the right way.
Thank you
Ronak Parekh
I am getthing the error:
Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
was:
The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
a null ejb ql value.
The finder method findAllOrderByUserName of ejb UsersEJB cannot have
a null ejb ql value.
This is my weblogic-cmp-rdbms-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>UsersEJB</ejb-name>
<data-source-name>UsersDB</data-source-name>
<table-name>USERS</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>userName</cmp-field>
<dbms-column>USER_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>userPass</cmp-field>
<dbms-column>USER_PASS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userPass</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>RolesEJB</ejb-name>
<data-source-name>RolesDB</data-source-name>
<table-name>ROLES</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>roleName</cmp-field>
<dbms-column>ROLE_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>roleDesc</cmp-field>
<dbms-column>ROLE_DESC</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleDesc</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
This is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Users Entity Bean</display-name>
<ejb-name>UsersEJB</ejb-name>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
<ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>users</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>userName</field-name></cmp-field>
<cmp-field><field-name>userPass</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>UsersEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/UsersDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
<entity>
<display-name>Roles Entity Bean</display-name>
<ejb-name>RolesEJB</ejb-name>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
<ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>roles</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>roleName</field-name></cmp-field>
<cmp-field><field-name>roleDesc</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>RolesEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/RolesDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UsersEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>RolesEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>I am trying to use the orderby function in weblogic and the method in which
I have implemented I have shown in ejb-jar.xml and
weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
implemented it in the right way.
Thank you
Ronak Parekh
I am getthing the error:
Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
was:
The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
a null ejb ql value.
The finder method findAllOrderByUserName of ejb UsersEJB cannot have
a null ejb ql value.
This is my weblogic-cmp-rdbms-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>UsersEJB</ejb-name>
<data-source-name>UsersDB</data-source-name>
<table-name>USERS</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>userName</cmp-field>
<dbms-column>USER_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>userPass</cmp-field>
<dbms-column>USER_PASS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userPass</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>RolesEJB</ejb-name>
<data-source-name>RolesDB</data-source-name>
<table-name>ROLES</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>roleName</cmp-field>
<dbms-column>ROLE_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>roleDesc</cmp-field>
<dbms-column>ROLE_DESC</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleDesc</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
This is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Users Entity Bean</display-name>
<ejb-name>UsersEJB</ejb-name>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
<ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>users</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>userName</field-name></cmp-field>
<cmp-field><field-name>userPass</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>UsersEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/UsersDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
<entity>
<display-name>Roles Entity Bean</display-name>
<ejb-name>RolesEJB</ejb-name>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
<ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>roles</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>roleName</field-name></cmp-field>
<cmp-field><field-name>roleDesc</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>RolesEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/RolesDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UsersEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>RolesEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar> -
How can I use EJB component on Weblogic 8.1 server ?
hi,dear sir:
How can I use EJB component on Weblogic 8.1 server ?
It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
thank you...Hi,
This forum is exclusively for Creator. please post this on appropriate forum
regards
CreatorTeam -
How Can I Use Multiple Weblogic Instances in a Single OS
Hello Everyone,
Actually I have to install Some different applications. Few of them need weblogic 10.3.6 and others need 10.3.4. The OS am using is Oracle Enterprise Linux 5.
Now I am able to install 2 separate(One of 10.3.4 and 10.3.6) instances with two different users,In two different directories.
I have installed the weblogic 10.3.6 version with a user webadmin and installed node manager with port 5556. This is working fine.
The main problem here is :
In the second instance (10.3.4 ) installed with a a different user and gave the port number to NodeManager as 1600 and its not getting started. Its throwing error and also after some errors in the terminal am able to see that its reverting to port number 5556 only.
What might be the issue?
I have to install 2 different versions of weblogic in a single Server. But am failing with NodeManager. What Can I do to have multiple weblogic instances with multiple versions in a single server ?
Can anyone suggest a resolution for this please ?
Thanks in advance.Pl do not spam these forums with multiple posts - How Can I Use Multiple Weblogic Instances in a Single OS
-
How to create an RDBMS event generator using wlst on weblogic 10.3
how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.Hi,
RDBMS Event Generator Channel Rule Definition
When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
You should always use the navigation links provided and create a new channel rule definition.
http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
Regards,
Kal -
How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
D:\war>jar -tf gmi.war
META-INF/
META-INF/MANIFEST.MF
gmiService.jsp
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/bt/
WEB-INF/classes/com/bt/gmi/
WEB-INF/classes/com/bt/gmi/gmiService.class
WEB-INF/getList.xsl
WEB-INF/getListByConnection.xsl
WEB-INF/getListByDistrict.xsl
WEB-INF/getListByDistrictConnection.xsl
WEB-INF/lib/
WEB-INF/source/
WEB-INF/source/build.bat
WEB-INF/source/gmiService.java
WEB-INF/web.xml
WEB-INF/weblogic.xml
tmpwar/
tmpwar/jsp_servlet/
tmpwar/jsp_servlet/_gmiservice.class
tmpwar/jsp_servlet/_gmiservice.java
When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
weblogic.jsp.pageCheckSeconds
-1
weblogic.jsp.precompile
false
weblogic.jsp.compileCommand
javac
weblogic.jsp.verbose
true
weblogic.jsp.packagePrefix
jsp_servlet
weblogic.jsp.keepgenerated
false
And in the weblogic.properties file:
weblogic.httpd.webApp.gmi=war/gmi
I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
The default Java compiler from sun lives in the tools.jar that comes with
the JDK. Just add that to your set of JARs which are deployed in production
and you should be fine. No need to install the full JDK - just make the
tools.jar available to WebLogic.
Regards
James
James Strachan
=============
email: [email protected]
web: http://www.metastuff.com
"Martin Webb" <[email protected]> wrote in message
news:[email protected]...
>
> How can WLS use JSP pages in a Web Application (either a .war file or a
war directory structure) without a java compiler?
>
> I suspect either the JSP specification is flawed (i.e. it doesn't take
account of servers using just a JRE), or BEA's implementation is broken.
>
> Production servers do not have a JDK installed. They only have a JRE.
Therfore a java compiler is not present on the machine that the Web
Application is deployed onto.
>
> On the development machine, when the server is requested to load the JSP
it creates a tmpwar directory within the Web Application directory
structure. This is then included in the resultant .war file thus:
>
> D:\war>jar -tf gmi.war
> META-INF/
> META-INF/MANIFEST.MF
> gmiService.jsp
> WEB-INF/
> WEB-INF/classes/
> WEB-INF/classes/com/
> WEB-INF/classes/com/bt/
> WEB-INF/classes/com/bt/gmi/
> WEB-INF/classes/com/bt/gmi/gmiService.class
> WEB-INF/getList.xsl
> WEB-INF/getListByConnection.xsl
> WEB-INF/getListByDistrict.xsl
> WEB-INF/getListByDistrictConnection.xsl
> WEB-INF/lib/
> WEB-INF/source/
> WEB-INF/source/build.bat
> WEB-INF/source/gmiService.java
> WEB-INF/web.xml
> WEB-INF/weblogic.xml
> tmpwar/
> tmpwar/jsp_servlet/
> tmpwar/jsp_servlet/_gmiservice.class
> tmpwar/jsp_servlet/_gmiservice.java
>
> When deployed on the production server with the web.xml file set to use
the following values (note XML stripped):
>
> weblogic.jsp.pageCheckSeconds
> -1
>
> weblogic.jsp.precompile
> false
>
> weblogic.jsp.compileCommand
> javac
>
> weblogic.jsp.verbose
> true
>
> weblogic.jsp.packagePrefix
> jsp_servlet
>
> weblogic.jsp.keepgenerated
> false
>
>
> And in the weblogic.properties file:
>
> weblogic.httpd.webApp.gmi=war/gmi
>
> I've also tried with the .war file, but that insists on creating another
tmpwar directory outside of the .war file.
>
>
> Then, although I have set pageCheckSeconds to -1 (don't check and don't
recompile) ter production server still attempts to recompile the JSP's:
>
>
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
verbose initialized to: true
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
packagePrefix initialized to: jsp_servlet
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
compileCommand initialized to: javac
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
srcCompiler initialized to weblogic.jspc
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
superclass initialized to null
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
workingDir initialized to:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
pageCheckSeconds initialized to: -1
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
initialization complete
> Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
file:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java
> Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
>
> java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[javac, -classpath,
/opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
rver/weblogic/war/gmi/_tmp_war, -d,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java])
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.io.IOException.<init>(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
> at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
>
>
-
How to use jstl in weblogic 8.1
I tried to use JSTL in my jsp file and I add
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> at the top line. But the server reported
java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver
how to solve this problem?WebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions. -
How can I configuration MBean in weblogic server using the console ?
How can I configuration MBean in weblogic server using the console ?
I hear people talking about mbeans in weblogic server I have look in the console I can not find where , or how to do it.
can some body explain that or a link that explain it, how to do it on the console ?Hi,
Registering Custom MBeans from Admin Console is not yet possible. But yes there are ways to Configure and Utilize Custom MBeans ...
http://weblogic-wonders.com/weblogic/2010/02/16/registering-and-invoking-custommbeans/
Thanks
Jay SenSharma -
How to use jsp in weblogic 5.1
Hi all,
We have PeopleSoft application running on
Weblogic 5.1 SP12.
How do we use JSP files in this weblogic version ?
We are trying to use a custom jsp file.
Quick help is much appreciated..
Thanks
MaddyWebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions. -
How to use ADF with weblogic Portal 10.3.2
Hello All,
I want to use ADF with Weblogic Portal 10.3.2. Can anyone guide me ?
Thanks,
*(' ')sman*Hello,
To use ADF with WLP 10.3.2 you will need a WebCenter WSRP producer running the portlet, which you can then consume as a remote portlet in WLP. The documentation on how to do that is here:
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14235/chap_webcenter_interop.htm#BABDBJBD
Kevin -
How do I use a custom UserInfo with a T3Client?
This is related to my previous post, 4655. The problem is I if
use a custom implementation of the interface
weblogic.security.acl.UserInfo in a T3Client constructor, the
client fails to connect. If I use
weblogic.security.acl.DefaultUserInfoImpl, the client connects
and disconnects without any problems. How do I use a custom
UserInfo implementation with a T3Client?In don't know about the Gmail part, but for the Hotmail, try this link.
Here's another link from a different source. -
How do I use my new wireless keyboard to use touchscreen features such as turning pages in an ibook or opening applications?
Hi all,
Some articles that could help
http://www.adobe.com/inspire/2012/02/combining-web-skills-phonegap-mobile-apps.html
http://www.adobe.com/inspire/2013/11/web-designers-phonegap.html
http://www.markdubois.info/weblog/2013/08/dreamweaver-cc-and-phonegap/
Thanks,
Preran -
How Do You Use XML To Create Image Upload On A WebSite?
Hello,
Could some one please help me understand how to create web image gallery and web video gallery using XML? I have found few xml codes that could be used to do this but I am not so sure how to use them. I want my clients to be able upload images and videos with linking thumbnails to Image and or Videos. Do you think the codes I included in this question will help me achive this goal? And do I need to put all in one and in the same directory so it will work? Please help with your idea and tell me how you would use these codes and how you may step-by-step implement the idea your self to your own web site.
I have also included the instruction I found on the web with the codes.
Starting with You Tube, API on their video gallery, here are the codes I found,
Assume you are to use the YouTube, XML code; What will you change here so it will work on your own www.domain.com?
<% Dim xml, xhr, ns, YouTubeID, TrimmedID, GetJpeg, GetJpeg2, GetJpeg3, thumbnailUrl, xmlList, nodeList, TrimmedThumbnailUrl Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xml.async = False
xml.setProperty "ServerHTTPRequest", True
xml.Load("http://gdata.youtube.com/feeds/api/users/Shuggy23/favorites?orderby=updated") If xml.parseError.errorCode <> 0 Then
Response.Write xml.parseError.reason End If Set xmlList = xml.getElementsByTagName("entry") Set nodeList = xml.SelectNodes("//media:thumbnail") For Each xmlItem In xmlList
YouTubeID = xmlItem.getElementsByTagName("id")(0).Text
TrimmedID = Replace(YouTubeID, "http://gdata.youtube.com/feeds/api/videos/", "")
For Each xmlItem2 In nodeList
thumbnailUrl = xmlItem2.getAttribute("url")
Response.Write thumbnailUrl & "<br />"
Next Next
%>
For the image gallery, the following are the codes I found with your experience do I need to use the entire codes or just some of them that I should use?
CODE #01Converting Database queries to XML
Using XML as data sources presumes the existence of XML. Often, it is easier to have the server create the XML from a database on the fly. Below are some scripts for common server models that do such a thing.
These are starting points. They will need to be customized for your particular scenario.
All these scripts will export the data from a database table with this structure:
ID: integer, primary key, autoincrement
AlbumName: text(255)
ImagePath: text(255)
ImageDescription: text(2000)
UploadDate: datetime
The output of the manual scripts will look like:
<?xml version="1.0" encoding="utf-8" ?>
<images>
<image>
<ID>1</ID>
<album><![CDATA[ Family ]]></album>
<path><![CDATA[ /family/us.jpg ]]></path>
<description><![CDATA[ here goes the description ]]></description>
<date><![CDATA[ 2006-11-20 10:20:00 ]]></date>
</image>
<image>
<ID>2</ID>
<album><![CDATA[ Work ]]></album>
<path><![CDATA[ /work/coleagues.jpg ]]></path>
<description><![CDATA[ here goes the description ]]></description>
<date><![CDATA[ 2006-11-21 12:34:00 ]]></date>
</image>
</images>
These are all wrapped in CDATA because it is will work with all data types. They can be removed if you know you don't want them.
Note: If using the column auto-generating versions, ensure that all the column types are text. Some databases have data type options like 'binary', that can't be converted to text. This will cause the script to fail.
CODE #02ASP Manual: This version loops over a query. Edit the Query and XML node names to match your needs.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim MM_conn_STRING
MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
%>
<%
Dim rsImages
Dim rsImages_cmd
Dim rsImages_numRows
' Query the database and get all the records from the Images table
Set rsImages_cmd = Server.CreateObject ("ADODB.Command")
rsImages_cmd.ActiveConnection = MM_conn_STRING
rsImages_cmd.CommandText = "SELECT ID, AlbumName, ImagePath, ImageDescription, UploadDate FROM images"
rsImages_cmd.Prepared = true
Set rsImages = rsImages_cmd.Execute
' Send the headers
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%><?xml version="1.0" encoding="utf-8"?>
<images>
<% While (NOT rsImages.EOF) %>
<image>
<ID><%=(rsImages.Fields.Item("ID").Value)%></ID>
<album><![CDATA[<%=(rsImages.Fields.Item("AlbumName").Value)%>]]></album>
<path><![CDATA[<%=(rsImages.Fields.Item("ImagePath").Value)%>]]></path>
<description><![CDATA[<%=(rsImages.Fields.Item("ImageDescription").Value)%>]]></description>
<date><![CDATA[<%=(rsImages.Fields.Item("UploadDate").Value)%>]]></date>
</image>
<%
rsImages.MoveNext()
Wend
%>
</images>
<%
rsImages.Close()
Set rsImages = Nothing
%>
CODE #03
Automatic: This version evaluates the query and automatically builds the nodes from the column names.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim MM_conn_STRING
MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
%>
<%
Dim rsAll
Dim rsAll_cmd
Dim rsAll_numRows
' Query the database and get all the records from the Images table
Set rsAll_cmd = Server.CreateObject ("ADODB.Command")
rsAll_cmd.ActiveConnection = MM_conn_STRING
rsAll_cmd.CommandText = "SELECT * FROM Images"
rsAll_cmd.Prepared = true
Set rsAll = rsAll_cmd.Execute
' Send the headers
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%><?xml version="1.0" encoding="utf-8"?>
<root>
<% While (NOT rsAll.EOF) %>
<row>
<%
For each field in rsAll.Fields
column = field.name
%>
<<%=column%>><![CDATA[<%=(rsAll.Fields.Item(column).Value)%>]]></<%=column%>>
<%
Next
%>
</row>
<%
rsAll.MoveNext()
Wend
%>
</root>
<%
rsAll.Close()
Set rsAll = Nothing
%>OK, I understand - thanks for that.
I thought the whole process was supposed to be a bit more seemless? Having to upload/download documents and manually keep them in sync will leave a lot of room for errors.
It's kinda painful the way iOS doesn't have folders. It makes things incompatible with the Mac and means you can't group files from multiple apps into a single project - who organises their digital life by the apps they use?
I think I'll recommend they use their iPad only.
Thanks for that.
Cheers
Ben -
How can I use XMLBeans in a Web Services client?
How can I use XMLBeans in a standalone Java client with a Web Service?
I posted the message below earlier in the year, but have not yet been successful
in my
attempts.
regards
Eddie
Hi,
I'm trying to using XMLBeans to send a document to a web service from a standalone
Java client. I'm using the PurchaseOrder (easypo) example document, and the service
expects a parameter of type PurchaseOrderDocument. The client proxy class generated
by WebLogic Workshop, however, expects to send a parameter of type PurchaseOrder.
In the client, I can instantiate a PurchaseOrderDocument, and then obtain a PurchaseOrder
(e.g. pod.getPurchaseOrder() ), but the returned class is not compatible with
the PurchaseOrder type that the client proxy expects.
In a previous attempt (not using Workshop), the client would not compile because
it expected to send a non-abstract class with a public default constructor (presumably
a JAX-RPC requirement), and XMLBeans had generated an interface.
Any help would be greatly appreciated!
thanks & regards
EddieI have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
<script language="JavaScript" type="text/javascript">
function showtext(){
var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
alert(editortext);
</script>
Hope this helps.
Matthew
Maybe you are looking for
-
Could someone help me with this code??
Hi!, I am really poor at Java, and was given this piece of code to fix. I have no idea why this compiles but does not run and have never dealt with packages either, so I would really appreciate it if someone could tell me what I could do to fix it!!
-
Connecting iphine to tv to watch movies
I was wondering if anyone could tell me; is it possible to watch a movie that is on my iphone on our tv via an AUX cable or like?
-
Planning db from SQL server to Oracle
Hi Friends We are planning to upgrade our Hyperion Environment from 9.3.3 to 11.1.2.2. and we are going from SQL server to Oracle as our RDBMS. If we are changing DBMS, do we have to rebuild total application or is there any easy method to migrate fr
-
I am trying to place notes in a score, using a musical instrument track. I am in the editor using the command-click but I do not get any notes being placed. Any ideas?
-
Changed disks in my RAID, Aperture lost all referenced masters.
I have a G-Speed eS RAID system. I had 4 X 1TB disks. I decided to change the hard disks to 2TB ones to double my storage capacity. I retained the same volume name. I backed up the 2.5TB of data to 3 other disks and then copied it back to my upgraded