On 6/13/05, Paul Goepfert <[EMAIL PROTECTED]> wrote:
> ok here is what I am talking about. I have a form that takes in first
> name, last name, street address, city, state and zipcode. When I press
> on the button to enter that information into a database. I want the
> page to reload with clear
ok here is what I am talking about. I have a form that takes in first
name, last name, street address, city, state and zipcode. When I press
on the button to enter that information into a database. I want the
page to reload with clear input fields.
-Paul
Michael Jouravlev wrote:
What d
What do you mean "clear out" and what do you mean by "reload"? If you
need a stateful component to obtain user data, and to be able to to
redisplay the page with error messages, and to store intermediate
data, and to correctly process Refresh and Back buttons, you might
want to take a look at the c
I figured it out. It was a stupid mistake, the mappings didn't match
between my struts-config and my Action Class. By the way, the Dispacher
looks like a better way to handle actions. I don't suppose anyone
would know where I would call the reset method to clear out the form onn
a reload?
On Mon, June 13, 2005 2:41 pm, Dave Newton said:
> Have you put in logging statements to make sure that the action
> parameter is what you expect it to be when you hit your action?
Dave is right... throw some println's in that Action and make sure your
getting there in the first place. The code l
truts.apache.org/userGuide/building_controller.html e.g.
struts-config.xml
HTH,
Martin-
- Original Message ----- From: "Paul Goepfert"
<[EMAIL PROTECTED]>
To:
Sent: Sunday, June 12, 2005 9:37 PM
Subject: Having ttruble with actions and buttons
Ok, here is the pro
Paul Goepfert wrote:
[...] try
{
session = request.getSession();
action = request.getParameter("action");
if(action.equals("enterInfo"))
{
return (mapping.findForward("enter"));
}
else if(action.
s Users Mailing List"
Sent: Sunday, June 12, 2005 11:10 PM
Subject: Re: Having ttruble with actions and buttons
I am still new too struts so I don't understand why I would need to
incluide forwards with names of success and failure in my struts-config.
Those forward names just look
Here is my MenuAction.java
package actions;
import org.apache.struts.action.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.Arrays.*;
import java.io.*;
import forms.*;
import beans.InfoBean;
import logic.DB;
public class MenuAction extends Action
{
public ActionFor
On Mon, June 13, 2005 12:54 am, Paul Goepfert said:
> Well I just created a test jsp file to see if I got to the page. I
> didn't. I just want to be sure about one thing. I am soppose to have
> multiple actions in my struts config? One for each page? Right?
How your app is configured is compl
> Ok, here is the problem. When I load up my web app the page loads fine.
Which app, what page? Not enough detail, and the question is too generic.
> When I try to advance to another web page in my web app all I get
is a blank screen.
You do not "advance to pages" in Struts. You have to get use
Well I just created a test jsp file to see if I got to the page. I
didn't. I just want to be sure about one thing. I am soppose to have
multiple actions in my struts config? One for each page? Right?
-Paul
Frank W. Zammetti wrote:
Ok... I probably can't be of too much help then... I've n
Ok... I probably can't be of too much help then... I've never used Velocity.
One thing to try though... change your forwards to go to a test JSP...
if you get to it, then the problem is in the Velocity side of things (or
the forward to the Velocity templates). At least you'll narrow down
your
I am forwarding to a web page. The .vm file extension is mapped to
org.apache.velocity.tools.view.servlet.VelocityViewServlet. I am using
Apache Velocity for my Web page design. Should I be forwarding to Actions?
My intention is to go to a Velocity page rather then an html or JSP.
-Paul
Fra
What are you forwarding to in this mapping Paul? Is .vm the extension
your application uses to map to ActionServlet, in which case you are
forwarding to Actions? Or is it something else?
Most commonly, the forwards go to JSPs (although not necessarily).
You are correct in your thinking with
l Goepfert"
<[EMAIL PROTECTED]>
To:
Sent: Sunday, June 12, 2005 9:37 PM
Subject: Having ttruble with actions and buttons
Ok, here is the problem. When I load up my web app the page loads
fine. When I try to advance to another web page in my web app all I
get is a blank screen. Fo
AIL PROTECTED]>
To:
Sent: Sunday, June 12, 2005 9:37 PM
Subject: Having ttruble with actions and buttons
Ok, here is the problem. When I load up my web app the page loads fine.
When I try to advance to another web page in my web app all I get is a
blank screen. For every page I have a
Ok, here is the problem. When I load up my web app the page loads
fine. When I try to advance to another web page in my web app all I get
is a blank screen. For every page I have a form.java and an action.java
file so I can move through the web app. Here is part of my
struts-config file tha
18 matches
Mail list logo