xml « Struts « JSP-Servlet Q&A





1. Struts Validation.xml - requiredif problem    stackoverflow.com

I want my validation.xml to only check for a null if certain options are selected from a dropdown. So far I have

<field property="empFDServiceStartDate" depends="requiredif, date">
       ...

2. How to create temporary files on the client machine, from Web Application?    stackoverflow.com

I am creating a Web Application using JSP, Struts, EJB and Servlets. The Application is a combined CRM and Accounting Package so the Database size is very huge. So, in order ...

3. How to implement complicated servlet mapping in web.xml descriptor    stackoverflow.com

I faced with next task: I have an host, for example host.com and web-application on it. Application written on Java (JSP/Servlets+Struts2). I need to implement such HTTP-request to servlet mapping: if user enters ...

4. Struts 1 map to static .xml file    stackoverflow.com

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 ...

5. How to set xml:lang value at runtime?    stackoverflow.com

How to change xml:language in runtime? The situation is that person has let's say 'EN' selected as the browser language. Some other user has e.g 'FI' in the very same language property. ...

6. Showing Error in Struts-config.xml on addition of Struts-menu plugin    stackoverflow.com

When I add the Struts-menu plugin to Struts-config.xml it is showing error that Servlet action is currently unavailable; any ideas?

7. Returning XML from a JSP page in Struts    stackoverflow.com

I'm developing an enterprise application whose main purpose is data retrieval. The user enters a URL ".../GetData.do" and the application returns an XML based on a schema containing the data. Where is ...

8. how many values available for scope attribute in action element of struts-config.xml file    stackoverflow.com

How many values available for "scope" attribute in "action" element of struts-config.xml file other than "request" and "session"?

<action name="loginform" path="/bkplogin" scope="?" type="org.springframework.web.struts.DelegatingActionProxy">

9. Struts: How to get the type of a tile attribute    stackoverflow.com

Consider this tile definition-

<definition name=".feedback.form.header" extends=".header.setup">
  <put name="description" value="/common/subheader/feedback_description.jsp"
   type="page"/>
</definition>

<definition name=".experience.form.header" extends=".header.setup">
  <put name="description" value="Welcome"
   type="string"/>
</definition>
Notice the difference in the type attribute for description in ...





10. What is wrong with this struts-config.xml?    stackoverflow.com

Getting the following error : java.lang.NullPointerException: Module 'null' not found.

 <?xml version="1.0" encoding="UTF-8" ?>


    <struts-config>

        <form-beans>
    ...

11. using inplace-editor with ajax and storing in XMl file in server    stackoverflow.com

I want to use inplace editor in my jsp get the code from xml file after it gets edited again should be saved in xml file through ajax. I am using ...

12. JSP IllegalArgumentException: com.sun.xml.messaging.saaj.soap.LocalString != com.sun.xml.internal.messaging.saaj.soap.LocalStrings problem    stackoverflow.com

I'm creating a program that communicates with a webservice, which is written with JSP and Struts. But when I want to create a new instance of the webservice I get the ...

13. Struts2 execute multiple results off of one action from the struts.xml file    stackoverflow.com

I want to run two action results from the struts.xml file off of one click from a submit button on a form. Is this possible, and if so how? I have ...

14. I think my Apache Tomcat cant find web.xml in struts 1.3    stackoverflow.com

I am new to struts and starting with Struts 1.3 , Apache Tomcat 7 and jdk 1.6 . This is my simple JSP file login.jsp :

<%@page import="org.apache.struts.faces.util.StrutsContext"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html ...

15. Struts isn't calling my servlet. What am I doing wrong?    stackoverflow.com

Well, basically my struts servlet isn't working right. Please tell me if anything appears wrong below: Java Resources\src\bo\DisplayCartServlet.java

  package action;

  import java.io.*;
  import java.sql.SQLException;

  import javax.servlet.*;
  ...

16. Struts 1.3.10 in embedded Jetty. ActionServlet can't find /WEB-INF/web.xml    stackoverflow.com

The state:

  • I have a Struts 1.3 based webapp that deploys just fine to Tomcat (war or exploded).
  • I combine the webapp with a class to run embedded jetty 7.x. This all goes ...





17. why we write 2 in web.xml while using struts 1.x?    stackoverflow.com

