jsp 1 « Struts « JSP-Servlet Q&A





1. struts2: how to substring in jsp?    stackoverflow.com

is there a way to substring in JSP files, using struts2 technologies? I mean, struts2 has its own taglib and also uses ognl. How can I get a substring from a ...

2. TinyMCE in JSP(Struts application)    stackoverflow.com

Which download I need to use to use TinyMCE in JSP(Struts application) I see Main Package, Development Package and also different Compression packages.. I am trying to implement Rich text editor for a ...

3. JSP Struts Performance/Memory Tips    stackoverflow.com

I am working on a basic Struts based application that is experience major spikes in memory. We have a monitoring tool that will notice one request per user adding 3MB ...

4. Perform task in JSP using a Hashmap lookup    stackoverflow.com

I have a Hashmap and a set of keys. For each key, I want to perform a task depending on whether or not it is present in the hashmap. Can someone ...

5. Make Struts show different JSPs for different roles    stackoverflow.com

We have a Struts 2 web application that's used by pretty much every employee to manage and configure jobs for our server farm. We're working on a plan to make ...

6. Struts2: How to set corresponding values of selected row in the VO class from JSP report?    stackoverflow.com

In my Struts2 application I am generating a textual report (in jsp) using iterator tag like

<table>
<tr>
<td>ID</td>
<td>PROOF</td>
<td>DELETE</td>
</tr>

<s:iterator value="listOfVOClassObjects">
<tr>
<td><s:property value="requestId" /></td>
<td><s:property value="requestChecker" /></td>
<td><s:property value="requestProof" /></td>
<td><s:checkbox name="deleteStatus" onclick="submit()"/></td>
</tr>    
</s:iterator>  
</table>
When ...

7. Struts help needed    stackoverflow.com

I am working on a Struts application.Now I have a strange situation.The current application has a config file something like this

<action path="/validate" type="test1Action" scope="request" validate="false"> 
      ...

8. if a JAR is placed on app servers's classpath how do we reference it from JSP    stackoverflow.com

On our application we are getting an error saying:

PWC6117: File "/struts-tags" not found
code in the file thats giving error is:
<%@ taglib prefix="s" uri="/struts-tags" %>
This file is in struts2-core.jar which is placed ...

9. Setting the default value in Struts2    stackoverflow.com

I am setting the value(kind of default value) for a drop down select value from action class in a page(given below). When the page loads the value is beig displayed but ...





10. In JSP, how to output "
"
    stackoverflow.com

I have a string var in my Struts2 action, like this:

String tmp = "<br/>";
I want to print it out to the html page as HTML tag by JSP, like this:
<s:property value="tmp"/>
But, ...

11. question on ?    stackoverflow.com

I have a JSP where data is shown by use of a for:each loop. In this loop I have a multibox tag which will display checkboxes next to each corresponding row. ...

12. CSS rules not getting applied in JSPs?    stackoverflow.com

Im building a web application using struts2. I have an authentication interceptor at the top of all the interceptors (I have set it up as such) which checks whether a user ...

13. Java seeking referer    stackoverflow.com

I am using Struts and Java. The problem is that I have a page with some results. The user can click an item and edit it. I want after editing the ...

14. select multiple double side    stackoverflow.com

i want to do a select multiple double side like this : http://www.senamion.com/blog/jmultiselect2side.html (Demo2) but i don't know how i can retrieve my data when i click submit button..? ...

15. load table data on jsp using struts2 with fixed table structure    stackoverflow.com

I want to have a fixed table structure on my jsp page(3row, 4column). but I want to load data for this table from DataBase with using struts 2. I know if ...

16. Jsp Expression Language Problem    stackoverflow.com

I have a jsp in which there is something like this

${pageContext.request.parameterMap.instanceNo[0]}
I want to iterate through each of its value. I tried the below code but doesn't work
    <s:iterator id="test" ...





17. How do i adjust the label width n make it bold ? in the jsp of Struts2 aplication?    stackoverflow.com

