jsp 2 « Struts « JSP-Servlet Q&A





1. S2 : Checking constants within JSP    struts.1045723.n5.nabble.com

Hi, What's the best way to check constants in jsp using the s:if tag. I've constants defined in a file like : public class AppConstants { public static final String APPLICATION_CODE = "MYAPP"; public static final String APPLICATION_VERSION = "1.2"; Now, in the JSP we need to use these constants within an s:if ...

2. [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?    struts.1045723.n5.nabble.com

Hi all, I just give up the datetimepicker component, due to a 2s more page load time. I put anoter JS calendar (YUI calendar), but the problem is that in my Actions I have java.util.Date attributes. So I need to format my Date into a String that the calendar will understand (dd/MM/yyyy in my case). When I submit the form I ...

3. [s2] Is it possible to pre-compile JSPs and evaluate expressions?    struts.1045723.n5.nabble.com

Is it possible to pre-compile JSPs with Struts 2, as well as compile/evaluate OGNL expressions? I found the following on compiling OGNL expressions, but it's a little more low-level than what I'm looking for. http://cwiki.apache.org/WW/ognl-expression-compilation.htmlI'm looking for a mechanism or tool that will allow me to parse/compile pages and look for syntax errors that might exist in expressions. I'd probably need ...

4. [S2] JSP load time    struts.1045723.n5.nabble.com

Hello I have a question about the time a JSP takes to load. I am converting a struts1+tiles1 application to struts2 (2.0.9) + tiles2 (2.0.4) on weblogic 10 and I have noticed that the first time a jsp using S2+T2 is accessed it is taking a long time to be displayed, after the initial access the page is displayed almost ...

5. [S2] Testing, getting jsp output.    struts.1045723.n5.nabble.com

> Hello > I'm writing tests on application that uses Struts2. > To test the actions, I use about a technique similar to the one > described here http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html> > I wish to do more and test the Jsp (and Tiles) output too. > That code does this: > > response = new MockHttpServletResponse(); > ServletActionContext.setResponse(response); > > I can set: ...

6. Setting a value on a jsp    struts.1045723.n5.nabble.com

I have an html:form in my jsp...it contains radio buttons for a property on that form called settings. I want to be able to set the settings property on my form in the jsp so that the radio button will be checked...basically i want to pass in a form value but I can't do it in my action. I ...

7. Struts 2 - Namespaces and hiding JSPs in WEB-INF    struts.1045723.n5.nabble.com

Hey gang, I'm doing something that appears to be a bit strange and I'd appreciate any advice anyone might have. I have two areas within my app -- "admin" and "user". So I have and . That seems simple enough. The problem I'm running into stems from an earlier decision to "hide" my JSPs ...

8. Struts-EL and JSP 2.0    struts.1045723.n5.nabble.com

> -----Original Message----- > From: Antonio Petrelli [mailto:[hidden email]] > Sent: Thursday, February 14, 2008 8:50 AM > To: Struts Users Mailing List > Subject: Re: Struts-EL and JSP 2.0 > > 2008/2/14, javaskull <[hidden email]>: > > > > I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container. If I'm > > using the Struts ...

9. Struts jsp access java class    struts.1045723.n5.nabble.com

I have a properties class which has soem properties being loaded from a remote system. In my jsp I need to access the java class. In traditional jsp I have [code] <% /* CAPTCHA */ boolean captchaEnabledFlag=PropertiesConfig.getCaptchaEnabled(); %> <%if (captchaEnabledFlag) {%> ...





10. struts2 is moving mainly to jsp ?    struts.1045723.n5.nabble.com

Hi there, i used to have the following scenario in webwork . A file header.shtml and footer.shtml . The "shtml" was set as the default velocity extension. I used to be able to add the velocity servlet to web.xml (can not do now ...) so the file was parsed as velocity. Now : 1) direct access to velocity or freemarker files ...

11. struts2 jsp s:set question    struts.1045723.n5.nabble.com

Hi, I have a "Company" object as follow and setAttribute("company", company) in action. When do follow in jsp <%=company.formartName("aa")%> And company.formartName("aa") in jsp throw exception. Do I did something wrong? Thanks Here is Company.java ========================== public class Company { private Long id; private String name; ...

12. Struts2: JSP vs JSPF issue    struts.1045723.n5.nabble.com

The following is in a file called "menu.jspf" <%@ page pageEncoding="UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %>

Menu

Login The html produced is (produces tags instead of tags...):

menu

Loginmenu
Login I am using Netbeans 6.9 RC2 ...

13. tc5.x caching jsp    struts.1045723.n5.nabble.com

14. The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.    struts.1045723.n5.nabble.com

hi , i tried to add new jsp in struts2-blank application, iand i have configer it into sturts.xml but it's

15. Using JSP 2.0 syntax inside Sitemesh decorator    struts.1045723.n5.nabble.com

I can't believe I haven't run into this issue before but I just noticed that you can't use JSP 2.0 syntax inside a Sitemesh decorator. My Sitemesh config is exactly like as described here: http://struts.apache.org/2.x/docs/sitemesh-plugin.htmlThe only difference is that I'm using PageFilter instead of FreeMarkerPageFilter since I'm not using Freemarker. If I store something in session under a key called "user", ...

16. Using Objects in JSP    struts.1045723.n5.nabble.com

In struts 1 you could use the bean:define tag to use objects in a jsp file... for instance I used this to show a stack trace in an error jsp. <% out.println("

17. version bump from struts 2.2.1 to 2.2.3 and JSP broke??    struts.1045723.n5.nabble.com

Hi there, Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the freemarker related pages work fine. My deployment environment is glassfish 2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1. For my welcome page, I have a single JSP ...

18. Struts and Tomcat4.0    coderanch.com

Here are a couple of visual environments and addons for developing struts based applications. I haven't used any so I can't comment on how good/bad they are 1.http:/www.roamingmedia.com (commercial addon to borland's ide). 2.http://www.scioworks.com/scioworks_camino.html (free as far as I know). 3.http://www.ejcenter.com/struts/ (free not yet open source). Maybe you can update us on your experience on this Cheers Ravi.

19. Struts and Jsp    coderanch.com

Originally posted by Stephen Pride: Tim, Kind of funny how I can be wrong about a personal opinion, but all I can say is I've learned about 80-90% of what I've needed to about Struts from that web site, but of course that's me. Originally posted by Tim Holloway: [qb]He's wrong, alas. I had so much trouble figuring out what Struts ...

20. Why Use Struts?    coderanch.com

21. O'Reilly struts - book review chapters    coderanch.com

22. problem of internationalism in struts framework    coderanch.com

I am now using struts framework. In the ApplicationResources_zh.properties, there is word in BIG5 encoding (chinese). In the jsp, there is <%@ page contentType="text/html; charset=BIG5" %>. However, when I browse the page in browser, the Chinese words appears in symbols only. If my jsp file does not have the line <%@ page contentType="text/html; charset=BIG5" %>, the Chinese words appears in symbols ...

23. Question about ActionError of Struts    coderanch.com

In the ApplicationResources.properties you can define these properties errors.footer= errors.header= Or whatever html you want to wrap the errors in. If you want to have a bit more control (i.e. not the same everywhere) you can use a logic tag. property="yourError" > The Action.ERROR_KEY is the default name that the ActionErrors bean ...

24. question of struts    coderanch.com

In my jsp page, there are many textbox which have similar name, for example, text0, text1, .... , text9. In jsp, I can generate this code: <% for (int i=0; i<10; i++) { %> <% } %> However, when I use struts in jsp page, I can't add JAVA code in the tag of struts : ...

25. Struts advantages, Struts alternatives    coderanch.com

26. Regarding jakarta-struts 1.1 material    coderanch.com

28. Struts: Cannot find ActionMappings    coderanch.com

I am using Tomcat 4.1 and struts. I can use the example.war file with no problem at all. When I try and access my jsp files for my project, I get - Cannot find ActionMappings or ActionFormBeans collection I have checked and rechecked my web.xml and my struts-config.xml, but no luck. The type parameter for the beans and actionmappings are all ...

29. Starting JSP /JSPTAGS and Struts    coderanch.com

Originally posted by Jawahar Rajan: Simon, Is your book for beginners or more seasoned developers. Do you start from the begining for JSP's JSPTAGS and struts. Or is your other book on professional JSP's, more of a beginers book. With regards to JSP tags, the book is for both beginners and more seasoned developers. It does require a certain degree of ...

30. Struts question    coderanch.com

Hi, I was asked this question in an interview. How will you restrict a user from accessing few of the web pages based on the credential he has supplied when logging to the sytem ? This was to be done using the jakarta Struts framework. Can somebody help me on this one.

31. Struts and output streams    coderanch.com

32. Struts-Design Problem    coderanch.com

I'm not sure exactly how dynamic the content of your secondary form is, but it seems to me that you should probably have multiple beans with multiple pages. i.e. currently you're trying to do this: form 1 --> action --> problem form where what you really want to do is form 1 --> action --> form 2a || 2b || 2c ...

34. Difference between struts 1.0.2 and struts 1.1    coderanch.com

have a look at today's newletter for a good description of one of the most important enhancements created in 1.1. if you can show you html code that isnt working it would help because your question on how to make html:linkn working was too vague. Are you sure your spelt the URL correctly? which type of link are you using? (action, ...

35. I want to install struts, do I need to download all of the following packages?    coderanch.com

they are: Commons BeanUtils 1.6.1 Commons Betwixt 1.0 Alpha 1 Commons CLI 1.0 Commons Collections 2.1 Commons Digester 1.4.1 Commons Discovery 0.1 Commons FileUpload 1.0 Beta 1 Commons HttpClient 2.0 Alpha 3 Commons Lang 1.0.1 Commons Logging 1.0.2 Commons Net 1.0.0 Commons Validator 1.0.1 James 2.1 ORO 2.0.7 Struts 1.1 Release Candidate 1 Tomcat 4.1.18

36. Struts ActionForms and DataBeans    coderanch.com

I have a question that falls between matters of taste and best practicies. I am new to using Struts in a MVC architecture. I have done a good deal of three-tier programming using DataBeans to pass information between the tiers. One specific practice I use is a so-called "TransportBean" that can hold a vector of DataBeans so that multiple results can ...

37. learn advanced Struts.    coderanch.com

38. Urgent!! struts and Tomcat4.0.1 problem    coderanch.com

39. JAAS JSP STRUTS    coderanch.com

40. How to paging use struts?    coderanch.com

Hi everyone: Does anyone have a paging example using jakarta taglib?I think paging is difficult to operate comparing to taglib.More,I have to paging after I query database each time.It's too tired. I think that it is should be easier to operate if I use the database taglib.If has,How to use? Thank you! :roll: [ April 29, 2003: Message edited by: lyo ...

41. the reason to not use struts    coderanch.com

42. question on struts?    coderanch.com

I guess this would a business decision or your decision..... If you validate using javascript then validation would be fast but you would be depending a lot on the browser support(if browser does not support javascript ?? or javascript is disabled ??) If you validate the same on the serverside using ActionForm etc.. your validation might be slow. Thats it.

43. Struts    coderanch.com

44. question on struts?    coderanch.com

Yes. These would be two distinct actions; one action to view the data, another to update it. If your application is working and is fairly small, I'd stay away from Struts. It's pretty complex to use on small projects and, after having used it for a year, I don't see that much advantage to it other than the tag libraries but ...

45. Struts    coderanch.com

hi i like to download struts..when i go to the following URLhttp://www.apache.org/dist/jakarta/struts/binaries it lists the following.. ------------------------------- Parent Directory - Jakarta project jakarta-struts-1.1-b3.tar.gz 31-Dec-2002 00:12 17M Jakarta project jakarta-struts-1.1-b3.tar.gz.asc 31-Dec-2002 00:13 181 Jakarta project jakarta-struts-1.1-b3.zip 31-Dec-2002 00:30 17M Jakarta project jakarta-struts-1.1-b3.zip.asc 31-Dec-2002 00:30 181 Jakarta project jakarta-struts-1.1-rc1.tar.gz 22-Feb-2003 09:44 20M Jakarta project jakarta-struts-1.1-rc1.tar.gz.asc 22-Feb-2003 09:44 226 Jakarta project jakarta-struts-1.1-rc1.zip 22-Feb-2003 09:56 ...

46. JRun struts    coderanch.com

47. Unable to Run Struts based JSPs in WSAD 5.0.    coderanch.com

Hi All, I'm currently using WSAD 5.0 and in my Web Project Struts jars are available and it compiles fine. But when i try to execute the same in a server, i get following error. [6/20/03 9:54:32:938 IST] 13ad2d27 WebGroup E SRVE0026E: [Servlet Error]-[org/apache/struts/taglib/html/TextTag]: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/TextTag at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) If i add struts.jar in classpath ...

48. struts vs. sofia    coderanch.com

51. What are disadvantages of struts ????    coderanch.com

52. Stiff learning curve compared to struts    coderanch.com

53. Struts Ref    coderanch.com

54. Opinions wanted: struts or faces or jato ??    coderanch.com

Hi I've just started a new job and am refactoring and redesigning a JSP/servlet J2EE application which is running on Sun One AppServer 7. It is a real mess so far and I need to implement an application framework. This needs to: - rationalise the design pattern - make more efficient the form/event handler chain (currently using horrible URL encoding and ...

55. Struts Problem    coderanch.com

57. help required!! opensource Struts Chat Application    coderanch.com

"cool_kumar", You have been asked to change your display name to conform to JavaRanch standards on two previous occasions. Consider this your final warning. Accounts with invalid dislay names are subject to closure. I have closed this topic. PM me when you have changed your display name appropriately and I will re-open it.

61. State in Struts    coderanch.com

62. Help in struts    coderanch.com

63. struts DAO layer and DTO objects    coderanch.com

64. JSP and Struts    coderanch.com

65. difference between struts and jsp    coderanch.com

Originally posted by Damanjit Kaur: The complexity is solved mainly thru the use of validation framework in struts where you can specify all common validation in one file and use that in any jsp form with struts code,thereby reducing the html code and also java script/jsp code for validations in each html/jsp file and making the jsp file look simpler and ...

66. Struts : html:select    coderanch.com

69. struts    coderanch.com

70. JSP---> Struts    coderanch.com

71. Question For Struts Guru's    coderanch.com

72. struts    coderanch.com

73. PhotoGallery using Struts    coderanch.com

74. Pagination Using Struts    coderanch.com

76. Is Struts still the way to go?    coderanch.com

I use Java Server Faces. Either Sun's or MyFaces. I think it has a more flexible navigation and logic schema than Struts. Still you can include Struts in the project and get the best of both worlds. For example keep the control in JSF and a lot of the view goodies made with Struts tags.

77. JSP - Struts Framework    coderanch.com

78. Struts    coderanch.com

80. problem in Struts    coderanch.com

83. struts link onclick question    coderanch.com

84. Generating Reports in JSP struts    coderanch.com

85. Struts and Beehive    coderanch.com

I just need a small clarification regarding the Apache Beehive .We are building a web application using struts framework where we have a requirement of building a dynamic tree in the front-end. This tree takes the xml file as input from the server which has its structure .In addition to this, we also need to give a right-click event option inorder ...

86. Needed good books on struts    coderanch.com

87. Why struts framework not any other?    coderanch.com

89. Struts 1.1: optionsCollection empty?    coderanch.com

90. dynamic generated graph in struts    coderanch.com

91. JSP + struts html:select    coderanch.com

HI, I am using struts 1.2 in my web application. I have to display one .... list list will be build dynamically. User can select any option. base on the user's selection page will be refreshed (need to hit the database and display information in other fields on same page.) I need to know two things: 1) there is one ...

92. problem in struts application    coderanch.com

93. Tracking separate thread java/jsp/struts    coderanch.com

Hi all, My project is a webapplication using java/jsp/struts. My requirement is to write bulk data to a file, which i want to run as a separate thread. Since it runs as a separate thread the control comes back to UI (userInterface) page. On subsequent request from UI page by the user i want to check whether the thread process is ...

94. thread creation in struts    coderanch.com

95. struts and jndi problem    coderanch.com

97. J2EE, Maven 1.x, Struts 2    coderanch.com

100. new to Struts and JSP    forums.oracle.com

Hi, I have question regarding JSF. Is this framwork encompass all the features that are there in JSP and struts framework. In other words, can you do all that stuff which can be done in JSP and struts. I have some experience in struts and I was wondering if choosinig JSF for my next applicatin would be better (since it has ...