Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how I can add jsp file in Jbuilder?

 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how I can add jsp file in Jbuilder?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to add jsp pages to JBuilder. It does not offer much in terms of development support for JSPs (no IDEs really do). If you really want to add them though, create a new folder in your JBuilder project and then right-click on the folder and select Add Files/Packages. Browse for your files and there you go.
You will need to create multiple folders if your JSP pages are located in separate folder like they should be.
This is a poor point in most IDEs.
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Not too sure what do you mean by add a jsp in JBuilder.
But if you thinking of JSP development, then you can create a Web Application, then add a JSP page to the webapp.
In this way, you can deploy the whole webapp to your webserver e.g. Tomcat.
Hope this helps.

Han Ming
 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I want to put petstore1.1.2 in jbuilder and run it in Weblogic. The problem is , after I created a webApp, I could not add existing JSP files in my webApp. If I use "Add File/Package", it add my JSP files under project ,not under webApp-root directory.
Another problem, how can I set up weblogic in Jbuilder? I changed application server to weblogic in "enterprise setup" and "project properities".But when I builde my EJB, I got error:
-------------------------------------------------
"NumberGuess.jpx": Invocation Error. Check your CORBA configuration using Tools | Enterprise Setup... | CORBA. Also check IDL settings on the Project | Project Properties | Build | IDL page"
------------------------------------------------
I think I need to config the "CORBA configuration". Because I do not have Borland Enterprise AppServer installed , I need use weblogic instead. How can I do that, please advise.
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The problem is because that your Enterprise Setup for Weblogic is not configured properly I think.
Goto Tools | Enterprise Setup | Application Servers | Weblogic 6.x
Have you filled in those entries?
I'm not sure about Weblogic, so, if it need, you may have to fill in the CORBA setting tools by creating a new entry for it.
Hope this helps.
Han Ming
 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Han Ming, I sloved the problem. I deployed a simple EJB and run it successfully. But I got another problem. I was trying to make a simple jsp which I made using jbuilder to run in Weblogic , but I got errro message. I do not know why, can you tell me why?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been mentioned before but it is best not to build your entire application in an IDE. A build tool such as ANT serves that purpose much better.
Use the IDE to write your Java classes, use ANT to build your project. All the fancy wizards in IDEs do is take control away from the developer and make it harder to debug errors.
 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chris, thanks for the advice. I think if I can make it work, It will be very convenience.
My problem is that I can not deploy a simple jsp webapp to the weblogic from jbuilder or from the dos command line. Mybe the DD file is wrong, I am trying to figure and at the same time I can study jbuilder and weblogic.
[ May 22, 2002: Message edited by: Robin Zhang ]
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robin,
What's your error?
How do you add the jsp to your project?
Cheers.

Han Ming
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic