Problems with iterate tags
Hi everybody,
We're using OC4J 9.0.2 but we have a problem with iterate tags. The doAfterBody is ignored and so, the body is never done !
This work fine with version 9.0.3. If we compare the two generated servlets(9.0.2 & 9.0.3), the code is really different.
Is this a know bug, is it possible to solve this problem ?
Our client is still in 9.0.2 and is not ready for an upgrade.
Any idea is welcome ...
Jean-Pierre Evrard
[email protected]
Belgium
It's unlikely anyone can help you if you don't show any of your code or explain what is really happening.
Have you set breakpoints (or added print statements) in your doStartTag, doEndTag, and doAfterBody methods, and verified the return values are what they should be?
Similar Messages
-
Problem with display tags (not accepting inner tags)
Hi guys ,
I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
<display:column title="Row_Id" >
' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
</display:column>
here i got the exception:
The value of attribute "href" associated with an element type "a" must not contain the '<' character.
here if jstl is not used then how to put my value in anchor tag
please help me.Can you use EL directly:
<a href="example.jsp?id=${row.id"/"></a> -
XSLT problem with img tag in Saxon
Hi,
Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
Kindly help to resolve the issue.
Kind Regards,
AbhinandanPerhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.
-
JDeveloper 9i - Problem with using tag lib
I am having problem with building my project, using JDeveloper 9i.
My project includes custom tag libraries.
When I build my project, I get back the following error:
Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'
for every jsp file that has the taglib directive as follows:
<%@ taglib prefix="srp" uri="/srpTagLib" %>
Please note that the application runs OK, but it can not be build by JDeveloper for debugging purpose.
Any ideas? Please help!!!!
Thanks,
CathyWhat version is your tag library and what version is your deployment descriptor?
-
I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
attribute does not support request time values
I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
here is the .tld for my tag:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.1.2</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>My custom tag</short-name>
<uri>http://my.custom/tags</uri>
<tag>
<name>breadcrumb</name>
<tag-class>tag.BreadcrumbTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>breadcrumbs</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description>Pass in the list of Breadcrumbs containing the actual information
about what tags need to be rendered on the page.</description>
</attribute>
</tag>
</taglib>
Any thoughts/help greatly appreciated...I encountered the same problem in our environment. I did the same thing as
James. Simply re-initialize all variables in the do end tag.
Also, with the nested tags you use you may also need to implement cloneable
in the inner tag if the outer tag keeps references to all the inner tag
instances.
For instance if the outer tag kept a vector of references to the inner tag,
then you would need to use clone() on the inner tag before adding it to the
vector.
"James Lynn" <[email protected]> wrote in message
news:3af05d29$[email protected]..
> > But
> > with WL 6.0, the cell tag handler reuse the same instance each time the
> cell tag
> > is called and the member field is not reset
>
> I had the same problem. As a work around, I reinitialize everything in my
> doEndTag() method and it works.
>
>
> --
> James Lynn - Lead Software Architect
> Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
>
>
-
Help! Problem with Struts tag html:errors/
Hi everybody,
In my JSP page called addUser.jsp, i have the different Struts Tag
<html:errors/>
<html:form action="/addUser" focus="firstName">
</html:form>
I have of course the ApplicationResources.properties file with differents Struts properties:
errors.footer=</ul><hr>
errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
errors.ioException=I/O exception rendering error messages: {0}
and an other one:
error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
when I call the addUser form, my JSP page display:
null Some fields are missing. null
Have u any suggestion about my prob?
tx a lot
s.Hi,
can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
Thanks
Latha -
Problem with russian tags in english version of iTunes.
I'm using english language in MacOS:
end when I adding music to iTunes with russian tags and names it make it look like this:
but when I make russian as first language...
it becomes ok:
Question is: How to fix it, and listen russian music in iTunes with normal names and tags?
Thank you.It may be you need to convert the tags to Unicode. This app may help:
http://www.macupdate.com/app/mac/15953/id3mod -
Problems with and tags while reading the xml file
Hi
I am using the xml files in my project. The project uses Tomcat, JMS. The project is divided into some components which communicate with each oher thru JMS. The component for which I am responsible gets a dcoument object from the JMS which is a processed xml of the following format (the processing is done by the DBMS_XMLGEN package of oracle)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<filename>157_1000000001</filename>
<querydata>
<tabdata>
<tabinfo>Tab-id3</tabinfo>
<queryset>
<query name="Fax">
select a.ARLN_NAME,d.TICKETED_ORIGIN,d.TICKETED_DESTINATION, d.ENDORSEMENTS,to_char(d.DATE_OF_ISSUE,'DDMONYY') as DATE_OF_ISSUE ,d.EXCHANGE_DOC_TYPE,
d.PASSENGER_NAME,d.ORIG_ISS_AIRLINE,d.ORIG_DOC_NO,d.ORIG_PLACE_OF_ISSUE,
to_char(d.ORIG_DATE_OF_ISSUE,'DDMONYY'),d.ORIG_ISSUE_AGENT,d.CUR_OF_SALE,d.GROSS_FARE,d.EQUIV_CUR_OF_SALE,d.EQUIV_FARE,
d.PANDA_DEAL_CODE,d.ISI,d.reporting_date
from airline_master a,ticket_main d,ticket_conj e where d.doc_no = e.doc_no and d.iss_airline = e.iss_airline
and e.conj_doc_no = (select DOC_NO from TICKET_CONJ where CONJ_DOC_NO = 1000000001 and ISS_AIRLINE = 157)
and e.ISS_AIRLINE = 157 and d.iss_airline = a.ARLN_NUM_CODE
</query>
</queryset>
</tabdata>
</querydata>
the function on my side is like this
private void processMessage(ObjectMessage objmessage)
Document XMLreqObject = (Document) objmessage.getObject();
Element root = XMLreqObject.getRootElement();
String resultFilename = root.getChildText("filename");
Element tabSet = root.getChild("querydata");//doesnt work
ArrayList tabSetlist = new ArrayList(tabSet.getChildren ("tabdata"));//doesnt work
The code commented with "doesnt work", is not working. What must be the problem ?
Thanks in Advance
MartinOkay. Your original example XML didn't include < or > which was rather confusing if that particular feature was supposed to be the cause of the problem. Also calling them "tags" was rather confusing since "tags" is the term for the things that come at the beginning and of an element, like this:<data>...</data>Anyway, I assume your theory is that documents that don't have < in a text element process correctly and documents that do have < in a text element get "stuck" in the parser? Well, from your original description the process appears to be:
1. Create XML
2. Parse it into a Document
3. Send the Document via JMS
4. Receive the Document via JMS
5. Process it.
And it's step 4 that is "stuck"? That would be my guess based on the code you posted. -
XML File - Problem.with naming tags with XI standard functions
Hello,
simple (?) problem:
Receiver expects an XML file via file adapter.
(The source data comes from an RFC connect to XI.)
In the XML tags like these are expected (following W3C definitions):
A) </gdt:ValueGroup>
How to define a data type with a ":" in its name or to convert it to the required tag?
B) <gdt:ExtendedAttribute gdt:guid="4c102d6b077de7c1f0e27391e40bb80f" gdt:code="X01" >GR2 LI3</gdt:ExtendedAttribute>
This one is a real nice one. The part with "gtd:guid=" within the tag is variable. How to add such values into tag names?
Any ideas if this is possible with standard and how.
If this is the limit of XI I think we need an XSLT- or JAVA-maping program to generate the required file.
Thank you for any help!
Best regards
DirkHi Dirk,
just one thing:
>>>>The part with "gtd:guid=" within the tag is variable.
this is ok as it's just an attribute
of the ExtendedAttribute tag's name
so it can be variable without any problems
(you can fill it in the mapping for example)
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Problem with child tag - Could not resolve x to a component implementation.
Hello.
I am writing some chart component and got a problem setting property via child tag. Property is a custom class.
My directory structure:
Makefile oxcharts Session.vim stats.as stats.mxml stats.swf
./oxcharts:
ColumnChart.as MyTest.as
stats.mxml:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:oxcharts="oxcharts.*">
<oxcharts:ColumnChart id="myChart" showDataTips="true" width="600" height="310">
<oxcharts:test x="5"></oxcharts:test>
</oxcharts:ColumnChart>
</mx:Application>
ColumnChart.as:
package oxcharts {
public class ColumnChart extends UIComponent {
public var test:MyTest;
MyTest.as:
package oxcharts {
public class MyTest {
public var x:Number;
I got this error:
Error: Could not resolve <oxcharts:test> to a component implementation.
I guess something wrong with imports. Setting Number property via child tag works just fine.I'm gonna give a clerear example, I hope it'll help you better understand what I mean let's say I have a custom class named Login:
package ec
[Bindable]
public class Login
public var ID:int;
public var Role:String;
public function Login()
And I need to use this class within MyAmazingCanvas, so my main app will be like this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:oxcharts="ec.*">
<mx:Script>
<![CDATA[
import ec.Login;
[Bindable]
private var myLoginStatus:Login=new Login();
private function setLoginData():void{
myLoginStatus.ID=myID.text
myLoginStatus.Role=myRole.text;
]]>
</mx:Script>
<oxcharts:MyAmazingCanvas id="myCustomComp" myPublicNumber="323" LoginStatus="{myLoginStatus}" />
<mx:TextInput id="myID" />
<mx:TextInput id="myRole" />
<mx:Button id="setData" label="Set Data" click="setLoginData()" />
</mx:Application>
When I said at the top level I meant outside the scope of any function, altough is not a requierement, you can as well set it at a function level. -
Problem with custom tag attribute types
Hi,
I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
My tag looks like this:
<tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
I always get the message that the attribute ce is empty.
Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
Thanks a lot!
Regards PatrickIn JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
<attribute>
<name>attr1</name>
<required>true|false|yes|no</required>
<rtexprvalue>true|false|yes|no</rtexprvalue>
<type>fully-qualified_type</type>
</attribute> Notice the XML element <type>fully-qualified_type</type>
Not sure if you can do this in JSP 1.1 -
Problem with custom tag using TagExtraInfo
Hi,
I have a tag that create a Java variable using TEI. The scope of this
variable is driving me crazy. The problem is hard to describe, so the
email is a bit long - stay with me...
<pre:setvar id="foo" value="test" /> create a Java variable
named "foo", which has String value "test". I can use "foo" like this in
the page later: <%= foo %>.
Now, if I call setvar twice with same id:
<pre:setvar id="foo" value="test" />
<pre:setvar id="foo" value="another-test" />
This is still ok. By checking the compiled Java file, the first call
declare the var, the second call just use it without creating it again:
//first call
String foo=null;
foo="test";
//second call
foo="another test";
Now the problem comes when the frist call is in "if" statement (code is not
useful, only for demostration):
<% if (1>0) { %>
<pre:setvar id="foo" value="test" />
<% } %>
<pre:setvar id="foo" value="another-test" />
The compiled code looks like:
if (1>0) {
//first call
String foo=null;
foo="test";
//second call
foo="another test";
Variable foo is out of scope at the second call! (BTW, I can workaround this by
adding another <pre:setvar id="foo" value="" /> before the "if".)
Is it a fault in JSP specification? Or a problem when WebLogic implements TEI?
Any idea?
Thanks,
-- Jin
I encountered the same problem in our environment. I did the same thing as
James. Simply re-initialize all variables in the do end tag.
Also, with the nested tags you use you may also need to implement cloneable
in the inner tag if the outer tag keeps references to all the inner tag
instances.
For instance if the outer tag kept a vector of references to the inner tag,
then you would need to use clone() on the inner tag before adding it to the
vector.
"James Lynn" <[email protected]> wrote in message
news:3af05d29$[email protected]..
> > But
> > with WL 6.0, the cell tag handler reuse the same instance each time the
> cell tag
> > is called and the member field is not reset
>
> I had the same problem. As a work around, I reinitialize everything in my
> doEndTag() method and it works.
>
>
> --
> James Lynn - Lead Software Architect
> Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
>
>
-
Problem with Grouping Tag in iTunes
Hi,
I am trying to use getID3 to read the 'Grouping' tag from iTunes. It would seem that iTunes is writing these tags to my MP3 files, as, when I open them in Media Rage the Grouping Tag shows up OK. However, when I then upload the tracks to my server and use 'content_group_description' to read these tags (the getid3 code for the 'Grouping' tag, nothing shows up. If however, I change the Grouping Tag in Media Rage, and then re-upload, the Grouping Tag does show up.
I wonder if someone could help me troubleshoot why this is happening. I would rather not have to retag all of my files in Media Rage if possible.
Thanks,
NickAfter further investigation it would seem that the Grouping Tag is preserved such that getid3 can read it for the original files in my iTunes library. The problem occurs with files are converted using iTunes (from higher bitrate to lower bitrate MP3s). For these files, the Grouping Tag shows up in Media Rage, but cannot be read by getid3. If anyone has an idea why this might be, and what I can do to resolve this issue, I'd be glad to hear of it.
Thanks,
Nick -
Problem with ID3 tags in iTunes
I was hoping that I could get some clarification on how iTunes uses ID3 tags with mp3s. The problem I am having is that I have fixed all the ID3 tags on my mp3s using another program (Tag & Rename is the name of the program, it does both v1 and v2 ID3 tags) but iTunes still doesn't recognize the changes I have made. I have tried deleting my entire library, and readding all the songs, but for some reason it still has the wrong information. I tried opening the files with other music players, and they read the ID3 tags fine.
Thanks in advance!
I don't know if this helps, but the most noticable program is with my compilations. I changed all the artists to the actual artist name instead of "Various" that it used to say, but iTunes still reports the artist as "Various".I routinely change file names, change ID3 tags, and edit existing tracks using external programs. Once done, all I do is to double click the track in iTunes to ensure it reads updated ID3 tag info correctly from the track.
1. iTunes reads track info from the file everytime you play a track and saves any changes that you have made through external software to its internal database at "C:\Documents and Settings\<user name>\My Documents\My Music\iTunes\iTunes Library.itl" and "iTunes Music Library.xml". As an alternative to playing, you could also press Ctrl-I to display track info, at which time it reads updated info from the track and displays it.
2. If the filename has been changed for a track, iTunes prompts you to point to the right filename. When done, it populates ID3 tag info, while retaining the playcount and rating.
Hope this helps. -
JSP Compilation Problems With JSTL tags
My JSP worked well when I used JSP expressions, scriptlets, .... I tried to use JSTL instead and encountered some compilation problems. I am unable to see my mistakes and need help:
Problme #1:
int offset = 0;
try
<c:set var="offset" value="${requestScope.offset}" />
catch ( Exception e )
// do nothing
}The above code has two compilation errors:
Generated servlet error:
[javac] Compiling 1 source file
illegal start of expression
<c:set var="offset" value="${requestScope.offset}" />
^
Generated servlet error:
';' expected
<c:set var="offset" value="${requestScope.offset}" />
^
Problem #2:
<c:set var="threadBean" value="${requestScope.ThreadBean}" />
int threadID_int = ParamUtil.getParameterInt( request, "thread" );
<c:if test="${threadBean.threadID} != threadID_int">
throw new AssertionException( "The two threadID are not the same." );
</c:if>Generated servlet error:
illegal start of expression
<c:if test="${threadBean.threadID != threadID_int}">
^I have deleted the Java code around the JSTL tags. Now, what is wrong with this <c:if test=" ... "> tag? It seems that I have problems to get JSTL tags right.
It seems that I have problems to get JSTL tags right....
<c:if test="${attachBean.attachMimeType.startsWith('image/')}">
<html:img page="getattachment?attach=<c:out value='${attachBean.attachID}' />" alt="<c:out value='${attachBean.attachFilename}' />" title="<c:out value='${attachBean.attachFilename}' />" border="0" />
</c:if>error message:
74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
Maybe you are looking for
-
Spry Collapsible Panel Resize Problem
I have 2 collapsible panels within a table on a site, and it works great, except for the fact that when all of the panels are closed: In IE7: The tabs move to the middle of the table and break the layout. In Firefox: The tabs move to the BOTTOM of t
-
I can no longer select multiple addresses from my Mail address book when forwarding emails
Since updating to Mavericks I cannot select multiple addresses from my address book when forwarding emails. I can select them individually using the + sign in the address bar but cannot select any when I open my Contact list as I have done with previ
-
CANNOT PRINTING FROM WINDOWS 7 TO MY PHOTOSMART c7180 ALL-IN-ONE (I CAN SEE MESSAGES IN QUEUE)?
-
HT201318 icloud storage and how to use it.
pls will some 1 explain to me in simple terms how to move my data off my iphone onto the £28 a year icloud storage im paying for but do not have a clue how to use !! i cant even take pic's on my fone now as stating not enough mem, but i've got 20 GB
-
Problems trying to correlate BAM over multiple Send Ports
I am having an issue with BAM in BizTalk 2010. I have a Messaging only solution using 3 Receive Ports and 3 Send Ports. The Processing received an XML file which contains Inventory updates for product items. The flow is as follows: 1) Receive a fi