Seasons Greetings Everybody!

I want to use a Textfield to dispaly details of link information to my website so that others can copy and paste these details upon their website. I want to prevent visitors from being able to type anything in this field altogether.

Does anyone know how?

Thanks

Then why use a textfield? Simply post the text. If you want to make it look like one, then use a small table and configure it properly.

> I want to prevent visitors from being able to type anything in this
> field altogether

This isn't a JSP question but relates more to the markup language used; I guess HTML here. Use the 'readonly' attribute of the INPUT element:

<input name="txtInfo" value="some-info" readonly="readonly">

If you don't want this field to be submitted on form submission, use the 'disabled' attribute instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.