Hi I have an struts2 application with jsp pages where i have struts2 tags something like this

<s:form action="contactus.action"  method="post"   name="ContactUs Form" >
    <s:textfield name="cust.fname" ...

18. Check empty string in jsp    stackoverflow.com

How to check for Empty String/Null String in Struts-JSP page. Struts Tag - does not works?

19. struts2 data cut in string send to jsp    stackoverflow.com

i've got this problem again... So i've got String data in my Struts2 app. this data is quite big, 36KB data read from html with code:

     ...

20. Struts2 setting object from jsp    stackoverflow.com

I have queried DB and set that object in Action class and set that back to jsp to display results. Now I want the same object into another or same action ...

21. empty keyword in Struts    stackoverflow.com

Is there an empty keyword in Struts 2 (like in JSP)? For example in JSP I write:

<c:if test="${empty var}">
Thanks

22. iReport chart export in HTML format    stackoverflow.com

I am using the iReport to make the JRXML file. To export this data using Java Struts, I am using the following code.

public ActionForward reportExport(ActionMapping mapping, ActionForm form,
   HttpServletRequest ...

23. Component FormFile browse at the folder level    stackoverflow.com

I want a JSP web page that allows the user to select a folder as input, not files. If I use , I couldn't select a folder as input, I can only select ...

24. what is the difference    stackoverflow.com

hello what is the difference between <%+i%> and ${i}

25. How to open one jsp from another through struts    stackoverflow.com

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

26. Struts - What changes are needed to add a new JSP?    stackoverflow.com

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

    ...

27. Cannot find tabbed panel struts2    stackoverflow.com

I am trying to add tabbed layout to a jsp page using struts2 but the TabbedPanel is not being found. I'm using struts2-core-2.0.11.2.jar Thanks

28. Struts2 datetimepicker not showing    stackoverflow.com

I followed THIS but had no luck. My .jsp file has in head tag:

<s:head theme="ajax" />
and in body tag
<s:datetimepicker name="dateOfBirth" label="Format (yyyy-MM-dd)" displayFormat="yyyy-MM-dd"/>
But it is not showing, here is the ...

29. develop chat room    stackoverflow.com

Good Morning sir this naveen sir am developed a webapplication like online games in that iwant provide a chat room for players who are playing the game now i am developing this application ...

30. Where can I get JSP and struts 2 study materials?    stackoverflow.com

I have interested to learn JSP and struts 2. So what are all the basic knowledge need for learn those things and also specify the websites either learn or download those ...

31. Develop server socket    stackoverflow.com

I want to develop a server socket but I have no knowledge about programming a server socket. Please guide me on how to develop that and give me detail documentation about sockets ...

32. Other option - how to set the value?    stackoverflow.com

1. Member Account Number<span class="bodyCopy"><font color="#ff0000"> * </font></span>: 
<html:select name="reDataForm" property="member.accountNumber" styleClass="formContent"
        style="width:80px" onchange="showfield(this.options[this.selectedIndex].value)">
<html:options collection="<%= WorkConstants.Dropdowns.PACCT %>" property="value"
       ...

33. How to ensure easy maintainablilty while developing Struts application?    stackoverflow.com

I've worked on a few projects on Struts 1.3 but sometimes the application just becomes difficult to modify in the future. I follow Dao objects , Business Delegator classes to ensure ...

34. How to plan and design a web application in Struts 1.3?    stackoverflow.com

I have to develop a web application for college community (with social networking features). How to approach the problem in Struts 1.3 ? Can you guide me through the process right from the ...

35. Struts problem -- s:hidden    stackoverflow.com

I have the following code in my JSP. I'm using a Struts form where I'm passing in a List that I'm iterating over, and each item in the List has ...

36. How to Format a Value within a JSP?    stackoverflow.com

I'm working on a J2EE application which uses Struts (v1) and I would like to format a value being displayed in a JSP. The value to be displayed is a 7 ...

37. Applet loading problem with Struts web project    stackoverflow.com

I'm getting frustrating errors related with "ClassNotFoundException" when I try to load an applet by using tag inside a JSP file within a Struts web project:

load: class com.superdeporter.audio.AudioApplet.class not found.
java.lang.ClassNotFoundException: ...

38. struts2 : How to bring up a pop up window    stackoverflow.com

I am working on a Struts 2 application .I have a JSP page in which there is a normal html table. In one of the columns , I have a ...

39. regarding struts front end    stackoverflow.com

hi every one i am using struts 2 and in that i designed one jsp page when i run that jsp page in eclipse its view is not getting fine and ...

40. Problem with strut     stackoverflow.com

In Struts1.3, I am trying to use html:multibox as follows.

<logic:present name="rolesAvailable">
    <logic:iterate name="rolesAvailable" id="role">
        <html:multibox  property="rolesAssigned" >
    ...

41. Where to start with JSP, Struts2 and CRUD?    stackoverflow.com

I was wondering if anyone had a recommendation on where to start with JSP development using Struts2, with a target of creating CRUD (Create-Read-Update-Delete) applications. I have a few links that I ...

42. Struts : call a a method of DispatchAction from another DispatchAction    stackoverflow.com

I want to call a a method of dispatchAction from another dispatch action. I want that when I click on update or delete "Inside display user method" will be diplayed on my ...

43. JSP Reporting tools    stackoverflow.com

I'm working on a web project using Apache Struts2 and Mysql. I need to show some statistics using graphs which should generate according to the data in the database. Can anyone suggest ...

44. default radio to yes in struts 1.3    stackoverflow.com

<nested:radio property="sendFlag" value="Yes" onclick="showDiv();" />Yes<nested:radio property="sendFlag" value="No" onclick="hideDiv();" />No
The above code defaults to No, on my jsp. Is there a way in which I can allow the Yes button to be ...

45. Examples of Struts2 applications    stackoverflow.com

I am working on a static analysis for detecting security vulnerabilities in web applications, and I am looking for some web applications to run my analysis on. More specifically I am right ...

46. Performace enhancement for a Struts2 application(website) with high traffic usage    stackoverflow.com

I wanted to ask that what all things i should keep in mind in order to create a high performance STRUTS2 based web application. It is guaranteed that the site will ...

47. No result defined for and result success    stackoverflow.com

I'm new to struts 2 and I keep getting this error message 'No result defined for action com.jjpeople.action.HelloAction and result success' while I think I have properly refrenced it.What might be ...

48. Calculate time in JSP by GMT    stackoverflow.com

I have a small problem here, I am passing a list with some events to JSP with Struts2, the list contains a row with events start time. I need to calculate ...

49. how do i find html of struts?    stackoverflow.com

I am really new and not familiar with this...I am trying to edit this folder with a ton of files in it including .xml....I need to find the html part but ...

50. how to modify html in a struts...links to jsp    stackoverflow.com

I am new to struts and I am not sure of jsp either. I am a php scripter with JS and C# experience and various other language including java but not ...

51. jsp and struts framework    stackoverflow.com

i have a set of ten questions in a jsp .At present i'm showing ten of them at a time(writing a loop and iterating them in that loop in a single ...

52. Maven Struts/JSP login logout sample application?    stackoverflow.com

Does anyone have a simple maven sample Struts/JSP application to login/logout and navigate over a couple of pages to share? Thanks.

53. Highlight rows in a table with Struts2    stackoverflow.com

I'm preprocessing some data that users upload, and I want to tell them if any lines of the data are invalid. I figured it'd make sense to check each line, ...

54. How to capture current dynamic output of JSP and email it?    stackoverflow.com

In my webapplication, a JSP page outputs to the webpage, the list of users logged in that day. I want to mail the same output to specifics mail-ids. What all Struts2 ...

55. Enable links and other functionalities only for admin role    stackoverflow.com

I'm developing a simple web application which requires authentication. I would like some JSP pages with some links or functionalities hidden to normal users and visible to admin users. Shall I put ...

56. How can I reenable autocomplete support for just 1 site in my whole struts project?    stackoverflow.com

since I'm trying to solve this problem for some days, I thought about giving you guys a chance. The situation: We're running a SAP Shop with Java Server Pages and Struts in ...

57. How to retain values in JSP using Struts2    bytes.com

i dont have any text fields in that page, based on the drop down i get the list of employees and the current status of the employee.

58. 2 newbie questions about Struts and JSP    struts.1045723.n5.nabble.com

Hi, I am studying JSP and I understand that these pages are translated into java code servlets, which are then compiled and executed on the application server. i) Do these 'JSP servlets' implement the HttpJspPage interface defined in javax.servlet.jsp? ii) Does Struts (or Spring MVC) provide implementation of such 'JSP servlets'? Or does Strut (and Spring MVC) have nothing to do ...

