Re: please , from 1.1 to 2.0 , some incompatible problem?

"Marcello H" <[email protected]> Fri, 26 May 2006 15:17:35 +0200
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
quiver,

I don't know exactly what seems to be the problem, but hope to
kick you in the right direction. I've got 2 possible ideas.


-1-
It seems to me that it has something to do with the
sub.wmm-file.

What if you made it a comment like this:
 ##include as macro "sub.wmm"

Does the second #set $countX=3D.... work?

If so, then uncomment the include and start analising the
sub.wmm-file.

You can do that by first commenting everything inside the file, and careful=
ly
uncomment 1 or several lines at a time.


-2-
If you downladed a WM 2.0, perhaps you also can take a good look
at the wm.defaults-file, and see how the directives are configured.
(It good be, that you have your own overriding config in WM.properties,
that perhaps point to a old location.


Good luck,
Marcel


2006/5/25, quiver <[email protected]>:
> HI:
> excause me , my english is not good ,
> thank you for reading my post
> thank Marcello H 'reply
>
> my incompatible problem is like this :
> now has two file , one is  body.wm , another is sub.wmm
>
> sub.wmm has thereunder contents  , not defined inside #macro   , maybe li=
ke
> a global variable
>
>     #set $countX=3D0
>
> body.wm has thereunder contents
>
>     #include as macro "sub.wmm"
>
>     #set $countX=3D1
>
>
> in webMacro1.1  , these is can run normally,
> but in webMacro2.0 , will produce these exception
>
> org.webmacro.directive.Directive$NotVariableBuildException: #set: Argumen=
t
> must be a variable
> java.lang.ClassCastException: java.lang.Integer at ............
>
> code like th is is many , it is hard to modify every where  ,  thank you
> again ..............^_^
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications i=
n
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D107521&bid=3D248729&dat=
=3D121642
> _______________________________________________
> Webmacro-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/webmacro-user
>


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642