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
author & internet detective
Joined: May 26, 2003
Feb 21, 2009 08:41:52
Any reason you are using scriptlets instead of
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:
OCA 8 book
How To Ask Questions The Smart Way
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
Updating the Mapping Table.
Getting Bad Request
Forward in an action forms reset method.
Sort array - by two fields
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-2015