People normally go into the holodeck dressed for the occasion. I assume they do that so they don't have to change clothes in the holodeck. But it shouldn't be a big deal to get some clothes replicated for you in the holodeck itself, either.
I was about to point out the entrance scene from Badda-Bing, Badda-Bang, about clothes, but you beat me through it.