Fernando Margueirat

Ranch Hand
+ Follow
since Jun 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Fernando Margueirat

Hi

I am working on a project where we are sending some HTML emails to our users. These emails can be opened in any type of devices and we are trying to make this emails look as good as possible in each of those devices. We are applying Responsive Design concepts to our HTML designs but found that most of the email clients ignore CSS (even if it is in-lined) and most media queries.

Can anyone recommend some good practices and workarounds to avoid these problems?

Also, does Murach.s book covers HTML5 and CSS in emails? I couldn't find it in the TOC so I'm assuming the answer is no, but I want to confirm it.

Thanks

FM

Paul Sturrock wrote:Watch out, there are a lot of very poor tutorials out there. Hibernate's documentation is a better source - it's example covers the need for a transaction.



Thanks, I learned my lesson the hard way .

Fernando Margueirat
Thank a lot for you quick reply. That was the problem. I guess the tutorial I was using was not very good.

Fernando Margueirat
Hi everyone

I have tried Hibernate in the past for a couple of pilot projects but I'm a total newbie. I am trying to do some basic testing/configuration for a new project I am working on. My configuration is:

MS SQL Server 2008 R2
Eclipse Helios (3.6.2)
Hibernate 3.6.4

I've created a simple table



a simple class



my hibernate.cfg.xml



and the company.hbm.xml mapping file



then I run this simple Java app to test it



I don't get any errors, and I can see the correct SQL statement in the console

Hibernate: insert into t_company_test (company_name) values (?)


but no records are inserted in the database. I did a debug with the profiler and found that it executes the following



Any ideas of what am I missing or doing wrong?

Thanks

Fernando Margueirat
Thanks Ulf

I was affraid that was the response. But after looking a little more into forms I think they might be suitable for what I need to do. And it looks quite simple to be done in iText.

Thanks again

Fernando
... generating PDF files using another PDF as a template. The new PDF has to replace certain text fields from the template (based on their name) with data extracted from other sources.

The idea is to let the end user generate their own templates using any PDF editing program and asking him/her to name the fields that have to be replaced dynamically following a specification.

Thanks

Fernando
Atul

If you are running a Windows computer you can add an alias by editing the file %windir%\system32\drivers\etc\hosts like

127.0.0.1 yourhostname

That way when you refer to yourhostname Windows will redirect it to the 127.0.0.1 IP. You can do the same in other OSes but I don't know how.
13 years ago
Ben

Yes, that's where I changed the cookies setting. I found the problem and solution in a IE forum. If the servername has an underscore (e.g. my_server) I don't know why but IE will reject the cookies.

Thanks everyone for your help.

Fernando
13 years ago
Never mind guys. The problem has f...ing Windows Internet Explorer. Even though I have cookies enabled and my web server added to the Local Intranet with Low security, it is still not creating the cookies.

I've tried it in Firefox without any problems. GRRRRRRRRRRRRRRRRRRRRR.
13 years ago
Ben

I am using relative URLs, as in my example above.


Your question made think of trying http://myservername/test1.jsp instead of http://localhost/test1.jsp or http://127.0.0.1/test1.jsp when browsing locally on the server. And in that case (using myservername) it failed. So it has to related to the domain. Also, I still don't see the cookies being created.

Fernando
13 years ago
Bill

Thanks for the correction. That does mean that I have to create the cookie myself or will Tomcat do it for me?

Fernando
13 years ago
Nathan

When I print the session.toString() when running locally I get the same values in both JSPs but when I run it from a remote computer I get to different values. This confirms that Tomcat is creating a new session when moving to test2.jsp.

Re the cookies, it is not creating any cookies either locally nor remotely. And I think it shouldn't since I am not explicitely creating a cookie and I don't think Tomcat uses cookies to track the sessions. Correct me if I'm wrong.

I would love to hear what was the other thing to check if you remember.

Thanks

Fernando
13 years ago
Ben

Thanks for the response.

Cookies are enabled in both browsers. And if I switch the computers and run Tomcat from the "remote" computer the problem persist. Locally (the one that use to be remote) the page loads ok, but remotely it fails. BTW I forgot to mention that I am using Tomcat v. 5.5.20. I'll add that to the original post.

Fernando
13 years ago
I am having this weird problem with Tomcat v.5.5.20 . I have a simple JSP that sets a session attribute (session key) and has a form with a couple of text input fields and a submit button. The action of the form is another JSP and the method is post. The other JSP reads the session attribute. If I browse these JSPs locally I have no problems reading the session attribute in the second JSP. But if I do it from another computer, the seconds JSP gets a null value for the attribute. It looks like the session has been lost. Any ideas of what I am doing wrong or if there is any setting missing in Tomcat? Here's the code for the JSPs.

test1.jsp


test2.jsp


Thanks

Fernando

[ August 22, 2007: Message edited by: Fernando Margueirat ]

[ August 22, 2007: Message edited by: Fernando Margueirat ]
[ August 23, 2007: Message edited by: Fernando Margueirat ]
13 years ago
Sorry to bring up and old post, but since I am looking for the same thing I don't want to open a new one.

Does anyone know about a site that lists IT events by cities? I haven't been in any events for a while until I went to a BEA/Adobe event a couple of weeks ago and it remind me of the benefits of this kinds of events: get a quick hands-on preview of new products, chance to do some networking, and why not, get some freebies. I am interested mainly in events in Toronto, Canada. I already checked http://www.jug.org and http://www.meetup.com/cities/ca/on/toronto/ but those are user groups meetings. Still interesting but I am more interested in company organized events.

FM
[ May 18, 2007: Message edited by: Fernando Margueirat ]
14 years ago