Re: GenericDataSource error

2001-06-05 Thread Konstantin Priblouda


> Now I've got 
> Begin event threw exception
> java.lang.ClassNotFoundException:
> org/apache/struts/util/GenericDataSource 
> 
> when Tomcat tries to compile struts-config.xml
> 
> I can see that struts.jar is in the /lib folder and
> GenericDataSource.class
> is there, so what am I missing? Is there something
> else I need to add to my

Maybe you just need to place this class inside a jar
file which resides
in the WEB-INF/lib directory?

AFAIK, assorted classes belong under
WEB-INF/classes



=
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: how do i forward entity bean reference from Action class to forwarded jsp.

2001-06-04 Thread Konstantin Priblouda


--- ameer <[EMAIL PROTECTED]> wrote:
> Im stuck up with an issue here.  i am refering to an
> entity in action class. based on  input data .. if a
> record for the input exists i need to forward the
> entity remote reference that i have got to a page
> called display.jsp or if no record exists , i would
> create a record in the database for those input
> values and forward it to success.jsp... how do i go
> about it ..pls help.

In your action class you have to do lookup/create
for your entity bean usual way. 

After you got your reference ( remote interface )
nothing prevents you to put it into session
context ( or whatever ) of your servlet container. 

Then your jsp can fetch it and do what it like.

hope this helped.

regards,

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: action-Mapping?

2001-05-14 Thread Konstantin Priblouda


--- Michael Schommer <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I have a problem with action-Mapping in the
> J2EE-reference implementation
> (j2sdk221.3).
> 
> In my index.jsp is the html:form definition:
> 
>type="Time.TimeFormBean">
> 
> but the PageSource of the resulting HTML-Page is
> 
>action="/TimeRoot">
> 
> it should be
> 
> action="/TimeRoot/time.do">
> 
> Had anybody else this problem and solved it???
> 

I know this Problem. It's because #$@ing deploytool
changes your web.xml file. Exactly servlet mapping. 
It makes "/*.do" from "*.do" -> form
tag cannot resolve this mapping anymore. 

I worked around by using servlet mapping
like "/do/*".

regards,

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: still not getting struts to work yet with Tomcat 3.2.1

2001-05-07 Thread Konstantin Priblouda


> I think the problem might be related to resolving
> the DTD entity in my
> struts-config.xml file.  Here is a snippet for the
> output I receive
> after staring Tomcat.  Has anyone seen this problem
> at all.  I would
> appreciate any help.

Following installation instructions worked for me.
If you like you can grab my war at:
http://www.pribluda.de/webesa.war

Which is just a small example with working
login ( very dumb one ) 

It could also help, if you post web.xml and
struts-config.xml ....

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



FYI: asocial behaviour of j2eesdk1.3 ( deploytool )

2001-05-07 Thread Konstantin Priblouda

I solved my problem with  tag. 

I discovered that action mappings in form

  
  
action
*.do
  

are unsuitable for use with j2sdkee1.3. Deploytool
( or whatever else ) botches web.xml and changes
"*.do" 
to "/*.do". Unfortunately, struts form tag does
following:
--- snip ---
if (servletMapping != null) {
String actionMapping =
getActionMappingName();
if (servletMapping.startsWith("*.")) {
value.append(actionMapping);
   
value.append(servletMapping.substring(1));
} else if (servletMapping.endsWith("/*"))
{
value.append(servletMapping.substring
 (0,
servletMapping.length() - 2));
value.append(actionMapping);
}
}
-- snap---

This way action mapping wil be never found, 
and you will go on the walls. 

Workable solution would be either to patch 
tag, or use mappings in form:

  
  
action
/do/*
  

This worked for me fine...

thanks for your attention...

regards,

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Strange problem with tag libraries

2001-05-05 Thread Konstantin Priblouda

Hello everybody, 

I'm just new to struts, and got very strange problem.
I developed small application with some kind of
rudimentary session tracking / login, and it works
just 
fine under tomcat-3.2.1 
( and under tomcat-4.0b3 too )

( session is tracked, login is performed, 
form tags work properly )

But when I package it as war, and deploy it via
deploytool from J2EE SDK from SUN, strange things 
start:
no more session tracking ( neither cookies nor 
url rewriting - but blame for it has to go
to the container ) and worst of it, 
that form tag does not accept "action" attribute
anymore. 

And here are 2 standart questions:
What to do about it?
and:
Whom to blame?  Me or SUN? Or j2sdkee1.3 ?

For curious people, war archive is available:
http://www.pribluda.de/webesa.war
( 500 kB )

tia,

=====
Konstantin Priblouda ( ko5tik )Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/