RE: Problems with request parameters.

2003-03-13 Thread Margarita Manterola
El jue, 13-03-2003 a las 15:35, Zheng, Gang escribió:

> 

I got the same result :(.

I took this from a struts example (struts-upload), I think it should
work as it is.  Might be because I'm using Tomcat 3?  Or maybe because
I'm using struts 1.1rc1 ?

Love,
Margarita.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with request parameters.

2003-03-13 Thread Margarita Manterola
Hi!

I'm a newbie trying to use struts.  I'm just trying to set a parameter
to the "request" object, but won't work.  Can anyone tell me where I
made my mistake?

I have a System.out.println and it prints alright, but the message never
arrives to the jsp page, the default value is printed instead.

This is from my struts-config.xml
-
   
   
   
   




--

This is PepitaAction:
-
public final class PepitaAction extends Action {

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {

PepitaForm pform = (PepitaForm) form;

int base = pform.getBase();
int exp = pform.getExp();
try {
String strMessage = base + "^" + exp + "=" + Math.pow(base,exp);
System.out.println(strMessage);
request.setAttribute("message", strMessage);
return (mapping.findForward("success"));
} 
catch (Exception e)
{
request.setAttribute ("message", e.getMessage());
return (mapping.findForward("failure"));
}
}
}


This is pepita.jsp:
---
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<[EMAIL PROTECTED] contentType="text/html"%>

Pepita



<%=strMessage%>



---

Please, tell me where did I mix everything up.

Love,
Margarita.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do you keep your session junk free?

2003-03-07 Thread Margarita Manterola
El vie, 07-03-2003 a las 13:00, Jose Gonzalez Gomez escribió:

> Please, don't take this as criticism to Struts. I think Struts is a 
> great framework and I'm using it and will be using it in whatever J2EE 
> project I do, but maybe we could start thinking a level above... what do 
> you think?

I'm no expert, and I apologyse if I'm wrong here, but I think Expresso
Framework has this "wizard" functionality.  Doesn't it?

Love,
Margarita.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Monkey examples

2003-03-05 Thread Margarita Manterola
Hi!

I'm a newbie, trying to get a taste of struts.  I'm using Tomcat 3, and
I've put all the struts libraries and jars in the "apps" folder, so that
all the apps have access to them.

The struts applications (documentation, templates, etc) seem to be
working fine. However, I've downloaded the monkey examples and deployed
them, but I cannot use them :(.  I'm getting "Cannot find ActionMappings
or ActionFormBeans collection".

I've read that this error is due to problems in the struts-config.xml,
but I haven't changed any of them, I've checked the xml tags and they
all seem fine to me.

Is there something else that might be causing this error? 

Thanks,
Margarita.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]