Re: Error message!

2003-12-09 Thread Oron Gill Haus
It looks as though one of your tags in the 'app' include doesn't have a
getter/setter for an attribute you have specified in your TLD.

--- Zakaria khabot [EMAIL PROTECTED] wrote:
 Hi,
 I received this error message and don't understand the soiurce of
 error :
 
 javax.servlet.jsp.JspException: No getter method for property action
 of bean org.apache.struts.taglib.html.BEAN
 
   java.lang.Object

org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
 java.lang.String, java.lang.String, java.lang.String)
 
   RequestUtils.java:968
 
   int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()
 
   BaseFieldTag.java:176
 
   int org.apache.struts.taglib.html.HiddenTag.doStartTag()
 
   HiddenTag.java:123
 
   void _detail._jspService(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
 
   [/detail.jsp]
 
   detail.jsp:29
 
 My detail.jsp file is the following :
 %@ page contentType=text/html;charset=windows-1252%
 %@ taglib uri=/WEB-INF/app.tldprefix=app %
 %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
 
 html
 head
 meta http-equiv=Content-Type content=text/html;
 charset=windows-1252
 title
 Consultation et modification des données.
 /title
 /head
 
 body bgcolor=white
 BLes données sur le DVD./B
 html:errors/
 
 html:form name=myform type=mypackage19.DetailForm 
 action=/process
  
 script type=text/javascript
 function go(action) {
 document.forms[myform].action.value=action;
  }
  
 /script
 
  
 html:hidden property=action /
 
 
 !--html:hidden property=action/--
 table border=1 width=100%
 
   tr
 td align=right
   bean:message key=prompt.id/:
 /td
 td align=left
 html:text property=id size=16 /
 !--html:hidden property=username write=true/--  
 
 /td 
 
   /tr
 
   tr
 td align=right
   bean:message key=prompt.title/:
 /td
 td align=left
   html:password property=title size=16 maxlength=16/
 /td
   /tr
 
   tr
 td align=right
   bean:message key=prompt.length/:
 /td
 td align=left
   html:text property=length size=50/
 /td
   /tr
 
   tr
 td align=right
   bean:message key=prompt.actors/:
 /td
 td align=left
   html:text property=actors size=50/
 /td
   /tr
 
   tr
 td align=right
 html:submit value=Create onclick=go('create')
 bean:message key=button.create/
 
   /html:submit
 /td
 
 td align=left
 html:submit value=Update onclick=go('update')
  bean:message key=button.update/
 /html:submit
 nbsp;
 html:submit value=Delete onclick=go('delete')
  bean:message key=button.delete/
 /html:submit
 nbsp;
 html:reset
  bean:message key=button.reset/
 /html:reset
 nbsp;
 html:cancel
  bean:message key=button.cancel/
 /html:cancel
 /td
   /tr
 
 /table
 /html:form
 
 /body
 /html
 
 Thanks.
 Zakaria
 
   
 


=
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:(410) 837-9535 c/o Oron
e-mail: [EMAIL PROTECTED]
web: http://www.electronicscene.com/oron_haus

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



Re: session taglib

2003-12-05 Thread Oron Gill Haus
You can use JSTL to accomplish this using the:

c:set var=username value=${username} /

You can also specify the scope within the value expression.  This is if
you wish to use JSTL.  Only a suggestion.  Hope it helps you out!

--- struts [EMAIL PROTECTED] wrote:
 In the Jsp i have:
 
 sess:attribute name=userName/
 
 witch prints the username. Now i want something like:
 
 %
 
 String username= sess:attribute name=userName/;
 
 %
 
 but that doesn't work. How can i assign the session variable to the
 String username ?
 
 Thanks !
 
 
 


=
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:(410) 837-9535 c/o Oron
e-mail: [EMAIL PROTECTED]
web: http://www.electronicscene.com/oron_haus

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



Re: session taglib

2003-12-05 Thread Oron Gill Haus
James,

Isn't there a drive to move to JSTL vs. the Struts tag library?  I'm
curious as we've been pushing JSTL for this reason (though it rather
flexible).

Thank you.

--- James Mitchell [EMAIL PROTECTED] wrote:
 On Fri, 5 Dec 2003, struts wrote:
 
  In the Jsp i have:
 
  sess:attribute name=userName/
 
  witch prints the username. Now i want something like:
 
  %
 
  String username= sess:attribute name=userName/;
 
  %
 
  but that doesn't work. How can i assign the session variable to the
 String username ?
 
 A scriptlet-free way to do this:
 
 bean:define id=username
  sess:attribute name=userName/
 /bean:define
 
 
  Thanks !
 
 
 
 
 -- 
 James Mitchell
 Software Developer / Struts Evangelist
 http://www.struts-atlanta.org
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


=
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:(410) 837-9535 c/o Oron
e-mail: [EMAIL PROTECTED]
web: http://www.electronicscene.com/oron_haus

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