CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_jspservlets_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 5/21/2004 8:38:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 10 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
11 Items, 1 Pages 1 |< << Go >> >|
illya
Asp.Net User
Beans equivalente in .Net?5/21/2004 8:38:54 PM

0/0

Hi !

I have to migrate an aplication made in JSP to ASP.Net .
And I don't know if there is a Java Beans equivalent in .Net.
Or how I should do that in .Net.

Thanks.
KraGiE
Asp.Net User
Re: Beans equivalente in .Net?6/15/2004 9:12:21 PM

0/0

.... um..

I don't know of any, but reusable components are definitely available. I'm not so sure about your click/drag needs.

lol. I'm not sure exactly what you're looking for that's similar to java beans. As in a direct equivalent, I'm drawing a blank.
Kay Lee
MySpace.com - http://www.myspace.com/kragie
Infrastructure Group
MySpace.com

- Code to live, but Live to code.
Rob McGovern
Asp.Net User
Re: Beans equivalente in .Net?6/24/2004 8:44:42 PM

0/0

..NET has various equivalents for the different ways in which JavaBeans are used:

For simple Beans, you just convert the code to C# (or VB.NET, or whatever). The JLCA version 2.0 will directly convert simple data beans (e.g. get/set methods) from Java to C#.

However, if you are talking about Enterprise JavaBeans, then .NET has several different equialents depending on which aspect of EJB you want to convert. You can use Enterprise Services for transactions and security, and you can use the Message Queing namespace for Message Driven Beans. Entity beans are a little tougher to deal with.
Phuoc
Asp.Net User
Re: Beans equivalente in .Net?6/25/2004 2:29:17 AM

0/0

Rob,

Thanks! for your time on other thread.

Illya,
Hope this help:

JSP to ASP.NET Migration Guide
http://msdn.microsoft.com/asp.NET/using/migrating/jspmig/default.aspx
Where there is a will, there is a way.

and where there is a team, there is more than one way.
illya
Asp.Net User
Re: Beans equivalente in .Net?6/25/2004 10:36:44 AM

0/0

Thanks to all of you.

Bye!
terrbear
Asp.Net User
Re: Beans equivalente in .Net?6/24/2005 7:54:03 PM

0/0

yeah, there's a javabean implementation for moving between asp pages and asp objects, if you go to
http://aspbeans.sourceforge.net

hope that helps!

hasdy
Asp.Net User
Re: Beans equivalente in .Net?9/15/2005 6:20:54 PM

0/0

To further this conversation.  I have a number of classes in c# which are "bean-esque" (basic beans not ejbs). 

Now this should be a common concept of an object that holds data..... what is the term that .NET uses?  I'm asking because I don't know what to name these.... and how to name my namespace.  

Normally I'd name it..... SomeSortOfDataBean and it'd be in a package called... org.something.com.beans.

Any suggestions?

 

cheeso
Asp.Net User
Re: Beans equivalente in .Net?4/27/2006 12:57:31 AM

0/0

The equivalent to a JavaBean in .NET, is a class, or an instance of the class. You don't need the Bean stuff in ASP.NET, with the beany rules about getters and setters and BeanInfo and such.  Every type in .NET is introspectable.  If the type exposes properties (see example below), then a tool can use them.  So you would just convert your existing code into a custom .NET type, eg SomeSortOfClass and put it in a namespace called org.whatever.you.like, and expose public properties within that type.

example

namespace org.whatever.you.like 
{
  public class SomeSortOfCustomType
  {
    // member vars and the getters and/or setters
    private int _IntValue;
    public int IntValue {
      get { return _IntValue; }
      set { (if IsLegal(value) {_IntValue= value;} }
    }
    private string _HiddenPrivateValue;
    public int Name {
      get { return _HiddenPrivateValue; }
      // if no setter then the property is read-only
    }
    //... and so on...

    // constructor here?

    // public and private methods here...
  }
}
 
SSC
Asp.Net User
Re: Beans equivalente in .Net?7/19/2006 2:46:04 PM

0/0

terrbear:
yeah, there's a javabean implementation for moving between asp pages and asp objects, if you go to
http://aspbeans.sourceforge.net

hope that helps!



I hope ASPBeans becomes an integral part of ASP.NET.  It would make development easier in my opinion and would eliminate the need for the View to talk to the database.

I guess all Microsoft needs to do is to add a Hash Table property to the Page.Request object.
SSC
Asp.Net User
Re: Beans equivalente in .Net?7/21/2006 5:30:44 AM

0/0

I spoke too soon.  I think found the answer.

You can use the method to pass objects across ASPX pages

            MyBean MB = new MyBean();
            MB.MyValue = "MyBean Value";
            Context.Items.Add("MyBean", MB);
            Server.Transfer("Second.aspx");


You can use the following code to retreive the "bean" in second.aspx.cs

            MyBean MB =  Context.Items["MyBean"];
            string aValue = MB.MyValue;

The Context implicit object appears to have only page scope lifespan.



SSC
Asp.Net User
Re: Beans equivalente in .Net?7/21/2006 5:35:32 AM

0/0

It's way too late for me to think straight.

Context implicit object has request scope not page scope.

11 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Core Java 2: la guida ufficiale Sun Microsystems alla versione 5.0 del linguaggio Java : l'aggiornamento più importante di Java dal primo rilascio del linguaggio Authors: Cay S. Horstmann, Gary Cornell, C. Persuati, Pages: 1020, Published: 2005
USA Est e Costa Atlantica Authors: unknown, Pages: 0, Published: 2005

Web:
Beans equivalente in .Net? - ASP.NET Forums Beans equivalente in .Net? Last post 07-21-2006 1:35 AM by SSC. 10 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Migrating from JSP/Servlets to ASP.NET - ASP.NET Forums Beans equivalente in .Net? by Illya. No Status ... Is there any kind of form object / form bean available? by boshdmg. Not Resolved ...
Jc Web2.0 Java Ee5 Net Beans - SlideShare Jc Web2.0 Java Ee5 Net Beans. from vicosw, 9 months ago Add as contact ... fuentes (Mashups) • Interfaz de usuario equivalente al escritorio > AJAX ...
NITROGEN MINERALIZATION IN SOILS AMENDED WITH SUNNHEMP, VELVET ... of roots of sunnhemp and velvet bean respectively, were incorporated into. the soil. A completely randomized experimental design ... Incorporou-se aos solos o equivalente a 13 Mg ha ..... suggest that during this period there was no net ...
Bean In our knowledge, BEAN is the first sensor node that allow measuring the power ..... n˜ o existe uma predicao equivalente para a tecnologia de baterias. a ..... Millennial Net [61] builds heterogeneous WSNs, dividing the networks in ...
worth: Definition, Synonyms from Answers.com Wealth; riches: her net worth. Quality that commands esteem or respect; merit: a person of great worth. .... not worth a row of beans nicht die Bohne od. keinen Pfiferling wert ... que vale, equivalente a n. - valía, valor. idioms: ...
[#SEC-313] Testing classes for contacts sample application ... David Leal Valmaña added a comment - 06/Jul/06 12:05 PM Testing bean configuration file. .... On my local machine I have them on equivalente location : ... SVN: http://svn.sourceforge.net/viewvc/acegisecurity/trunk/acegisecurity/ samples/ ...
Metodo equivalente al metodo End | SuperAlumnos.net 30 Nov 2005 ... Dim Datos(1) As New com.sun.star.beans.PropertyValue ... de los contenidos de superalumnos.net están bajo una licencia de Creative Commons ...
POXORÉO - UOL Blog ... o popular Cibia, foi condenado a multa equivalente a dois salários de presidente da ..... See some more sites by car (river net fishermen, the central market). .... black beans, mandioc (yucca), fried banana, tomato and lettuce, ...
www.krups.com Light roasted beans seem to be the most. popular in North America, and dark roasts ..... café rinde el equivalente aproximado de café. ya molido (es decir, ...




Search This Site:










differences between a win app and asp.net - fileexists

icon buffet

could not load file or assembly 'microsoft.sqlserver.connectioninfo

over view

launch new browser windows--how??

change pagelayout to gridlayout in vs2005

implementing isearchable in a custom module with multiple controls registered in it.

want asp.net web services faq

upgrading from 1.0.10 to dnn 2.0.4

webparts and datakeys in gridview issues ...

error parsing control: 'helpverb' could not be inititalized

virtual directory help please!

dnn 4.01 - client tries to access localhost

free video tutorial: how to install dnn3.2 to a hosting provider

export data to word doc

error:webpart personalization not enabled

system.net.mail question

help me format the data please!

replacing custom sections of a web.config

dnn 3.2 upgrade issue with settings page for modules

post method not working for ie, but works for other browsers

filtering @town

treeview treenodesrc syntax

where to start

converting from vb6.0 to .net

web server

ip adress or copmputer name logged user?

login control with sql

even stranger actions using dnn on w2k3 w/3.0.13....

form authentication and callbacks to the server

 
All Times Are GMT