I write that Test bean only for this mail for example.
Actually i am implementing ATOM 0.3, and there is this atom:content tag:
<atom:entry>
<atom:content>
xxxxxxxxxxxxx
</atom:content>
</atom:entry>
.. and it can contain all kind characters, and also some HTML.
The problem is that Digester seems to parse html also, but i dont want
to parse it, i want to attach it to my Content bean.
class Content {
private String text, type, lang, base;
// getter&setter
}
my current digester code:
digester.addObjectCreate("entry/content",Content.class);
digester.addSetProperties("entry/content","type","type");
digester.addSetProperties("entry/content","lang","lang");
digester.addSetProperties("entry/content","base","base");
digester.addBeanPropertySetter("entry/content","text"); // this line
doesnt work :(
- Artsi
ti, 2005-11-01 kello 10:54 +0000, Marco Mistroni kirjoitti:
> Hello,
> Sorry I read question too quickly..
>
> According to your XML, you should have a javabean for test, correct?
>
> As I said, one solution to get the <p> tag will be to create a javabean
> For the <html> tag, and on your HTMLBean create a property
>
> If I remember correctly, you can specify a property (let's say, propertyX)
> On your Bean that matches the <P> tag, since setP is little 'bad'
>
> Any reason of why you are using Digester with HTML?
>
> Regards
> marco
>
> -----Original Message-----
> From: Marco Mistroni [mailto:mmistroni@waersystems.com]
> Sent: 01 November 2005 10:50
> To: 'Jakarta Commons Users List'
> Subject: RE: [digester]
>
> Moi,
> You have to create a Bean for <HTML> like you did
> for test (that's one solution)
>
> kiitoksia
> marco
>
> -----Original Message-----
> From: Arto Pastinen [mailto:arto.pastinen@ofw.fi]
> Sent: 01 November 2005 10:40
> To: commons-user@jakarta.apache.org
> Subject: [digester]
>
> Hi!
>
> I need little help with commons digester, anyone?!?
>
> I have bean:
>
> public void Test {
> private String html;
> // getter&setter
> }
>
> and XML:
> <test>
> <html>
> <p>
> blaablaa
> </p>
> </html>
> </test>
>
> How can i set html to bean so, that Test.html contains also <p> tags?
>
> Thanks, Artsi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|