Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to access an object which is set in request attribute
Updating the Mapping Table.
XSLT/XPath - Find unique text node value
Forward in an action forms reset method.
Getting Bad Request
Sort array - by two fields
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013