A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to access an object which is set in request attribute
Joined: Aug 17, 2007
Feb 20, 2009 21:29:23
I faced a problem while developing a strut application.
I am explaining in details.
In my action class I defined an object which is as follows
public ActionForward perform(
Department dept =new Department();
But I am unable to access in succes.jsp
<%@ page import="deptPack.Department"%>
and when i wrote
The following eror is coming during compilation
"the method defined Department is undefined for the type succes
Please help me.
Thanks in advance
Joined: May 26, 2003
Feb 21, 2009 08:41:52
Any reason you are using scriptlets instead of Struts tags? (or EL)
With Struts tags, this would be:
<bean:define id="dept" name="DEPARTMENT" /> <bean:write name="dept" property="name" />
If you want to use Scriptlets, the cast looks wrong. It should be:
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: How to access an object which is set in request attribute
Forward in an action forms reset method.
Getting Bad Request
Sort array - by two fields
Updating the Mapping Table.
XSLT/XPath - Find unique text node value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014