web-development

How to input Date to a Struts2 action from a jsp?

I am facing a lot of problems here in my jsp page. What tag I should use to get a date (yyyy-MM-dd) from user and store it in a Date property of a Struts2 action ? The property in my action is declared to be of java.util.Date. I want the input from jsp page to land in this property. please help. I get Invalid field error (in JSP) if ...

Am I under risk of CSRF attacks in a POST form that doesn't require the user to be logged in?

I'm probably being a total noob here, but I'm still uncertain about what a CSRF (Cross-Site Request Forgery) attack is exactly. So lets look at three situations... 1) I have a POST form that I use to edit data on my site. I want this data to be edited only by users that are logged in. 2) I have a site, which can be used by both users w...

Stack overflow error in C# set/get

I was working on a public comments part of an application on Friday when I got a stack overflow error, which confused me so I thought I'd ask for help. And searching the web using the expression 'stack overflow' is a bit self-defeating! I wanted to do an HtmlEncode on the set statement of the field in the class, before sending an insta...

Disable auto resize flash object when opening in IE

If open yahoo finance chart (link pasted below) in IE, the chart will be resized to fit the viewing window, and making the chart viewable without scrolling down. However, this makes the chart become smaller for me. I would like to see original size, which requires me to click the setting bar and change something to make it restore origin...

replace only one variable in web.py templates

I am passing variable to template in web.py and have the same condition in some places. Like this: $if myvar=="string1": $passed argument1 ............ $if myvar =="striung2": $passed argument2 If say myvar is "string1" and I pass passed = "AAA" then I have AAA argument1 on my page, but the other if statements get replaced by e...

JavaScript: How to determine the web "fold" programmatically?

Question: How can I determine the "fold" programatically (how much vertical content the browser is displaying)? The "fold" defined as where you can no longer see / have to scroll. I've tried with JavaScript to simply determine the browser window size to determine the fold; unfortunately - this doesn't work well because some browsers ha...

How do you handle browser cache with login/logout?

To improve performances, I'd like to add a fairly long Cache-Control (up to 30 minutes) to each page since they do not change often. However, each page also displays the name of the user logged in (like this website). The problem is when the user logs in or logs out: the user name must change. How can I change the user name after each l...

Credit card system implementation?

My site is going to have a credit system that basically works a lot like a credit card. Each user has an unlimited credit limit, but at the end of each week, they have to pay it off. For example, a user might make several purchases between March 1st and 7th, and then at the end of March 7th, they would be emailed an invoice that lists al...

Centered div with a transparent background with JQuery

Hello, how to center a div across all browsers and behind this div there should be a transparent background layer covering entire screen of browser like lightbox. Thanks ...

Load page to Modal Window from form with jQuery

Hi, I´m working on a website with a purchase process. I have a form generated by some PHP that looks like this: <form name="order_form" action="'.$thePayreadApi->get_server_url().'" method="post" id="payer-form"> '.$thePayreadApi->generate_form().' <input type="submit" value="Klicka för betalning" /> </form>'; When the form is submitt...

Best web application language for Delphi Developers

I'm Delphi developer, and I would like to build few web applications, I know about Intraweb, but I think it's not a real tool for web development, maybe for just intranet applications so I'm considering PHP, Python or ruby, I prefer python because it's better syntax than other( I feel it closer to Delphi), also I want to deploy the appl...

Most up to date environment for classic ASP development

Hi all, I've inherited a Classic ASP application that requires some maintenance. What's the most up to date/capable IDE and Operation System that I can use to perform this maintenance? I'll be setting up the Env in a VM - so won't be tied to it full time. Hopefully there's something newer than Visual Interdev for me to use. Ideally I...

Local sites not displaying in VirtualBox when using Django's local development server?

Hello. I develop web applications using Django on Mac OSX 10.6. I use Django's built in local development server which I run on my computer's IP (such as: http://192.168.0.11:8001/). I test my applications in Firefox, Safari and Chrome and all display fine. I use Sun's VirtualBox with 3 different instances of Windows XP that have IE6, IE...

SVN, Samba and Symbolic Links. How to get them all to play together?

I've got a website project under version control that relies on files from an unversioned directory on the same server via Symbolic Links. I'm currently storing the symbolic links in the repository. The idea is that if someone checks out a working copy on to the same server they can edit and test the working copy of the project before c...

Fastest way to learn Flex and Java EE?

Ok so me and my 2 friends have to make a webapp and well we think it's a good opportunity to learn JEE and Flex. The thing is we have very little knowledge about them and we have only 3 months to do it (it doesn't have to be super complicated). So my question is: what, in your opinion, would be the fastest way to learn them both? I guess...

Why is === faster than == in PHP?

Why is === faster than == in PHP? ...

Cannot Access the CSS while developing in Ubuntu?

Hi, I am developing a web application using PHP and mysql.I was doing the intial development in a windows machine and now shifted to ubuntu ultimate edition.I installed apache/PHP/Mysql and configured them. I placed my web folder in /var/www and when I give the URL in browser,I am not getting the page with CSS. Not Working: href="./c...

Do you use a grid system when designing a web page?

I'm trying to figure out why I would use a grid system. I have read some but I just don't get it. I'm used to just putting stuff in html on a page and beind done with it but I have a new project and would like to use a grid because apparently it is a best practice. I read in one article referenced in another SO question and it said th...

Session Fixation in ASP.NET

I'm wondering how to prevent Session fixation attacks in ASP.NET (see http://en.wikipedia.org/wiki/Session_fixation) My approach would to this would normally be to generate and issue a new session id whenever someone logs in. But is this level of control possible in ASP.NET land? ...

Deploying WCF Services

I have a WCF visual studio project, which contains many SVC files. Can I compile each SVC file into its own dll file? my target is to be able to deploy each svc file separately without touching other services, but maybe keep them on the same website what options I have? ...