stripes

Good Stripes tutorials / examples?

The company I just started working for is using Stripes for parts of its web page development these days, and while it seems to be a nice enough web framework it no one really uses it-- it is almost non existent on the 'net. It's not even first in it's google search and the result you do get is for its old home page. So, do any of you p...

Practical Experience using Stripes?

I am coming from an Enterprise Java background which involves a fairly heavyweight software stack, and have recently discovered the Stripes framework; my initial impression is that this seems to do a good job of minimising the unpleasant parts of building a web application in Java. Has anyone used Stripes for a project that has gone li...

Eclipse's WTP translation output

How can I view the intermediate translation done to JSP and JSPX pages by WTP? I'm getting weird syntax errors in my Problems tab of Eclipse in a project that has plenty of .jspx pages. They don't affect anything in the running application (Tomcat 6.0) and they appeared only over the last 2 weeks, after an update. The reason why I'd l...

parameterised jsp:includes of stripes actions?

I've been trying to solve this, and have been getting stuck, so I thought I'd ask. Imagine two ActionBeans, A and B. A.jsp has this section in it: ... <jsp:include page="/B.action"> <jsp:param name="ponies" value="on"/> </jsp:include> <jsp:include page="/B.action"> <jsp:param name="ponies" value="off"/> </jsp:include> ... Take i...

Stripes: all URLs resolved through StripesDispatcher and forwarded to pre-compiled JSPs

Is it possible to have the StripesDispatcher be the sole determiner of webserver urls by looking at the @UrlBinding annotations on action beans AND also having those action beans forward to pre-compiled JSPs / servlets WITHOUT needing to define and maintain <servlet> <servlet-mapping> pairs in web.xml? Basically, I just want to have to o...

jQuery Ajax error resolution

I'm working on a stripes app that uses a bit of jQuery to make the UI more dynamic/usable. I set up an Error Resolution, so if an error is thrown, the user is redirected to an error.jsp page. However, if an error is thrown during a jQuery Ajax call, instead of redirecting to the error.jsp page, I get html printed to the page where the ...

java web app decorating/includes issues

Background: we have a system that was written in an older CMS based on Java back during the 2002-2003 days. We want to keep moving forward with our new stuff, using tomcat, stripes, and sitemesh. We have navigation, layouts, "pods", js, css, etc, that we've taken out of the old CMS and into a few of our new apps so we have consistent l...

Java/JSP Image upload. Where to keep these image files?

Hi everyone, I am writing a simple application that let user upload images. After the upload the user can tag them or remove them. Nothing fancy nothing special. So I figured out how to upload the files and save them once the files are uploaded. I am keeping tracking of a global path where images are kept. In the database i keep the m...

HTML table with alternating row colors via XSL

What is the easiest way to alternate row colors in an HTML table (a.ka. striping). Most of my tables are created in XSL templates like the following, with the table, thead, etc.. defined in another template. <xsl:template match="typ:info"> <tr> <td> <xsl:value-of select="typ:dateAccessed" /> </td> <td> <xsl:val...

Setting cookie in javabean getter

I am using Stripes but i'm not sure if this problem is because of that. I have an actionBean with a setter method setSearchView. In this setter, I set a cookie. The problem I'm seeing is that if i call that method from my jsp, the cookie does not get set (i have debugged the code and it does go through the code). If i call the same s...

Converting a Stripes application to use Friendly URLs

I am working through Fred Daoud's Stripes book and trying to convert the Hello World application to use friendly URLs, as I'm not a big fan of suffix-based mappings like http://localhost:8080/getting_started/Hello.action. Here is the before ... index.jsp: <jsp:forward page="/Hello.action"/> web.xml: <servlet-mapping> <servlet-n...

Can you use J2EE frameworks with the Google App Engine?

I have been working on a small web app using the Stripes framework. Now that the Google App Engine has added support for Java, I am wondering if I can convert it to run in the Google App Engine to save costs on hosting. ...

Spring and Stripes Security Design

I'm building a web application using Stripes and Spring. It needs to have a login/authentication feature. Right now I store user information separate from user credentials in the database. My User model does not contain the credentials as I don't want to be passing around valuable passwords. Spring manages all of my DAO's. Now, I ...

Stripes ActionBean URL bindings

I'm trying to set up the Stripes calculator example application using Eclipse. I'm able to run the .jsp on the server, but as soon as I invoke an ActionBean by clicking one of the buttons (such as "add"), I get: ActionBeanNotFoundException: Could not locate an ActionBean that is bound to the URL [/quickstart/Calculator.action] This ma...

Stripes & jQuery - how do i sent over variable in an ajax request?

So I have a table in a jsp page with several rows and checkboxes for each row. I created a js function that creates an array of the value on the checkboxes. I want to send this array over in an ajax call so I toJson-ed it but I dont understand how actionbean variables get set with these parameters. Can anyone help? THANKS! ...

First time use of Tomcat and the Stripes framework

I recently decided to try some java web development, so I installed xampp, the tomcat add-on, and java. I have looked at some of the JSP page examples that came with it, so I know that tomcat is at least working. However when I threw the stripes folder into the same examples directory and tried to access the files I received the followin...

Tomcat 6 - The requested resource ... is not available.

I am trying to start developing with Java and the Stripes Framework. I have the following in my web.xml file <?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.su...

How do I include an icon on a Stripes button with jQuery

I am using Stripes and jQuery along with a generated jQuery UI theme. I want to embed a <stripes:form> in a div, then style the <stripes:button> for the submit with one of the icons from the theme. This Works: (but obviously doesn't tie in to Stripes) <button id="save" class="ui-state-default ui-corner-all"> <span class="ui-icon u...

Can i break up a jsp foreach loop with stripes layouts

Say I have the following for each in a stripes layout definition <c:foreach items="${foo}" var="bar" > <s:layout-component name="whatever" /> </c:foreach> Then when I render I do something like this <s:layout-component name="whatever"> //Do something with bar </s:layout-component> The whatever component is rendered before ...

How to send data to ActionBean via JavaScript?

I'm playing with Stripes and I wonder if it is possible to send Javascript generated data to ActionBean. To be more specific, when I click with my mouse on certain element on page, I want to send ID of that element back to ActionBean after clicking on stripes:link. Providing I already have that ID saved in a JS variable id, how do I do t...