0

I am in a project in which i have to modify a html file's textview with java.

In java I have a value in a String as follows

String a ="HAI";

I have to set this "HAI" to a html textfield.

How to do this.

Any help should be greatly appreciated.

4
  • 4
    Do you use Servlets, JSP or JSF? Commented May 22, 2014 at 12:28
  • You can't set a value from java class to a plain html Commented May 22, 2014 at 12:29
  • Unless that HTML contains some Javascript.. Commented May 22, 2014 at 12:37
  • I did it with Javascript.Thank u all for your feedbacks. :-) Commented May 29, 2014 at 7:36

1 Answer 1

1

You can not do that in plain java, Unless you consider HTML as plan text and do text edit, Use JavaScript or JQuery

Sign up to request clarification or add additional context in comments.

1 Comment

Thank u for your valuable feedback.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.