After you file

I worked in 2 states OH and NJ six months a part staying with same employer. I have a W2 which mentions 2 states tax in 2 pages . Do i need to attach 2 W2s or same W2 will work .?