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
6
votes
4 answers

Struts - In which jar file all the .tld files located

I am developing a Struts based web application. I am new to Struts. I want to use struts-html.tld taglib, provided by struts, in my jsp pages. When I searched on net, I came to know that prior to Struts 1.2.9, we need to locate the .tld files…
Amit
  • 33,847
  • 91
  • 226
  • 299
5
votes
3 answers

How to append loop index of c:forEach tag to Struts HTML tag attributes?

How can I append the loop index of a c:forEach tag to the attributes of a struts select/text tag? For example. <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
Salman Paracha
  • 1,697
  • 2
  • 16
  • 27
3
votes
3 answers

Struts html html:text does not close input type="text" tags

I use struts-html to generate forms fields. For example: <%@ taglib prefix="html" uri="/WEB-INF/taglibs/struts-html.tld" %> generates:
Sergio del Amo
  • 76,835
  • 68
  • 152
  • 179
2
votes
1 answer

inside

I have an itemList and for each item, a dropdown list of ratings is displayed. After user rates each item in itemList, i want to store those rates in an array. How can I do it? selectedRate below is of Integer type, and the code failed to solve the…
TPT Gin
  • 35
  • 1
  • 1
  • 7
2
votes
1 answer

struts html:image vs html:img

What is the difference between the following struts html tags: "html:image" and "html:img" I searched through the apache docs, but couldn't find the difference though.
nerdbytes
  • 53
  • 2
  • 7
1
vote
1 answer

How to increase the Jquery grid - serial number column width size

I am using struts2-jquery grid to display my server values. I am using struts2-jquery-plugin-3.1.1.jar . In my struts grid, I have a parameter named rownumbers. as, When I set the parameter rownumbers to…
user915303
1
vote
1 answer

how to combine html:text and bean:write

I am using tag in my struts program to catch my data into text field but I want to update/edit those data which is coming by this tag so I want to use tag with , is it possible? is there any other option to…
Khoyendra Pande
  • 1,627
  • 5
  • 25
  • 42
1
vote
1 answer

Can two radio tags be used to set boolean values for a form property in struts?

I'm new-ish to struts and I'm particularly stuck on an area of struts code which has to do with the radio button. No matter what I do I can't get anything but a false value from the following: (CostForm) …
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
1
vote
1 answer

Struts2 tiles How to set attribute values in dynamically…

In tiles.xml set attribute values in static
RSK
  • 211
  • 1
  • 4
  • 17
1
vote
2 answers

how to make a checked by default

I'm new to Struts 1 so may be its already a resolved question. The situation is: I have a list of tag, which are rendered into html-checkbox element when the page loads. I want the checkboxes to be checked by default (without using…
tusar
  • 3,364
  • 6
  • 37
  • 60
1
vote
1 answer

applying css to tags

I'm starting out in using struts and I'm finding difficulty in applying my css on the tags. Basically I'd want to apply a button image on a link which goes to a login page. I've used this…
1
vote
1 answer

label and style sheet in struts 2

i have 2 questions: 1)I want to separate "Enter your Name" in and textFiled in other . when i do that these 2 td arent appear in the same vertical alignment. the first one in top and other in bottom i dont know why that happened??? im…
Muthu
  • 1,550
  • 10
  • 36
  • 62
1
vote
2 answers

Action form in struts

can we use two form in single jsp ? i am using struts with hibernate and in hibernate i have many- to one mapping < class name="com.dto.EmployeeDTO" table="EMPLOYEEDTO"> < id name="id" type="java.lang.String"> < column name="ID"…
p27
  • 2,217
  • 1
  • 27
  • 55
1
vote
3 answers

multiple file upload in JSP struts

My client wants a feature (like in advanced Gmail version) where user can hold CTRL key and select multiple files to upload in one go. Is it really possible ? Please let me know your precious feedback/suggestions on this. Thanks in advance.
Ashine
  • 4,517
  • 3
  • 24
  • 26
1
vote
2 answers

Struts2 Configuration Understanding

Recently I am going through with one tutorial for Struts2 UI Tags. So, I found that example and execute it with perfection. But, in the struts.xml configuration file, I couldn't understand some of the OGNL expressions. That I am writing here…
Nirmal
  • 4,789
  • 13
  • 72
  • 114
1
2 3