Samar Land

Ranch Hand
+ Follow
since Sep 22, 2015
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
22
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Samar Land

Ron McLeod wrote:

The setReplyTo method takes a Address[] parameter (or sub-classes like InternetAddress[] or NewsAddress[]).  I'm not sure how you made this work by passing in a String[].



I passed the ((InternetAddress[] mailAddress_TO))
4 years ago

Ron McLeod wrote:

The setReplyTo method takes a Address[] parameter (or sub-classes like InternetAddress[] or NewsAddress[]).  I'm not sure how you made this work by passing in a String[].



I passed the ((InternetAddress[] mailAddress_TO))

String abb = user.getStoreAbbreviation();
               mailAddressTo[0] = abb + "test1@test.com" + ",";    
               mailAddressTo[1] = abb + "test2@test.com" + ",";    
               mailAddressTo[2] = abb + "test3@test.com";
               InternetAddress[] mailAddress_TO = new InternetAddress[mailAddressTo.length];
               for (int i = 0; i < mailAddressTo.length; i++) {
                   mailAddress_TO[i] = new InternetAddress(mailAddressTo[i]);
               }
4 years ago

Ron McLeod wrote:

Samar Land wrote:I was able to get it working when I passed ...


Does this mean that your issue has been resolved?



Yes!
Thank you for all of your advises.
4 years ago
I was able to get it working when I passed my list like:

4 years ago
Mmmm,  how so? I couldn't figure it out.
4 years ago
I'm trying to set replyTo attribute in my Java mail email (to more than one email address) , I was able to set one email address and worked fine

                     

tried this,

how could I pass the list?
Any help?
4 years ago
Hello.

I'm trying to develop new functionality to generate a PDF from a JSP page to send it as attachment to users.

I was able to merge a velocity template and merge into String then send it as an Html attachment but not as an PDF
Am I supposed to pass the JSP file Name or the mapping of this page?

so, I'm wondering what's the best  way to develop the functionality to generate a PDF?  flying saucer and/or iText?

Here what I've done to generate the PDF..




Am I supposed to pass the JSP file Name or the mapping of this page?

so, I'm wondering what's the best to develop the functionality to generate a PDF?


Does anyone knows how to convert a jsp or html file to pdf format using Java? Something else than flying saucer and/or iText?
Or maybe a good tutorial to understand more on how the implementation og using flying saucer and/or iText.

Thanks in advance




Yup.. this was the issue, I had to know this before :/

the fn:length() only works on String (which would return the value of String#length() method) and on Collection (which would return the value of Collection#size() method).

5 years ago
JSP
I think I got why I'm getting this issue,

the fn:length() only works on String ,,,

5 years ago
JSP
I want to convert my code from struts to jstl .. This was working in struts:





This what I'm trying to do ..  by setting the value of each variable  .



I'm geting this error:

   
5 years ago
JSP
It needs to set the input to the value you have calculated at the end :/


This code is working finally.


All the values are passing correctly through the Js file, just not applying the value on number textinput.

Not seeing any errors as well.
Here what I've done so far.

I don't have any errors, but the value isn't applying on the input

When I debugged the JS file, the value was passing correctly,




the input

Bear Bibeault wrote:Before you do anything else, you need to fix your broken HTML. You have multiple elements with the same id. That is not allowed.



where were that reoeated ids?