59. About the better way to implement a JSP in read/edit mode    struts.1045723.n5.nabble.com

Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode. So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class. So the action class sets some attributes with certains ...

60. Access to ValueStack from JSPs    struts.1045723.n5.nabble.com

http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html has an example on how to access the ValueStack from JSP. I am not able to get the tag/tld working in this example. ...

61. Accessing Static Constants from JSP in Struts 2.0.14    struts.1045723.n5.nabble.com

I'm trying to access a static constant from a JSP page in Struts 2.0.14, but it is not working. My JSP page: Java code: package org.my.company; import java.util.ArrayList; import java.util.List; public Class myClass { public static final List AVAILABLE_STATES = getStates(); public static final List getStates() { List states = new ArrayList(); states.add("New York"); return states; } When I ...

62. assign struts to a String object in JSP    struts.1045723.n5.nabble.com

Hi, i don't know what exactly You are trying to achieve, but i will try to help. First You can't assign struts tag to script variable, those are dofferent worlds, so it will never work. Second, struts tag is just a representation of html input type text. And last, maybe You are trying to assing this input value to a ...

63. Compiling JSP 2.1    struts.1045723.n5.nabble.com

Hello, Any idea how to compile JSP 2.1 in Struts 1? I believe Jasper is out of the picture... I'm not even sure where to begin looking for answers. I'm using Jetty and we use the EL and struts tags quite a lot. A typical example is as follows: , but the JSP compilation is ...

