Vierda Mila

Ranch Hand
+ Follow
since Feb 25, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vierda Mila

Hi Paul,

Thank you for your reply.
I have found the caused of the problem. Just want to share here if somebody has same problem with me.
If the feature fit:scroll doesn't works properly, try to add attribute regPoint and regAlign. add both attribute works for me.
Thank you.


regards,
-Vierda Mila-
Hello everyone,

I'm trying to create smil document for sending MMS. The problem is I have image and long text.
The image received fine but the text has cropped. I'm trying use smil region attribute fit scroll but the result is there's scroll bar but the text cannot be scrolled. I'm using dom4j for configure this smil document. My code as per below:



kindly advice and really appreciate for any kind help. Thank you.


regards,
-Vierda Mila-

(Edited to make code not so wide: PC)
Hi Ivan,

Thanks for your kind reply. will check my SOAP message again

best regards,
-Vierda Mila-
14 years ago
Dear Ivan,

Thank you for your kind reply and sorry for incomplete information.
Actually I'm using SAAJ for MM7 and the specification as per below :

When the MMS content is delivered, CP differentiates each service using the username and password parameters which also act as an authentication for the CP, therefore, each service must have a unique username. The authentication process is done on HTTP Header , with the following format :

POST /mm7adapter HTTP/1.0
Host: 192.168.31.143:9800
User-Agent: CDMS v.1.0
Authorization: Basic bG9hZHRlc3Q6bG9hZHRlc3Q=

Autorization header is following HTTP Basic authorization, as explained bellow:

Authorization: Basic base64_encode(“username:password”)
MM7 request messages shall be transferred in an HTTP POST request. MM7 responses shall be transferred in an HTTP Response message. The media type “text/xml” shall be used for messages containing only the SOAP envelope. MM7 requests that carry a SOAP attachment shall have a “multipart/related” Content-Type. The SOAP envelope shall be the first part of the MIME message and shall be indicated by the Start parameter of the multipart/related Content-Type. If a SOAP attachment is included it shall be encoded as a MIME part and shall be the second part of the HTTP Post message. The MIME part should have the appropriate content type(s) to identify the payload. Figures below provide few examples of the message structure. This MIME part shall have two MIME headers - Content-Type and Content-ID fields.



already googling for this problem for 2 days and not yet find best solution.
Thank you for any kind help.

best regards,
-Vierda Mila-
14 years ago
Dear all,

I'm trying making connection by calling method call() from SoapConnection but it always throw

com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message

I have provide username and password in Mime header as per below:



really appreciate for any kind help.

Thank you
-Vierda Mila-
14 years ago
Hi all,

is there any way of using template for String in POJO?? I mean this template will act as placeholder and we can change it dinamically.
notice that I'm not talking about JSP here.

Thank you for any information.

reagards,
-Vierda Mila-
14 years ago
Hi all,

I'm learning about EL and trying some code, the code as per below :

Dog.java


DogOwner.java


DogServlet.java


DogLover.jsp


all above code compile perfectly but when I run DogServlet, it turn to DogLover.jsp and gives result as per below:

Dog's name is Spike

Dog owner's name is ${owner.name}

why the EL doesn't work here, I mean why it doesn't replace name of owner?? thank you for any explanation.

regards,
-Vierda Mila-
14 years ago
JSP
Hi Deepak,

thanks for your prompt reply and ouch...silly me, yeah I forgot to run the servlet first
will be careful next time

regards,
-Vierda Mila-
14 years ago
JSP
Hi all,

I'm just trying code in HFSJ page 346-347 with a little modifications.
my code as per below

Person.java


MyServlet.java


Test.jsp


all above code compiled perfectly but when I run, it throw null pointer exception.
I realized in Person.java, I don't define name variable. Does it the cause of NPE?? but I think it should read the name from MyServlet.java when I call setName method.

What did I miss here? thank you for any reply.

regards,
-Vierda Mila-
14 years ago
JSP

but what about the c2 reference? isn't that too being getting referenced to null when it is passed as the argument for the go method (to create the reference for c3)?



actually the argument in the go method is not c2 but Copy of the reference of c2.
Since it copy reference, you only make this copy reference to null but you cannot make original version (c2) to be null or refer to another object.
Please see this for better understanding.

Hope this helps.

Hi N Pats,

ok I'll try to explain

Cage<? extends Dog> cg1 = new Cage<Dog>();



Cage <? extends Dog> --> means that you can be assigned a collection that is subtype of Cage and type for<Dog> or anything that extends Dog, so below also correct :

Cage <? extends Dog> cg1 = new Cage <Poddle>(); --> according Poddle is subtype of Dog


In the first case, the type in LHS and RHS is the same. Why is it not the same in the second case? Why can't we write the following
Cage<? extends Dog> cg1 = new Cage<? extends Dog>();



well, the explanation for this is simple you CANNOT use wildcard notation (<?> or <? extends ClassName> or <? super ClassName>) in the object creation so new Cage <? extends Dog>(); --> will generate compile error.

please anyone correct me if I'm wrong. thanks

regards,
-Vierda-
Hi N path,

one rule you have to remember here that polymorphism is not apply for generic type.
if you provide as per below it will result compile error :

Cage<Animal> cg1 = new Cage<Dog>();

but these example is ok :

Cage <Animal> cg1 = new Cage <Animal>();
Cage<? extends Animal cg1 = new Cage <Dog>();

please check this one for further information

regards,
-Vierda-
Hi Abhi,

Check this one
Hope it helps

regards,
-Vierda-
Christophe,

Thank you, it works.
15 years ago
Dear all,

I have 2 classes and each class need object from each other as instance member. I have tried to compile these 2 classes and it always fail and compiler tell that cannot found symbol. it make sense because I fail to compile either class A or B.

My question is how to compile class like these according these 2 classes inside in same package, thank you for any kind help.




regards,
Vierda
15 years ago