struts Questions

10

I want to include a js file depending on the value of the current Locale. I have tried to access it from JSP as follows: <%@ page import="java.util.Locale" %> <% if( ((Locale) pageConte...
Vereeniging asked 2/12, 2008 at 11:50

2

Solved

I want the user to enter hyphens with the following code <var> <var-name>mask</var-name> <var-value>^[a-zA-Z0-9]*$</var-value> </var> I am using strut...
Eunuchoidism asked 3/4, 2014 at 9:11

9

What is Controller in MVC ? Is it struts.xml or Servlet (Action Class)? Can we have more than one Controller in our application? Is it good practice to have more than one controller?

2

Solved

Some pages can receive a certain request parameter called "P1": page.do?P1=value1 Right now a scriptlet is testing the existence of the request parameter, and if P1 is "value1" some information ...
Symphonist asked 14/1, 2011 at 11:32

5

Solved

I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. I...
Riemann asked 17/5, 2010 at 12:21

2

Solved

I've used the Struts 2 framework and I have created a web application which has a Login Page. I have three different Action classes named Action1, Action2, Action3, and different views for JSP page...
Skidmore asked 5/6, 2013 at 12:39

2

Solved

I have this code in my JSP: <%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%> .. .. <html:form action="update" > .. .. <html:submit value="delete" /> <htm...
Explode asked 12/9, 2011 at 10:43

4

Solved

I'm working on an AJAX-enabled JavaScript frontend that makes calls to a Java backend written with Struts. My problem is that when the backend throws an exception, the client still sees a "200 OK" ...
Stockist asked 12/3, 2012 at 22:8

2

I'm working on a Struts application. In order to edit the struts-config.xml file, I think I have to add an attribute - scope, in the action tag. I'm not sure about its meaning, or its usage. &lt...
Ibadan asked 21/2, 2013 at 9:21

2

Solved

What will happen if action class returns the null in struts? If it displays null jsp page,then if you want to diplay something how can we achieve it?
Deration asked 25/7, 2012 at 5:26

1

I have a simple Struts form. It has a few text fields and a file field. The enctype is multipart/form-data on my form. I validate in the actionform's validate method. If the text fields are empty...
Mares asked 9/1, 2013 at 16:7

1

Solved

How to set radio button checked by default in struts html tag ? <html:radio name="RegisterForm" property="Group" value="<%=Contant.Male%>"/><label>Male</label><BR> &l...
Implacable asked 9/1, 2013 at 14:43

2

Solved

To make the question clear I make an example: consider theSubscriber form defined bellow in first.jsp: <s:form id="theSubscriber" name="theSubscriber" method="post" action="next.action"> ...
Hoeve asked 30/12, 2012 at 1:24

2

Solved

I have a basic question in struts why do we need to have <global-forwards>and <global-exceptions> in struts-config.xml. If we can achieve the same things with <action-mappings> it...
Gershom asked 13/12, 2012 at 10:47

3

Solved

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"%> <c:forEach b...
Hewett asked 11/5, 2011 at 20:35

2

Solved

I am currently trying to create a html:select tag from an enum so it could be set in a specific object: class someClass { SomeEnum someProperties = null; public getSomeProperties() { return some...
Groupie asked 5/11, 2010 at 18:53

1

Solved

I am getting the error of not all named parameters have been set. Below is my code. my SqlQuery which is running fine at mysql prompt, You can refer schema in the question SQL Query SELECT t.* FR...
Patel asked 27/9, 2012 at 6:55

4

Solved

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 ...
Petersham asked 5/3, 2010 at 16:11

3

Solved

I'm doing an analysis of request-based web application frameworks to determine which one would be the most suitable for a particular project, and I've been asked to include some solid evidence show...
Dionne asked 29/8, 2012 at 6:14

4

Solved

I have this line of code in my JSP. (I'm using struts 1.3) <html:form action="screening/mine.do" method="post"> . . . </html:form> When the action corresponding to mine.do is invoked (us...
Fungible asked 17/8, 2011 at 16:34

6

Solved

What is the difference between struts.xml and struts-config.xml? Are both the same or is there any difference between them?
Rover asked 7/6, 2010 at 10:37

1

Solved

I make extensive use of Struts2 in my application. Now I want to add HTML5 attributes like autocorrect and type="email". I don't see any HTML5 plugin. Is there a standard way to the <s:textfield...
Paw asked 17/6, 2012 at 19:13

2

I am a beginner in Java and going to build a webapp that allows developers to work online on their projects. Something of the sort of bitbucket or github. I have developed sites using PHP and...
Dulin asked 24/8, 2010 at 6:47

1

I am developing a struts2 project with tiles in which I want to use the keyword for redirecting from one jsp page to other page as, <% response.sendRedirect("search"); %> In normal jsp ...
Colby asked 26/3, 2012 at 5:20

4

Solved

I'm getting the following error: javax.servlet.jsp.JspException: Broken pipe Now I have seen questions/answers with respects to the socket exception, but this error is coming from a different ...
Extractor asked 5/5, 2010 at 17:48

© 2022 - 2024 — McMap. All rights reserved.