64. Default JSP content type    struts.1045723.n5.nabble.com

Page encoding yes; content type, not sure: http://java.sun.com/javaee/5/docs/tutorial/doc/bnajg.htmlL. Matthew Seaborn wrote: > Does anyone know if it is possible to override the default JSP page content type and/or page encoding either for an entire web-app or as part of Struts 2? > > Many thanks. > > > > > > Matthew Seaborn > Software Architect > t ...

65. Disabling JSP's    struts.1045723.n5.nabble.com

Hello All, I'm in the process of migrating pages from JSP's using snippets to struts actions. I'm wondering how people have disabled access to JSP's so that they cannot be accessed outside of the action anymore. Right now if I have an action like: ...

66. dissplay a message in jsp    struts.1045723.n5.nabble.com

hello all I've a LoginAction in my application . Am checking my username , password with my db. If the user doesn't exist i've to display a message in my jsp page. Now am using session object to store the message . to print the message in jsp ...

67. .do and .jsp    struts.1045723.n5.nabble.com

Hi, I am working on an application, which is developed with struts 1.2.9. I added a .jsp page and action against that page. Now the problem is: if in struts-config.xml, I specify the path of page with .jsp, it works. But with .do extension it doesn't work. Is there any other place in struts besides configuration file where we have to ...

68. Embeded JSP    struts.1045723.n5.nabble.com

69. Get the namespace in a jsp    struts.1045723.n5.nabble.com

70. Getting result of JSP before sending to client    struts.1045723.n5.nabble.com

