struts

Struts Action Invocation Framework for Struts 1.3

Hi ... I'm trying to integration SAIF plugin to intercept my struts action. I learn from http://struts.sourceforge.net/saif/index.html I've write configuration like this: struts-config.xml <plug-in className="net.sf.struts.saif.SAIFPlugin"> <set-property property="interceptor-config" value="/WEB-INF/interceptor-config.xml" /> </p...

JSP what taglib should be added?

What lines starting with <%@ should be added at the beginning of a JSP file to be able to make use of the tag. I have added the following line to the beginning of my jsp. <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %> But Eclipse IDE says The tag handler class for "html:link" (org.apache.struts.taglib.h...

Using Jquery to display a modal "please wait" dialog box message

Hi, Is it possible to block a page when a user clicks on a link and only enable it once the response has come back from the server. I had a problem recently where a link was clicked on a page several times resulting in two simultaneous changes. The problem was that the page was allowing multiple submit. I have already resolved this ...

How to open one jsp from another through struts

How to open One jsp from another through Struts? For example, I have 2 JSPs, Page1.jsp & Page2.jsp. Page1.jsp does not contain any Form. Page2.jsp contains a Form. I need a link on Page1.jsp which when clicked takes me to Page2.jsp. What are the Actionmappings needed to be added to struts-config.xml? Update: I t...

Struts Plugin for Eclipse Helios (Ubuntu)

Are there any Struts Plugins for Eclipse Helios - that make it easier to Navigate through Struts based Projects? I am on an Ubuntu system. Thanks. ...

How to find the Struts version being used in a project

How to find the Struts version being used in a Web Application project in Eclipse? My struts-config.xml says <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"&gt; Thanks. ...

HTML form submission in struts

Hi Can I submit a simple html form with html tags and no struts tags. I'm using struts 1.0 and have a form like this: <form action='/admin/fsubmit.html?action=search' method='post'> <input type='text' name='keyword'> <input type='submit' name='search' value='Search'> </form> I'm handling this submission with struts. but it seems ...

<nested:hidden> field missing id

Hi, I'm trying to define a id of a <nested:hidden filed in struts 1, but with styleId i receive a error: my code looks something like this: <nested:iterate id="otherPayList" name="myPayListForm" property="otherPayList" indexId="rowIndex"> <nested:hidden property="rowStatus"/> ....... Any idea ? ...

Struts - What changes are needed to add a new JSP?

I am making changes to an existing web application based on Struts1 - which already is made up of various forms & actions. What I am trying to do is Add a few pages for the mobile version of website. For example, I want to add a JSP page that contains a form with a few fields (same as that in the PC version) with a submit b...

Struts 1 map to static .xml file

I'm trying to map the path /crossdomain.xml to some xml content (whether its contained in a jsp, xml, or any other files, I don't care). I'm running struts 1, and I've tried this: <action path="/crossdomain.xml" type="org.apache.struts.actions.ForwardAction" parameter="/crossdomain.jsp"> </action> This technique works if I replace the...

Store Session Data in a Web App

I would like to identify in my website whether the request is coming from a MOBILE or PC. and then store this information "somehow" - so that I dont have to bother about MOBILE OR PC for the ENTIRE SESSION of that user. I am able to identify whether request is from Mobile or PC, but do not know how to store this information and...

Best software to design web pages considering using java mvc technologies such as spring mvc, struts or something similar?

Every people talk about adobe dreamweaver... But if im developing java based web apps, It would be a good choice? ...

How to interpolate java expressions in struts attribute strings

I have the following: <html:select property="myMap(abc)"> What I really need to do, however, is pull the string abc from a static member of a java class. I thought something like <html:select property="myMap(<%=MyClass.FIELD%>)"> , but that didn't work. What's the correct syntax here? ...

how to add struts element <html:option> into form using javascript

hi expert, i need to set value for drop down box when form is load, so i'm able to create normal html element dynamically using javascript as below, addOption(document.form[0].templateCategory,i,templateCategory[i]); function addOption(selectbox, text, value) { var optn = document.createElement("OPTION"); optn.text = text; optn.v...

Java - High cpu usage

Hi I have a production web application running in Tomcat. The web application uses struts 2 as MVC layer. We had an issue wherein one of the web servers spiked to 100% cpu usage. This issue lasted for over several hours. I took the thread dump and saw over several hundred threads in runnable state and the dumps show the same stack tra...

javax.servlet.jsp.JspException: Can't insert page ..... Software caused connection abort: socket write error

Hi, I just deployed an application to weblogic 10, and when I run my page, I get the custom error page with the following errror in the log. javax.servlet.jsp.JspException: Can't insert page '/pages/header.jsp' : Software caused connection abort: socket write error at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(Ins...

How to store value which is sharable at the application level in struts1 like session?

I have to store the one String object at the application level and have to access it in the JSP page. How to do this?Please give me some sample. ...

Serve static files (javascript) with struts 2

Hello! I want to put some javascript files in one of my packages and make struts serve those on /struts/js/foo.js Struts does that for files in 'template' package (that's where jquery plugin's files are located, guarded by struts.ui.templateDir option). However I want to put those files into another package; If I redefine struts.ui.temp...

redirect struts 2 action to struts 1 action..

We have been using struts 1 since long time. I don't know much about struts 2. Our company is going with component based arch. Core UI components are using struts 1. Core components will be used by old struts 1 components as well as new struts 2 components. I am not really sure if struts 1 action request can be redirected to struts 2 act...

A fresh graduate confused by the Java EE jargon Spring, Struts, JSF, EJB, Jboss, JMS,

As we all know that we rarely get a chance to learn whats out there in the enterprise world when it comes to college. In my experience I have always seen people learning Core Java and may be some other languages and when they graduate they have no Idea about this enterprise jargon. I am in that boat now. I am a recent graduate with a pr...