aspose file tools*
The moose likes JSP and the fly likes Making the main page as .com and not .jsp. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Making the main page as .com and not .jsp." Watch "Making the main page as .com and not .jsp." New topic
Author

Making the main page as .com and not .jsp.

victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Hi Guys,

How can you make the main page to .com instead of .jsp? Am a newbie here..

Thanks,
Vic
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Why? Seems like an odd thing to want to do.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Well,

I could not see any website with jsp... yahoo.com, google.com etc.. So i want my main page to be .com instead of jsp. I will use jsp for secondary website.

regards,
Vic
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

The .com is part of the domain. You can't even have a domain that ends in .jsp.
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Hello,

Thanks, I understand it now.... xxx.com/login.jsp is okay with me..

Thanks,
Vic
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

may i reccomend you read a good book on designing and writing web sites. i found the head first one good (servlets and jsp i think it was), it also explains all about how websites work and link together.
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
I read that one... i am already on the latest chapter. It only tells you more about MVC, jndi etc. but not how the .com . Yeah i like the book. I understand the basic jee because of it. :)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
What do you mean by "the .com"? If you want to host your site on a .com domain, what problems do you foresee?


Ping & DNS - my free Android networking tools app
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
No,

What i mean is that i thought .com is like .jsp.... and i was wrong..... I want my site to be a .com. It is a mis understanding of me.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Keep in mind that the domain on which you will deploy your site has no impact whatsoever on how you write the code for the site. The domain should never be hard-coded into any part of the code.
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73

Hi,

Okay thanks for the advice... On my IDE netbeans, my main jsp is called index.. Is that the page i will paste on the .com?
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

This question is why you need to read a good book on websites.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

There is an enormous amount of work needed to set up a web server for a domain. And all of that has nothing at all to do with web apps. Once that's all set -- or you buy hosting from a provider (recommended) -- there's a lot more to setting up a web application than a single file. And it's not stuff that you can just pick up via forum posts.

As Wendy has pointed out, you need to start reading. Soon.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making the main page as .com and not .jsp.