Hi I am wondering is there a way in Struts2 to get the result of JSP before returning the composed HTML back to client? for example public String execute() { ...do my logic and prepare my data ...then using the data, compose a HTML file from existing jsp ... then i need to save the HTML ...

71. Help with JSP expression    struts.1045723.n5.nabble.com

> I have an expression that I want to evaluate to the following: > > getProvider().hasAccessRight(getRequestFor(), [0]) > > Where [0] is an item in a list that is being iterated over. > > > > I've tried loads of different stuff, and am looking at the struts > documentation, but can't seem to find the correct syntax. ...

72. How to do matematical operation in jsp.    struts.1045723.n5.nabble.com

Hi all i've a hashmap that contains object and a value(int). i would display all the value of the object: x ...

73. How to keep users from accessing to *.jsp strightforword?    struts.1045723.n5.nabble.com

74. How to make tabs in JSP    struts.1045723.n5.nabble.com

Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to the related resource would be helpful ...I have searched on Struts-Layout ...any other option ? Thanks Kavita *****************************************************DISCLAIMER***************************************************** This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged ...

75. How to multi select in Struts/JSP    struts.1045723.n5.nabble.com

> I am new to struts. > > > How do I create a multi select list in struts? Like this > Available selected > > book1 book5 > book2 > book3 > book4 > > > > user should be able to select from Available group and move to selected > group Any ...

76. How to prevent direct access to JSP    struts.1045723.n5.nabble.com

Hi Guys, Can anyone suggest me how to prevent an user entering a direct URL for the JSP instead of action, ie : *search.jsp* instead of *search.action* I want to control this, so the users must enter an URL ends with *.action*and i also wants to control access some pages by typing its action name also, like it shouldn't be allowed ...

77. how to prevent JSP from interpreting ${0}    struts.1045723.n5.nabble.com

> Thanks for the suggestion, Lukasz. That's one of the things that I tried, > but couldn't get it to work for me. I need the braces to appear as such in > the generated page as it's part of a javascript expression. > > I found a workable solution in: > > "this is a test: $\{0\}" > > > ...

78. How to restrict direct accessing .jsp and .do in struts webapp    struts.1045723.n5.nabble.com

Hi, Iam working in Struts1.2 application development. In that i want to restrict direct access(through URL) for jsp pages or by calling .do action. Specifically unauthenticated user must not access any pages. Can you give the idea(s)...... Thanks,

80. in JSP: rounding values    struts.1045723.n5.nabble.com

Hi, I want to round a value during an interation: ------------------------------------------


(Min: , Max: )
...

81. jsp caching problem    struts.1045723.n5.nabble.com

Hi All, Do any one know how to solve caching problem in jsp. My requirement is that, it should not display previously submitted credit card number and passwords. Whenever I put the first number, my page shows all other numbers previously entered as a suggession. I have used the bellow code to solve caching and autocmplete problem. <%response.setHeader("Cache-Control", "no-cache");%> <%response.setHeader("Pragma", "no-cache");%> ...

82. jsp in WEB-INF    struts.1045723.n5.nabble.com

Hello, I use struts 2.1.81. and I don't want that my users access directly my .jsp, so I put them inside WEB-INF. But the struts.xml is difficult to mantain, so I have a question: Is there some sort of constant that defines a prefix for the JSP inside struts.xml? Apparently in struts1 there is something like this. Putting the jsp directly ...

83. jsp out to a differnet outputstream    struts.1045723.n5.nabble.com

Hi guys, I am not sure if it a direct struts question, if it is not pl pardon me and let me know, Is there a method in jsp / struts in which the output of a jsp page is 1. send to a file(saved in a file) , instead of going into browser response, 2. send to an email library, ...

84. jsp's outside WEB-INF in maven archetype?    struts.1045723.n5.nabble.com

The other day I tried out a simple maven archetype (either struts2-archetype-starter or -convention, I don't recall). Anyway, it's one that comes configured with sitemesh. What stroke me as odd was that the sample jsp's were in the path src/webapp/jsp, and not inside WEB-INF. Isn't it preferable to store the jsp's inside WEB-INF (to reduce their visibility)? If so, shouldn't the ...

85. Jsp struts    struts.1045723.n5.nabble.com

Sapan wrote: > Hi, > I got > ???en_US.errors.required??????en_US.errors.required??? > this error on my entry form before submit any button andd I used type="button" value="Submit As Draft" onclick="return validateKForm(this)"> > at end of form > i want to show my message on message or dialog box I donot know where it > goes wrong Difficult ...

86. Jsp struts    struts.1045723.n5.nabble.com

Sapan Reply | Threaded Open this post in threaded view | Report Content as Inappropriate Jsp struts Hi , Hi, I got ???en_US.errors.required??????en_US.errors.required??? this error on my entry form before submit any button andd I used at ...

87. link to stylesheet in jsp doesn't work    struts.1045723.n5.nabble.com

I'm having a problem linking to a stylesheet and could use some help. My project layout in Eclipse is as follows: pp_base WebContent css pp.css guest ...

88. not able to send the message to jsp    struts.1045723.n5.nabble.com

Hi, In my application i have passed a message to the addActionMessage in my action class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp file i have specified both the and tags. I was able to reach the xyz.jsp but without any message being rendered. So, can u pls figure out where am ...

89. not able to send the message to jsp    struts.1045723.n5.nabble.com

Hi, In my application i have passed a message to the addActionMessage in my action class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp file i have specified both the and tags. I was able to reach the xyz.jsp but without any message being rendered. So, can u pls figure out where am ...

90. OT: accessing System.getProperty from JSP    struts.1045723.n5.nabble.com

91. [OT?] standalone jsp    struts.1045723.n5.nabble.com

On Sat, Jan 29, 2011 at 2:37 PM, Dave Evans wrote: > Yes, I currently use velocity. But i'd really rather just use a single > "language" for both web and non-web presentation. > Ew. IMO JSP is a poor general-purpose templating language, and makes less sense for non-web presentation. IIRC Musachy banged on the TC JSP engine for testing purposes, ...

92. [OT] When did JSP officially go from 1 to 2?    struts.1045723.n5.nabble.com

I'm trying to create a doc to persuade the 'powers that be' to provide a decent server for our applications, and I'm presenting the merits of JSP2/Servlet2.4. I'd like to know when those specs became official, but I'm having trouble finding the dates. I want them to realize that I'm not requesting anything bleeding - I think JSP2.0 was official back ...

93. Problem in JSP. help me pls    struts.1045723.n5.nabble.com

hai, when trying to open my jsp page in browser i get this error. can anyone plas help me. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.FormTag org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541) ...

94. Problem in JSP. help me pls    struts.1045723.n5.nabble.com

while opening my browser i get this error msg in my browser. this is the error msg. HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156) ...

