zainu Mehmood

Ranch Hand
+ Follow
since May 09, 2007
Merit badge: grant badges
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by zainu Mehmood

Excellent explanation Mr.Seetharaman. Thanks a lot .
11 years ago
Hi All,

Bit confused so can you please tell me what is really happening here behind the scenes.

Scenrio 1 :



Scenrio 2 :



Specifically what does List<?> really doing here.

sorry if its a dumb question!

BR



11 years ago

Bear Bibeault wrote:It is not the right approach. Modern JSP should have no Java code in them at all.

If you need to execute code, you should look into using EL functions or custom tags.



Thanks for your reply. Can you give me some pointer to recursively iterate a list using JSTL.
12 years ago
JSP
Hi,

I have a list which contains menu items. I have to read this list recursively to add UL and Li tages for parents and childs. So i have added a java function in my JSP to create code recursively. But i am getting some problem and i feel its not the right approach. Can you please suggest me if there is any better approach for this.

BR
12 years ago
JSP
Hi Guys,

Need a suggestion, i have to call some external Restful webservices in my liferay portlet. From better deisgn point of view, can anybody suggest me from where should i call this code. Perhaps my localservice generated from service bulider? Any suggestions?

BR
12 years ago
Hi All,
I am doing remote staging but i am facing this problem. Some portlets do work fine and they got transfered from staging to production system but in some this problem appears. I have only one system so i am running two instances of tomcat, one is running on port 8080(staging) and one on 8081(production). When i transfer my portalet then on staging side i got the following exception.


while on the production side i got a number of exception so here are some.



Any help?
12 years ago
Dear Paul,

Thank you very much for your reply. I am sorry if i was unable to explain my problem in a good way. I do know about anchor but thats not the question. My Question is very simple and that is that Liferay is converting # into a hex value( %23) into my URL. I don't want this because only with # sign in URL i can go to the specific paragraph. With %23 in URL it doesn't go to the specific paragraph but when i do replace manually %23 with # in address bar of browser, every thing works fine. I hope now you will understand my problem.

Regards.
12 years ago
Hi Bosun,
Thanks for the reply. But i guess here encoding is the problem. I mean liferay is already doing encoding and converting # sign into %23. While i don't need it.
Even then i tried to encode my URL after your reply with java URL encoder but it does not solve my problem rather it generates now www.myurl.com%2523link which was www.myurl.com%23link before my encoding. What i need is simply www.myurl.com#link .

I am sorry if misunderstood your answer.

Regards.
12 years ago
Hi Guys,
In liferay portalURL repalces my #sign with %23 (HEX of #) in URL which i don't want.
using following code


where messageID contains a URL which has a # sign in it. I need # sign because i want to open my page from a specific location not from the beginning.

Any suggestions.


12 years ago
Hi Guys,
I need a help.In method onPreviewFrame(byte[] data, Camera arg1), i get byte[] which is YUV encoded. i am transferring this byte [] through TCP to my PC.What i want is that i want to get a MPEG file from these YUV encoded frame.But i don't know a way to convert these YUV frames into MPEG file.Moreover, it would be even better if i can change this YUV frame into MPEG frame at Android and then send that MPEG frames through TCP to my PC. Please help me in this.


Best regards,
Zee
13 years ago
Hi Guys,
I want to play video from Byte[].Any help?
13 years ago

Joe Ess wrote:"For every complex problem there is a solution that is simple, neat and wrong" - H L Mencken


Love it
I forgot to mention.I am getting byte[] array of valid JPG image and sending that byte[] image by image through socket byte[] at a time and so on.Now at client client side i am receiving data in chunks and now just need to identify the eof.Things are very simple so far and i dont wana make them complex by introducing different kind of headers.
Hi Guys,

I am sending many images from my server to client in sequence continuously through TCP.Now at client,how should i detect that this is end of my one image so write it down in file system and then next image and so on.

Best regards,
...
Hi,
I got it working now .But now i have got another strange problem ;).

I am doing two things with the byte array of this JPG image using following code of lines


here i am storing the image on sd card as well as sending that byte array through tcp to on my PC.Now image that store on sd card is just perfect but image that receive on my PC is whole black and its so irritating.

But anywaz thanks a lot for your help.
13 years ago