Questions tagged [struts-html]

Use this tag for questions related to struts-html tag library.

Struts-html is tag library part of Struts framework. The tags in the Struts HTML library form a bridge between a JSP view and the other components of a Web application. Since a dynamic Web application often depends on gathering data from a user, input forms play an important role in the Struts framework. Consequently, the majority of the HTML tags involve HTML forms.

The HTML taglib contains tags used to create Struts input forms, as well as other tags generally useful in the creation of HTML-based user interfaces. The output is HTML 4.01 compliant or XHTML 1.0 when in XHTML mode.

Attribution : http://struts.apache.org/1.2.9/userGuide/dev_html.html

42 questions
1
vote
1 answer

While using strutst html tags, how can I call onclick event on submit button?

I have parent page where there is an element. Onclick of that element popup window comes. On popup window there is one textbox and submit button. Now I want to refresh parent page when submit button on popup window clicked. I have solution to…
mahendra kawde
  • 855
  • 4
  • 25
  • 44
1
vote
4 answers

Populate field from a tag

I want to populate a field from a session bean. I attempted this: `" />` but to no avail. thanks.
komidore64
  • 55
  • 1
  • 1
  • 8
1
vote
1 answer

Adding name and id properties to textarea (struts)

i mostly do CSS and php so i'm kind'a lost here, so no idea if this is possible the way i want it anyway, this is it: I have this code And i want this textarea to render an id of…
marebuffi
  • 41
  • 1
  • 6
1
vote
1 answer

How to make multiple options selected while using in struts?

One thing I learned today is "there is no selected property in like plain old option" , we can give value in that matches the value against each option and if match found marks the option selected. but I want to make…
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83
1
vote
1 answer

how to carry the value of from one jsp page to another?

Here it goes: I am refreshing a page named index.jsp via this And it is calling my action. here is the mapping in my struts.xml
nr5
  • 4,228
  • 8
  • 42
  • 82
1
vote
2 answers

Struts 2 List of List access

I wonder if someone can help. Background Architecture: I have an application which contians many areas which have many specific questions, where these questions contian progress So at a high-level view there can be many applications. A user is…
0
votes
1 answer

Change label color in struts2

I am new to struts. How to change the label color for textfield? Ex: I want to change the color of 'Category Code'.I tried cssstyle="color: #ffffff" . But this changed the color only for text entering in textbox, not for the label .
user507333
  • 79
  • 1
  • 6
0
votes
2 answers

how to modify to fetch a value from Applicationresources.properties file

I am developing a simple GUI in which i want username value to be fetched from ApplicationResources.properties file. My file contains following two lines : label.username= Username label.password=Password I am using JSP containing struts 2 tag…
omkar sohani
  • 147
  • 3
  • 6
  • 17
0
votes
2 answers

Struts 1 - Row submit

I'm having an issue with a Struts 1 form, which contains a logic:iterate in charge of creating rows, each with an input button. The problem comes up when I hit any of those submit buttons, the dynamic data is not properly being posted and the form…
LdSe
  • 334
  • 1
  • 3
  • 17
0
votes
1 answer

How to stop overflowing of dynamic data beyond table?

It's a Struts application. I have to show some dynamic date in the left hand panel retrieving from DB or any session object e.g Notes. If there is space between words then its working fine. But while testing if I am entering some characters without…
0
votes
3 answers

Writing a string property of an object with

I've got an object in my form that contains various string properties. When I want to print it in my JSP form I could do it with which works perfectly. Now I want to create an HTML input field. But when I…
user321068
0
votes
1 answer

Parameter in the message resource properties file of struts

I am using the html:image tag to include images in the jsp. the image location is specified in the message resource properties file of struts. the paths are defined as ../../images/image1.gid previously. now the context is changing due to some…
Vijay
  • 21
  • 1
  • 3
0
votes
2 answers

How to use javascript to include struts html tag?

I have a check box and a text box. I have used struts tags and Now i need to validate that if the check box is checked, i should gray out (disable) the text box. If it is unchecked the text box shold take phone numbers. I did lik this, i called a…
Dj.
  • 161
  • 1
  • 5
  • 11
0
votes
0 answers

Upload multiple files through one single browse button through struts

I have a requirement, wherein I need to upload multiple photos through one single browse button. I am using form-bean concept for achieving the same. The issue is how do I send multiple photos path from JSP to Action via Form Bean? I.E. how do I get…
sTg
  • 4,313
  • 16
  • 68
  • 115
0
votes
1 answer

Struts bean cannot be found

I'm having a problem with Struts. It's not recognizing a bean, even though it's defined one line above I have this code 23:
camelCase
  • 521
  • 2
  • 10
  • 22