I am very new to J2EE considering the same please answer. When we use struts why we write <load-on-startup>2</load-on-startup> in the servlet tag? What does this tag means? If something load ...

18. [ActionServlet] /WEB-INF/web.xml was not found    struts.1045723.n5.nabble.com

hi. i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1 on windows and am getting an exception when i deploy my .war file. 18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found. (please let me know if you'd like to see the full exception text) however, web.xml exists inside my .war file in the WEB-INF ...

19. Can Struts Action Servlet Re-poll struts-config.xml After Hot Sync with JBoss?    struts.1045723.n5.nabble.com

I am running MyEclipse, JBoss 4.0.5 GA and JDK 1.4.2 I am looking for a way to hot deploy my struts-config.xml and tiles-def.xml changes. Any suggestions on how to do this (and subsequently speed up my development process) would be greatly appreciated. See the transcript below from the MyEclipse forum...can I tell Struts to check for changes and re-initialize the ...

20. Configure ActionServlet without struts-config.xml?    struts.1045723.n5.nabble.com

Hello, I wonder if there's a way tho configure the ActionServlet programatically. I'm asking this because i want to hide the ActionServlet inside my own Servlet which delegates Requests to different Servlets, Struts ActionServlet being one of them. The goal is, to provide a framework which use struts but doesn't show any struts ...

21. Eclipse plugins to verify xml/jsp at compile time?    struts.1045723.n5.nabble.com

Is there any plugin support for eclipse that can help validate struts2 configuration? So if I have a struts.xml mapping like: ... Then some build-time plugin might check and see the userAccounts.action.LoginUserAction class does not exist Or perhaps a struts tag in a JSP might look like: ... And some build-time check might ...

22. [Solved] Master-details JSP with Validation xml    struts.1045723.n5.nabble.com

This post was updated on . Dear All, I have a form which is master-detail type containing customer information as master and also warehouse information as detail. For one customer it may contain more than one warehouse. The Customer model class is as follows: package model; : : public class Customer { ...

23. using xml validation for a jsp at the same time as action validateable    struts.1045723.n5.nabble.com

A bit more info on this. My struts.xml (actually, a different config file that's called from struts.xml) contains the following: /pages/smigmaintenance/SMIGSelection.jsp /pages/smigmaintenance/EmptyReloadNavigationTree.jsp SMIGCreation_input /pages/smigmaintenance/SMIGCreation.jsp /pages/smigmaintenance/SMIGCreation.jsp /pages/smigmaintenance/EmptyReloadNavigationTree.jsp I keep having both my validations go ...

24. well formed xml and jsp?    struts.1045723.n5.nabble.com

My jsp fragments that Tiles is inserting start with the following: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> And then immediately after that use html/jsp like the following:

25. XML file reloading in JSP (Caching issue)    struts.1045723.n5.nabble.com

Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload ...

27. Struts Tags VS. XML/XSL    coderanch.com

Hi all, Working on a design for a web application here and there is some debate on method of presentation. We use Struts quite a bit here, and have been relatively pleased with it. Some of the guys on the new project are suggesting using struts for validation and tiles framework, but to generate the main body content of the pages ...

28. struts defn in web.xml    coderanch.com

Hello Im sorry to bother evryone but I have a small problem with declaring taglib libs, I know that there are several ways of declaring taglib libs in the web.xml file. All the examples I seem to find like to declare it like this:- /WEB-INF/app.tld /WEB-INF/app.tld ie saying that the .tld file is located in the web-inf dir, but ...

30. please help in struts -web-inf/web.xml not found    coderanch.com

please help i am getting this stupid error in struts org.apache.jasper.JasperException: File "/WEB-INF/struts-bean.tld" not found and also from tomcat server i am also getting error WEB-INF/web.xml file not found. note: all struts jar files is in right places and web.xml file is also in web-inf .....please tell me what is error. full log of errors is: org.apache.jasper.JasperException: File "/WEB-INF/struts-bean.tld" not found ...

32. How to get SOAP response as XML in Client Struts or Servlet. ?    coderanch.com

Hi , I am using JAX-RPC. Currently my client (Struts Action) get Web Service response as JAVA object. But I need that response ax XML. I am able to retrive SOAP request / response as XML directly by writing Handlers for Server and Client. Handler are triggered on Req and response and can do some processing on SOAP messages. But I ...

33. JSP + Struts + XML + response.setHeader()    java-forums.org