ATLANTA (AP) -- John Lannan wants to be able to help the Nationals with his arm and his bat. For the first time this season, he was productive both ways.
Lannan gave up two runs in 5 2-3 innings and had his first two hits of the season to lead Washington to a 5-2 victory over the Atlanta Braves on Saturday night.
"Definitely a monkey off the back," said Lannan, who also drove in two runs. "I want to help the team as much as possible.
Lannan (6-6) earned the win eight days after he escaped with only a small cartilage break in his nose when he was hit by a line drive. He was 0 for 32 this season before his bases-loaded grounder made it through the middle to drive in two runs in the second inning.
"Unbelievable," Nationals manager Davey Johnson said. "I couldn't believe that was his first hit. I thought about calling timeout and getting the ball."
Lannan added a single in the sixth after Wilson Ramos hit a two-run homer. Ramos had a run-scoring double in the second.
A career .083 hitter, Lannan ended his seasonlong drought when his grounder bounced past Tommy Hanson and over second base, driving in Rick Ankiel , who walked, and Ramos.
"I just had some fastballs to hit and I was able to make contact and get it through the infield," Lannan said.
Lannan didn't miss a start after being hit by Ty Wigginton 's line drive. Johnson called the left-hander "a tough kid from New Jersey" before the game. He actually is from Manhasset, N.Y.
"Just having last week off and that All-Star break helps," Lannan said. "It helped me get over it a little bit. It's something that's going to happen. Balls come up the middle."
Drew Storen pitched the ninth for his 24th save.
Alex Gonzalez hit a two-run homer for Atlanta.
Michael Morse 's leadoff double sparked the Nationals' three-run second inning off Hanson (10-5). Morse scored on another double by Ramos before Lannan's two-run single.
Hanson suffered his first loss since May 27. He pitched 5 1-3 innings and gave up season-high totals of five runs on eight hits, falling to 0-2 in three starts against the Nationals this season. Hanson had two walks and eight strikeouts.
Lannan gave up five hits and four walks but was helped by double plays in the fourth and fifth innings.
A man dressed in a white wedding dress was quickly tackled by security officers after he ran into the outfield in the bottom of the eighth inning. Players in both dugouts chuckled and fans cheered and flashed their cameras as the man stopped a few yards away from right fielder Jayson Werth .
Security officers started to escort the man off the field through the Braves' bullpen, but bullpen coach Eddie Perez apparently directed the group toward a tunnel behind the right-field foul pole.
There was a brief delay in the ninth when home-plate umpire Kerwin Danley was hit by Ankiel's foul tip. Danley, who appeared to be hit immediately below his facemask, was knocked on his back. He remained in the game.
NOTES: Lannan is 7-4 in 13 career starts against Atlanta, including 5-2 at Turner Field. ... RHP Chien-Ming Wang is scheduled to start for Triple-A Syracuse on Tuesday. He will make his fifth rehab start as he returns from 2009 shoulder surgery. ... Johnson said C Ivan Rodriguez is "getting close" in his recovery from a strained right oblique. ... Braves manager Fredi Gonzalez rested LF Nate McLouth to start Wilkin Ramirez against Lannan. ... There was a postgame concert by the B-52s.