In Joshua 8, Joshua's javelin is reminiscent of Moses' staff. It was a symbol of the authority that God had given him. As long as he held that authority up and not his own, Israel would be victorious.