Help in struts
Thanks,
I want to pass parameters using a link ( anchor tag) inside jsp like:
http://localhost:8080/surepro/saveContract.do?action=Display&id=3
My problem is how can I handle these action and id parameters?
Should I have to use getParameter() method in formbean or in action class?
I want to retrieve these params..
help me...
thanks
no lee u are wrong..Well, it wouldn't be the first time!
sorry but i got the write answer..
when we pass the parameters through url..
parameters will be automatically set in the setter
methods in bean class.Yes, Struts will set the parameters in your form if you have the setXXX method available.
you needn,t required to set indivual paramteres ( by
using getParamter() method)
True enough, but these values are still available through the HttpServletRequest obect's getParameter method.
thanks for help...Anytime!
Similar Messages
-
Need help on struts configuration with ColdFusion 10 using IIS
We need help on struts configuration with ColdFusion 10 using IIS.
Earlier we were using ColdFusion 8 with IIS 6 for one of our application. This application internally calls struts. After upgrading to ColdFusion 10 struts calls are not loading. We get 404 error.
In ColdFusion 8 struts were configured using actions extension .do in IIS from this file-
C:\ColdFusion8\runtime\lib\wsconfig\jrun_iis6.dll.
But in ColdFusion 10 this file is not present as ColdFusion 10 uses Tomcat in place of Jrun.
Also there is no information in ColdFusion log file.Duane wrote:
doctormirabilis, Welcome to the discussion area!
1) how can i configure the time capsule in order to operate as a remote base station synchronizing with the relay using the ethernet port?
Configure the Time Capsule to act as a bridge (not distributing IP addresses). Also configure the Time Capsule to create an 802.11n wireless network with a unique network name (SSID). That's it.
2) how can i avoid that my powerbook while accessing my wireless network does connect through the relay station instead of using the time capsule?
Configure the Time Capsule to use a different network name than the WDS link between the 2 AirPort Express (AX). Configure the PowerBook to use the Time Capsule network.
There are 2 pieces of information that you should be aware of...
(1) None of the PowerBooks are capable of 802.11n.
(2) The WDS link cuts your available bandwidth in half. So the wireless link to your neighbor's has a maximum potential of 27 Mbps.
Let's for a minute assume that you have a Mac compatible with 802.11n. In your configuration the time you could take advantage of the 802.11n speed is when the Mac is sending/recieving data directly from/to the Time Capsule.
There would be NO speed increase in Internet access. The speed of Internet access is going to be controlled by the slowest link in the path to the Internet. That is probably the connection to the ISP. The next slowest path is the WDS link to your neighbor's.
Duane,
I am in a similar situation, sharing internet with my neighbor. Do you think it would be plausible to hook up a vonage phone adapter to time capsule's ethernet port if time capsule is bridging from my neighbor's router in the configuration you have described? A check of my upload speed shows 1.67Mbps (powerbookG4 w/ airport extreme). Vonage reccommends 90kbps minimum upload speed. Am I going to lose some speed putting the Vonag adapter behind time capsule?
Thank you -
Hi friends, i am new in struts i try to write an actionfrorm that handle master detail form but when i try to run my jsp page i get this exception :
javax.servlet.jsp.JspException: No getter method for property function[0].function.label of bean org.apache.struts.taglib.html.BEANIs there any one who can help me solving this problem, if you want i will post the code that i write. Thanks a lot.Here is my actionForm :
public class UserRegistrationForm
extends ActionForm {
private FunctionLineItem[] functions = new FunctionLineItem[0];
public void setFunction(int index, FunctionLineItem function) {
this.functions[index] = function;
public void setFunction(FunctionLineItem[] items) {
this.functions = items;
public FunctionLineItem getFunction(int index) {
return functions[index];
public FunctionLineItem[] getFunction() {return this.functions;
public FunctionLineItem[] getFunctionsList() {
return this.functions;
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
public void reset(ActionMapping actionMapping,
HttpServletRequest servletRequest) {
public class FunctionLineItem
implements Serializable {
private Function function = new Function();
private boolean checked = false;
public void setFunction(Function function) {
this.function = function;
public void setChecked(boolean checked) {
this.checked = checked;
public Function getFunction() {
return function;
public boolean isChecked() {
return checked;
public class Function
implements Serializable {
private int code = 0;
private String label = "";
private int droit = 0;
public int getCode() {
return code;
public String getLabel() {
return label;
public int getDroit() {
return droit;
public void setCode(int code) {
this.code = code;
public void setLabel(String label) {
this.label = label;
public void setDroit(int droit) {
this.droit = droit;
JSP page
<logic:iterate id="lineItem" indexId="index" name="userRegistrationForm" property="functionsList">
<%
String slineItem = "function[" + index + "]";
String checked = slineItem + ".checked";
String nest = slineItem + ".function.";
String code = nest + "code";
String label = nest + "label";
%>
<tr>
<td>
<html:text property="<%=label%>" />
</td>
<td><html:checkbox property="<%=checked%>" /></td>
</tr>
</logic:iterate>Is there any error? -
Hi Everybody,
I am new to BC4J Framework. I have enough experience in Java and JSP/Struts. Is there any guide which will explain me step by step development of an sample application using JDeveloper, Struts, BC4J and Oracle Database. I have tried to search the forum, but not able to find proper document. Please help.
Thanks & Regards,
Shailesh JoshiCan anyone please tell me why in struts in most of the situations we are getting the error,
cannot find ActionForward and ActionMappings.You're getting the error because Struts isn't configured correctly. The solution is to configure Struts correctly.
~ -
Need a help with Struts Tiles dynamic menu
Hello,
I am started few days ago with Tiles, try to develop web application.
Can anybody sugest very simple example with Tiles and menu.
So my definition looks like this:
tiles-def.xml
<tiles-definitions>
<definition name="MainDefinition" path="/layouts/myLayout.jsp">
<put name="title" value="This is the title." />
<put name="header" value="/tiles/header.jsp" />
<put name="menu" value="/tiles/menu.jsp" />
<put name="body" value="/tiles/body.jsp" />
<put name="footer" value="This is the footer." />
</definition>
I am simple layout.
I need to on menu click change body content, now i am doing it like this:
index.jsp
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%String body = request.getParameter("body");%>
<tiles:insert definition="MainDefinition" flush="true">
<tiles:put name="body" type="string"> <%= body %> </tiles:put>
</tiles:insert>
But now body is a string how to make it open url?
Maybe somebody have link to menu Tiles good examples.
ThanksBut here's some useful advice :P
I'm going to assume that the other two people involved in this have a bit more experience, have them do most of the designing. Have them leave most of the easy stuff for you. You can then spend your time learning the minimum of what you need to know. And if you have problems, or don't understand things, ask your partners for help.
And you'll want to set some spare time for you to all get together and do something fun so that you don't kill each other because of the stress :P
I've had a lot of bad project experiences, fortunatly they where all just at school :P I blame myself, mainly because I didn't do the whole thing myself (mostly because I listened to people when they said that I shouldn't or couldn't do everything myself.) I'd like to say that it's mostly because of poor communication, and disorganization, but an awful lot of it had to do with the fact that I tend to be the only person with any work ethic what so ever.
But whinning and repressed memories aside, good communication and organization help a lot. Come up with a good system with your team mates. And don't be afraid to ask questions. And don't worry about dividing up the work load equally. Just make sure you put in a good amount of effort, if not frightening amounts.
If all of you are clueless, divide up the learning stuff between yourselves too.
I have no experience with Struts. I've done a bit of stuff with XML, but nothing too complicated. The XML by itself tends to be extremely easy. What you plan on doing with it can vary (I don't like XML incidentally :P)
Other then that, good luck. -
WML help for Struts-wml tag lib
I tried using the tag lib of struts but I didn't find wml:card tag..........
thank you Shay Shmeltzer
i added the tld to my jdev.
but now the property inspector of any component of this tag lib is empty.
i can see all components in the component palette.
another thing can you help me to use struts-layout libraries?
i see in the code
<layout:form action="/login" styleClass="FORM" key="form1.title" reqCode="login" focus="login">
i can't find were are styleClass (css)?
i looked for in all the project and in libraries?
thank you very much..
Talel...; -
Hello Friends,
I'm very new to struts, and have a code piece that does the following:
<logic:iterate id="paramData" name="<%=printParam%>" >
<PARAM NAME = "<bean:write name="paramData" property="key" />" VALUE="<bean:write name="paramData" property="value" />">
<PARAM NAME = "rootUrl" VALUE="<%=HttpUtil.getServerUrl(request)%>" >
</logic:iterate>
It iterates through a Map and gets the values in the applet. However I now have to change this so that it gets the applet params from a ParamsVO.java, a value object. How does the code change to get the values now?
I have paramsvo.getXXX methods that I can use. Though not sure how they are used with struts. Pls help!!
KarenAll the parameters are in this ParamsVO object? Each with their own getter/setter?
I don't think you are able to do this in a loop.
You just have to write a <PARAM> tag for each property, and get its value.
For instance if paramsVO has getParam1() method
<PARAM NAME="param1" VALUE="<bean:write name="paramVO" property="param1"/>">
Cheers,
evnafets -
Need help with Struts on J2EE 1.4
Using deploytool, I deployed one of the examples from
the struts 1.1 rc1 distribution. The WAR file deployed
successfully, but accessing the page results in the
exception below.
Is this a security issue? If it is, where and how do
I need to change permissions? If it's not, what else
did I forget?
Any help is appreciated.
Andreas
INFO: Application Struts_Blank deployed.
INFO: Processed tld /WEB-INF/struts-html.tld 297
SEVERE: Added certificates -> request attribute Valve
WARNING: The SecurityManager do not allow that operation.
org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
WARNING: StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)I got a little further.
First I thought that there were no changes to the WAR file,
but then I realized that deploytool had changed it and this
is where it got messed up:
There was an innocuously looking entry <jsp-config/> that
deploytool had generated, followed by the list of taglib
elements, so instead of being wrapped within the jsp-config
element as is now required by the 2.4 web-app schema, they
were still listed in the 2.2/2.3 style, and thus could not
be found.
I am now getting another exception (see below).
I also noticed that there is a second (older) struts.jar
file in the lib/system directory, which may get in the way.
Does anyone know what the classpath looks like that is
being used by the web container?
Further help with this and the exception is still welcome.
Andreas
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:561)
at org.apache.jsp.Welcome_jsp._jspService(Welcome_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:727)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:464)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
at org.apache.struts.actions.ForwardAction.perform(ForwardAction.java:161)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536) -
how do i print this arraylist using tags in struts... i mean using iterate and bean write tags.
<%
java.util.ArrayList alist= new java.util.ArrayList();
java.util.HashMap map = new java.util.HashMap();
map.put("ID","1");
map.put("GUID","101010101");
map.put("STAT","01");
java.util.HashMap map2 = new java.util.HashMap();
map2.put("ID","2");
map2.put("GUID","202020202");
map2.put("STAT","02");
java.util.HashMap map3 = new java.util.HashMap();
map3.put("ID","3");
map3.put("GUID","303030303");
map3.put("STAT","03");
alist.add(map);
alist.add(map2);
alist.add(map3);
System.out.println("Arraylist:"+alist);
session.setAttribute("array",alist);
%>i need to print that alist in a tabular fashion..... like this
ID GUID STATUS
1 1010101 01
2 2020202 02
3 3030303 03how do i do that
plz help
praneethhow do i print this arraylist using tags in struts... i mean using iterate and bean write tags.
<%
java.util.ArrayList alist= new java.util.ArrayList();
java.util.HashMap map = new java.util.HashMap();
map.put("ID","1");
map.put("GUID","101010101");
map.put("STAT","01");
java.util.HashMap map2 = new java.util.HashMap();
map2.put("ID","2");
map2.put("GUID","202020202");
map2.put("STAT","02");
java.util.HashMap map3 = new java.util.HashMap();
map3.put("ID","3");
map3.put("GUID","303030303");
map3.put("STAT","03");
alist.add(map);
alist.add(map2);
alist.add(map3);
System.out.println("Arraylist:"+alist);
session.setAttribute("array",alist);
%>i need to print that alist in a tabular fashion..... like this
ID GUID STATUS
1 1010101 01
2 2020202 02
3 3030303 03how do i do that
plz help
praneeth -
EDIT i managed to solve my problems soz for spaming moderators or admins can delete this topic
hi, i got a problem i am working on some struts project for school blah blah. I have a couple of actions that display search results (with global forwarders). data is extracted form db into beans and beans are added to array list. how can i display results from an arraylist (in jsp page)
here is the part of code in Action
ArrayList list=new ArrayList();
while(result.next()) {
magazine.setMagazineID(result.getInt("magazineID"));
magazine.setName(result.getString("name"));
magazine.setPublisher(result.getString("publisher"));
magazine.setDescription(result.getString("description"));
magazine.setYear(result.getInt("year"));
list.add(magazine);
session.setAttribute("mags",list);
return mapping.findForward("display");
tnx in advance
Message was edited by:
auZCan anyone please tell me why in struts in most of the situations we are getting the error,
cannot find ActionForward and ActionMappings.You're getting the error because Struts isn't configured correctly. The solution is to configure Struts correctly.
~ -
Hi All,
I want to develop a struts application in eclipse,
when I installed Eclipse,It is not showing the easy struts plug in...
Can Any body tell me what versions of struts,eclipse and Tomcat are required to develop the struts application in eclipse IDE
Is latest version of eclipse support struts?
Thanks in Advance
AnjiThanks for the reply..
The specified link I have already saw,It is saying that
to develop struts in eclipse,download
eclipse v2.1 version,
struts 1.1
but now we are getting latest versions of eclipse and struts too,,
like eclipse 3.3 and Struts 2.0.11....
but to write struts in eclipse,if we use the old version,we will loose some of the features....
Is the new versions of both Struts and eclipse does not support to develop struts application using eclipse IDE?
Thanks
Anji -
Urgent: Please help! Struts in portal
I put struts-config.xml under beaApps\portalApp\mywebApp\WEB-INF. But it seems
not seen by the system. Somebody has done this before, please advise me how to
integrate struts into bea portal 7.0
I am waiting for your response here!
Thanks a lot!!!!!!!!
PennyIn that scenario, you assign the variable with the list of Users to be assigned to worklist user payload. Suppose you are storing the values of the users to be assigned in the variable /ns0:BPELProcess1Request/ns0:input. Now you append this to user payload /task:task/task:payload as it can accept Any Type. In the Human Task page(on .task page in the Assignment and Routing Policy select "By Expression") as an assignee add /task:task/task:payload//ns0:BPELProcess1Request/ns0:input. This should solve your problem.
Can you check the Human Task Samples in SOA Suite? There is one example related to this. I could not find it handy as I have somehow deleted that from my system. I will tell you if I can find that. -
Hi guys,
I'm using struts application,from that i will call
one external java file.(i.e) At the time of server(tomcat) will start ,the java class file is also started.
can u give any idea regarding my condition.I wrote some triggering logic in that Java file.
so, i need once the application will start, the corresponding java file will also called."SimpleServlet.java"
package com;
import org.quartz.CronExpression;
import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.CronTrigger;
import org.quartz.SchedulerException;
import org.quartz.SchedulerFactory;
import org.quartz.impl.StdSchedulerFactory;
import javax.servlet.*;
import java.io.*;
import javax.servlet.http.HttpServlet;
import org.quartz.ee.servlet.QuartzInitializerServlet;
public class Simple extends HttpServlet {
//Override
public void init(ServletConfig config) throws ServletException {
System.out.println("Initializing Scheduler PlugIn for Jobs!");
super.init(config);
// Retrieve a scheduler from schedule factory
try {
Scheduler scheduler;
SchedulerFactory schedulerFactory = new
StdSchedulerFactory();
scheduler = schedulerFactory.getScheduler();
ServletContext ctx = config.getServletContext();
//Scheduler scheduler = null;
StdSchedulerFactory factory = (StdSchedulerFactory)
ctx.getAttribute(QuartzInitializerServlet.QUARTZ_FACTORY_KEY);
scheduler = factory.getScheduler();
//JobDetail jd = new JobDetail("job1",
"group1",SimpleQuartzJob.class);
JobDetail jd = new JobDetail("job1", "group1",Hello.class);
CronTrigger cronTrigger = new CronTrigger("trigger1","group1");
CronExpression cexp = new CronExpression("0/5 * * * * ?");
//String cronExpr = null;
//cronExpr = getInitParameter("cronExpr");
//System.out.println(cronExpr);
cronTrigger.setCronExpression(cexp);
scheduler.scheduleJob(jd, cronTrigger);
scheduler.start();
System.out.println("Job scheduled now ..");
} catch (Exception e){
e.printStackTrace();
//Override
public void service(ServletRequest request, ServletResponse
response)throws ServletException, IOException {
PrintWriter pw=response.getWriter();
pw.print("<html> <body> <h1>");
pw.print("Please wait,DataBase Operations is
performing.............");
pw.print("</h1></body></html>");
//Override
public String getServletInfo() {
System.out.println("servlet started..");
return null;
"web.xml"
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name>
Quartz</display-name>
<servlet>
<servlet-name>QuartzInitializer</servlet-name>
<display-name>Quartz Initializer Servlet</display-name>
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>config-file</param-name>
<param-value>quartz.properties</param-value>
</init-param>
<init-param>
<param-name>shutdown-on-unload</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>start-scheduler-on-load</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>Simple</servlet-name>
<servlet-class>com.Simple</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Simple</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>I tried from this site http://www.oreillynet.com/cs/user/view/cs_msg/86579
but it will not work for me.
It throws servlet exception.
Message was edited by:
SARAV_RS -
Struts is great but it's still very time consuming. (I'm using JBuilder)
Does anyone has an idea to speed things up?
I read something about the tool Camino (from SCioworks), looks really interesting.
Anyone has ever tried it? What do you think of it? Worth it?I used JBuilder and later moved to eclipse. There are several features in eclipse. If you have several redundant imports, it can update your code and remove the unused imports, clean up some code etc. I never used Camino.
Thanks for the dukes! -
I populated my data in a hashtable and it contains key & the values are in an arraylist of treemap. How do I display data using struts bean tag? Thanks.
if you have an arraylist of maps why do you need three iterates?
<logic:iterate id="treeMap" name="navTable"> //navTable is your ArrayList treeMap will be each map
<logic:iterate id="element" name="treeMap"> //element is each element as it iterates through treeMap
key = <bean:write name="element" property="key" filter="false"/>
value = <bean:write name="element" property="value" filter="false"/>
</logic:iterate>
</logic:iterate>unless of course I missed something and you really need three iterates.
of course you need a getNavTable() method, though you probably already have that.
Maybe you are looking for
-
Call issues on iPhone 4 after upgrading to IOS 5.1.1
Ever since I upgraded to the IOS 5.1.1 my iPhone 4 has been having call issues. When I make or receive calls the other person can hear me for 5 seconds and then they can't hear me, but I can hear them. It is almost like the mute button is on, but I c
-
Diff between Compounded chara & Refrence chara
Hi diff between Compounded chara & Refrence chara Thanks Kawal
-
JSP include through a web.xml configuration
I have a website that has many JSP pages and I would like to add some logging lines to each jsp file. I would prefer not to have to edit each jsp file though (it would be time consuming). Is there a way through a configuration change in the webapp we
-
JAI pixel value after dct operation
Hi. i've recently start to programming with JAI. I've applied the dct Discrete cosine Transform to a source image. My Problem is the follow: "How can i obtain the RGB value of each pixel from the resulting dct image". Here's the code: String filename
-
Specs are k8n neo4 plat a64 3000 venice 2x1gb corsair xms 3200 x800xl 520 ocz powerstrem can some one give me there settings in bios so i can try them out, i want to try something moddest, im aiming for 2.2ghz maybe 2.4, I really want to learn how to