Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Update web page with data from other pages?  RSS feed

 
Ford Prefect
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I've been using PCs since the Dial-In BBS days, but I've never had reason to do anything more than simple forms and page-open actions.

Now I need to make a new searchable Inventory page:

It must list every item (X, 2, 3, etc.) that is listed on Site A.
It needs to find the details for item X from Site B.
It needs to ask the Admin for further details and Photo URLs when an incomplete item is added.

Site A and B both use a login page.
Site A can then use absolute URLs to reach the main Inventory listing, which contains URLs to the pages with variable data.
Site B requires an item number from Site A to search for.
Site B uses frames, inside which are the keywords I need to locate.

Does any of this make sense? I need to load my inventory list from one site, fill in the details from another site, make any corrections manually, then load the resulting data into a seperate page for each item, and index those pages with an Inventory page.

Basically, I know what I need to do, but I have no idea how to do it!
Any help is appreciated. I'm not even sure what type of scripting language I should be using.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a lot of stuff for a scripting language (like javascript) to handle. Do you need to use a scripting language or could you use a java servlet to handle the logic?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ford"

Please click on the My Profile link above and change your display name to be your real first and real last name to comply with the JavaRanch naming policy.

Thanks

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically you need a couple of things.

One, your contacting the two websites should probably be done on the serverside, using Servlets. The actualy work will be done in Plain Old Java Objects, but the Servlets act as the Door to get to those Java classes.

Two, you would probably need to use the Session object in Servlets to keep state.

I suggest reading up on Servlets and JSP to see if that is the technology you want to use. Also check out Ruby on Rails.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!