95. Problem using JSP expressin in Struts 2    struts.1045723.n5.nabble.com

Hi, We are in the process to upgrade our application. Currently our aplication is on *Weblogic: 8.1sp5 Java: 1.4 Struts: 1.2 * We are upgrading it to: *Server: Weblogic 10.3 Java: 1.6.0_5 Current Struts: 2.0.14 *We are facing issue with jsp expression in struts tag. All the expression which uses JSP variable as <%=name%> are not working and getting error "Request ...

96. Problem with struts in JSP    struts.1045723.n5.nabble.com

Hello I have a very strange problem. I have an application that we developed in JAVA and the application works ok in Windows. We recentl deployed the same application in Linux REDHAT and the application seemed to worked fine, until the user reported to us a problem. After doing research it happens that in Linux RedHat instructions like this:

99. Re: How to set object to value stack from jsp?    struts.1045723.n5.nabble.com

> > I have an object in session nad want to use it in > jsp struts tag as a top > object. > > I do not want to create action for geting it from > session and putting it to > action property. > > How can i put a value from session to the top of ...

100. Restricting Direct Access to Jsp    struts.1045723.n5.nabble.com

Hi, I am using struts 1.3.8 for my application. Can anybody please help me how to restrict access to jsp pages directly in struts. I am not having any of jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion will be a great help to me. -- Regards Archer